Hi gurus
Can I use Powercli to disable firewall on a VM?
Thanks
Just send the following through Invoke-VMScript
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled False
But be aware that you need administrator credentials to do that.
And UAC might not allow you to run elevated commands
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You mean a FW inside the Guest OS on the VM?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes
Well, that of course depends on the sort of Guest OS.
Most of these have a command to do that.
And, when the VMware Tools are installed, you can execute that command via Invoke-VMScript.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
L.
they are all Windows 2019 and VM tools 11 install
Thanks again for the help
Just send the following through Invoke-VMScript
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled False
But be aware that you need administrator credentials to do that.
And UAC might not allow you to run elevated commands
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference