To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
The technical storage or access that is used exclusively for statistical purposes.
The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
It’s rare to get the one sheet on tips these days. Thanks!
i use this a bunch.
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private
@Josh, so you’re piping the output of one to the other. What happens if there are multiple NICs? In other words, if (Get-NetConnectionProfile).GetType() shows that it’s an _array_ of Objects, not just one Object?
PS C:\> (Get-NetConnectionProfile).GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Object[] System.Array
@Mark: @Josh’s command sets *all items in the array* to the specified network category. It’s equivalent to:
`Get-NetConnectionProfile -InterfaceAlias * | Set-NetConnectionProfile -NetworkCategory Private`
Ah got it, thanks. That is nice to have it on one line and not have to manually pick out the InterfaceIndex.
Bloody marvellous. All the “instructions” on changing the profile through the W10 user interface refer to buttons or descriptions that no longer exist. Thank you for a clear, concise procedure that just works.