< Back
Remove-NsProtectionServiceSchedule
Post
NAME Remove-NsProtectionServiceSchedule
SYNOPSIS
Removes a schedule from a Snaphost based Protection Service for a filesystem
SYNTAX
Remove-NsProtectionServiceSchedule [-ServiceName] <String> [-ScheduleName] <String> [-NoWait] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Removes a schedule from a Snaphost based Protection Service for a filesystem
PARAMETERS
-ServiceName <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ScheduleName <String>
Required? true
Position? 2
Default value
Accept pipeline input? true (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 NsSnapshotProtectionSchedule object for the
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>Remove-ProtectionServiceSchedule -ServiceName collab2 -ScheduleName caa0dee5-d994-413c-8f61-963fb638bc10
name : collab2
id : 15ae3e31-05cf-11e8-9b3d-773bc8b1c3e3
managerNodes : @{primary=}
isManager : True
runNumber : 0
recursive : True
sourceDataset : p1/collab-02
type : scheduled
state : enabled
isLocked : False
isSyncing : False
kstatId : 0000000000000006
schedules : {@{cron=10 6-18/3 * * *; scheduleName=c9a56193-8cd4-48f2-be9d-ca6d4cf5cde9; keepSource=5;
disabled=False; scheduleId=15ae3e30-05cf-11e8-9b3d-773bc8b1c3e3}, @{cron=10 1 * * SUN,TUE-SAT;
scheduleName=227cddc6-bec5-4eed-8ee8-7990337be855; keepSource=5; disabled=False;
scheduleId=eb553b70-05d3-11e8-9b3d-773bc8b1c3e3}, @{cron=10 1 * * 1;
scheduleName=47b7317a-1875-48df-b735-31ef6b2836a3; keepSource=2;
disabled=False; scheduleId=819a7870-05d4-11e8-9b3d-773bc8b1c3e3}}
isRunning : False
href : /hpr/services/collab2
Remove a schedule to from the collab2 service
RELATED LINKS
SYNOPSIS
Removes a schedule from a Snaphost based Protection Service for a filesystem
SYNTAX
Remove-NsProtectionServiceSchedule [-ServiceName] <String> [-ScheduleName] <String> [-NoWait] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Removes a schedule from a Snaphost based Protection Service for a filesystem
PARAMETERS
-ServiceName <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ScheduleName <String>
Required? true
Position? 2
Default value
Accept pipeline input? true (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 NsSnapshotProtectionSchedule object for the
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>Remove-ProtectionServiceSchedule -ServiceName collab2 -ScheduleName caa0dee5-d994-413c-8f61-963fb638bc10
name : collab2
id : 15ae3e31-05cf-11e8-9b3d-773bc8b1c3e3
managerNodes : @{primary=}
isManager : True
runNumber : 0
recursive : True
sourceDataset : p1/collab-02
type : scheduled
state : enabled
isLocked : False
isSyncing : False
kstatId : 0000000000000006
schedules : {@{cron=10 6-18/3 * * *; scheduleName=c9a56193-8cd4-48f2-be9d-ca6d4cf5cde9; keepSource=5;
disabled=False; scheduleId=15ae3e30-05cf-11e8-9b3d-773bc8b1c3e3}, @{cron=10 1 * * SUN,TUE-SAT;
scheduleName=227cddc6-bec5-4eed-8ee8-7990337be855; keepSource=5; disabled=False;
scheduleId=eb553b70-05d3-11e8-9b3d-773bc8b1c3e3}, @{cron=10 1 * * 1;
scheduleName=47b7317a-1875-48df-b735-31ef6b2836a3; keepSource=2;
disabled=False; scheduleId=819a7870-05d4-11e8-9b3d-773bc8b1c3e3}}
isRunning : False
href : /hpr/services/collab2
Remove a schedule to from the collab2 service
RELATED LINKS