PowerTip: Set Network Connection Profile with PowerShell

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon