< Back

Disable-NsProtectionService

Sat Jan 18, 2020 5:12 pm

NAME Disable-NsProtectionService



SYNOPSIS

Disables a Snaphost based Protection Service for a filesystem





SYNTAX

Disable-NsProtectionService [-Name] <String> [-NoWait] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Disables a Snaphost based Protection Service for a filesystem





PARAMETERS

-Name <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-NoWait [<SwitchParameter>]

Invoke to make the cmdlet start the job and return the GUID of the JobID



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

The cmdlet will wait (30sec) for the task to complete and return an NsSnapshotProtectionService object for the

Disabled service

If -NoWait was invoked it will return the GUID of the creation task

If the cmdlet waits for more then 30sec it will return the GUID of the task.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\temp>Disable-ProtectionService collab2



name : collab2

id : 15ae3e31-05cf-11e8-9b3d-773bc8b1c3e3

managerNodes : @{primary=}

isManager : True

runNumber : 0

recursive : True

sourceDataset : p1/collab-02

type : scheduled

state : disabled

isLocked : False

isSyncing : False

kstatId : 0000000000000006

schedules : {@{cron=* 6-18/3 * * *; scheduleName=c9a56193-8cd4-48f2-be9d-ca6d4cf5cde9; keepSource=5;

disabled=False; scheduleId=15ae3e30-05cf-11e8-9b3d-773bc8b1c3e3}}

isRunning : False

href : /hpr/services/collab2



Disable a snapshot service called collab2











RELATED LINKS