What is the correct way to get Powershell 3 SDK functions to work under Windows XP, Vista and 7 without the user having to install Powershell 3?
Assembly: system.management.automation.dll
Essentially this command has to run on Windows without needing Powershell 3.0 installed:
Import-Module NetConnection
Get-NetConnectionProfile | ForEach-Object {Set-NetConnectionProfile -InterfaceIndex $_.InterfaceIndex -NetworkCategory Private}