Subscribe
Accepted Solution

Cmdlet to assign schedule policy

[ Edited ]

Hi,

 

I'm searching for a cmdlet to assign a snapshot schedule policy to specified volumes over WFA.

 

 

Does anybody knows the cmdlet for this task?

 

 

Kind regards

 

 

Franco

Re: Cmdlet to assign schedule policy

From a PowerShell perspective, you'll want to use the "Update-NcVol" cmdlet to change the snapshot policy assigned to a volume:

 

Update-NcVol -Query @{ Name = $volName } -Attributes @{ VolumeSnapshotAttributes = @{ SnapshotPolicy = $snapPolicy } }

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Cmdlet to assign schedule policy

Hi Andrew,

 

this sounds good. I will try this and give you a feedback.

 

Thank you so far!

 

 

Franco