Author Posts

April 7, 2016 at 8:27 am

Enable-PSRemoting -SkipNetworkProfileCheck works with 3.0 ... how do i do the same with 2.0

i found this as an alternative , any way to run it remotely ?

$networkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"))
$connections = $networkListManager.GetNetworkConnections()

# Set network location to Private for all networks
$connections | % {$_.GetNetwork().SetCategory(1)}
Thanks for any help : )