PowerTip: Set Network Connection Profile with PowerShell


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

Comments (2)

  1. Ankit Sharma says:

    Hi

    I need a powershell script to change the I.P, subnet and gateway of 100 windows 07 client from my machine running windows 07.

Skip to main content