PowerShell Logo Small

Set-NetConnectionProfile



This is the built-in help made by Microsoft for the command 'Set-NetConnectionProfile', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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] [-CimSession <CimSession[]>] [-InterfaceAlias <String[]>] [-InterfaceIndex <UInt32[]>] [-IPv4Connectivity <IPv4Connectivity[]>]
[-IPv6Connectivity <IPv6Connectivity[]>] [-Name <String[]>] [-NetworkCategory <NetworkCategory>] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf]
[<CommonParameters>]
Set-NetConnectionProfile [-AsJob] [-CimSession <CimSession[]>] [-NetworkCategory <NetworkCategory>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]>
[-Confirm] [-WhatIf] [<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

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287433
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.