PowerShell Logo Small

Set-NetConnectionProfile



This is the built-in help made by Microsoft for the command 'Set-NetConnectionProfile', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Changes the network category of a connection profile.

SYNTAX


Set-NetConnectionProfile [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-InterfaceAlias <String[]>] [-InterfaceIndex <UInt32[]>]
[-IPv4Connectivity <IPv4Connectivity[]>] [-IPv6Connectivity <IPv6Connectivity[]>] [-Name <String[]>] [-NetworkCategory <NetworkCategory>]
[-PassThru [<SwitchParameter>]] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Set-NetConnectionProfile [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-NetworkCategory <NetworkCategory>] [-PassThru
[<SwitchParameter>]] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-NetConnectionProfile cmdlet changes the network category setting of a connection profile. A connection profile represents a network
connection.



<

RELATED LINKS

Get-NetConnectionProfile

REMARKS

<

Examples


Example 1: Change the network category of a connection profile

This first command gets the connection profile for the network adapter named Ethernet1. The command stores the results in the $Profile
variable.
PS C:\>$Profile = Get-NetConnectionProfile -InterfaceAlias Ethernet1

This second command assigns the value of Public to the NetworkCategory property of the connection profile stored in the $Profile variable.
PS C:\>$Profile.NetworkCategory = Public

This third command sets the network category of the connection profile stored in the $Profile variable.
PS C:\>Set-NetConnectionProfile -InputObject $Profile



This example changes the network category of a connection profile.