September 6th, 2015

PowerTip: Set Network Connection Profile with PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to configure the network connection profile.

Hey, Scripting Guy! Question How can I use Windows PowerShell to set the network connection profile for my network adapter?

Hey, Scripting Guy! Answer Use the Get-NetAdapter cmdlet to retrieve a network adapter, pipe it to the Set-NetConnectionProfile cmdlet,
           and specify the network category, for example:

Get-NetAdapter | Set-NetConnectionProfile -NetworkCategory Private

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.