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 5 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37379
    Profile photo of H Man
    H Man
    Participant

    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
    Participant
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.