Enable PowerShell Remoting with Public Network using version 2.0

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Richard Diphoorn Richard Diphoorn 1 year, 2 months ago.

  • Author
  • #37379
    Profile photo of H Man
    H Man

    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 : )

  • #37381
    Profile photo of Richard Diphoorn
    Richard Diphoorn

You must be logged in to reply to this topic.