Enable Powershell Remoting While Running VMWare Workstation in a Domain
Here is the script that will change all public profile NICs to become Work Network NICs:
$nlm = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]“{DCB00C01-570F-4A9B-8D69-199FDBA5723B}”))
$connections = $nlm.getnetworkconnections()
$connections |foreach {
if ($_.getnetwork().getcategory() -eq 0)
{
$_.getnetwork().setcategory(1)
}
}
Afterwards I was able to enable remoting with no problem.Enable Powershell Remoting While Running VMWare Workstation in a Domain



21. May, 2010 






No comments yet... Be the first to leave a reply!