PowerShell script exchange
Post Reply
Pollmann_M
Influencer
Posts: 11
Liked: never
Joined: Nov 23, 2017 1:39 pm
Full Name: Martijn Pollmann
Location: The Netherlands
Contact:

New-VBRSureBackupStartupOptions EnableVMPingCheck SwitchParamter

Post by Pollmann_M »

Hallo,

I'm trying to set the EnableVMPingCheck in the New-VBRSureBackupStartupOptions to false. However false or $false are not accepted and the parameter is required, so I can just not set it. Does anyone know the right code for this?

Kind regard,

Martijn
veremin
Product Manager
Posts: 20412
Liked: 2301 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: New-VBRSureBackupStartupOptions EnableVMPingCheck SwitchParamter

Post by veremin » 1 person likes this post

-EnableVMPingCheck is a switch parameter, so, the correct syntax should be the following:

Code: Select all

New-VBRSureBackupStartupOptions -EnableVMPingCheck:$False
Thanks!
Pollmann_M
Influencer
Posts: 11
Liked: never
Joined: Nov 23, 2017 1:39 pm
Full Name: Martijn Pollmann
Location: The Netherlands
Contact:

Re: New-VBRSureBackupStartupOptions EnableVMPingCheck SwitchParamter

Post by Pollmann_M »

Thank you!
veremin
Product Manager
Posts: 20412
Liked: 2301 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: New-VBRSureBackupStartupOptions EnableVMPingCheck SwitchParamter

Post by veremin »

Welcome, let us know, should other help with syntax or scripting be needed :)
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests