- The default value of $WhatIfPreference variable is $false.
- Adding “$WhatIfPreference = $true” to a script or the PowerShell profile
- Now every cmdlet that supports a whatif switch will execute as the whatif switch is on
- To overwrite the setting in a particular cmdlet, add –whatif:false in the cmdlet
Search This Blog
Use $WhatIfPreference in PowerShell to Prevent Accidents
Subscribe to:
Post Comments (Atom)
Use WinSCP to Transfer Files in vCSA 6.7
This is a quick update on my previous post “ Use WinSCP to Transfer Files in vCSA 6.5 ”. When I try the same SFTP server setting in vCSA 6.7...
-
Recently, we created a new child domain in the existing AD forest with two new Windows Server 2012 R2 domain controllers. The AD authenticat...
-
find out the name of vSphere host running the stuck task if possible SSH to the vCenter Server server appliance service vmware-vpxd resta...
-
Updated on 07/13/2016. See the update this post, I might find the ultimate solution, even I am still not sure what the cause of the issue. ...
No comments:
Post a Comment