Skip to content

Instantly share code, notes, and snippets.

@Iristyle
Created April 26, 2012 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Iristyle/2500044 to your computer and use it in GitHub Desktop.
Save Iristyle/2500044 to your computer and use it in GitHub Desktop.
Enabling WinRM on a domain machine with VMWare NICs
#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