Created
April 26, 2012 14:44
-
-
Save Iristyle/2500044 to your computer and use it in GitHub Desktop.
Enabling WinRM on a domain machine with VMWare NICs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#If having problems when enabling WinRM on a domain connected machine that is running VMWare VMs, the NICs must be properly configured | |
#http://powertoe.wordpress.com/2009/12/28/enable-powershell-remoting-while-running-vmware-workstation-in-a-domain/ | |
$nlm = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}")) | |
$nlm.getnetworkconnections() | ? { $_.getnetwork().getcategory() -eq 0 } | | |
% { $_.getnetwork().setcategory(1) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment