PowerTip: Use PowerShell to Get Connection Profile

Summary: Use Windows PowerShell to determine the current connection profile.

Hey, Scripting Guy! Question How I can use Windows PowerShell to find the current connection profile on my laptop running Windows 8?

Hey, Scripting Guy! Answer Use the Get-NetConnectionProfile cmdlet:


Comments (3)

Cancel reply

  1. Jon P says:

    What would be the Windows 7 equivalent?

  2. Chen V says:

    Microsoft.Management.Infrastructure.CimInstance – Can we do something with this to get this command in Windows 7. I am sorry if this is a Ir-relevant.

  3. Chen V says:

    @Jon! Hi! Indeed this command is in Windows 8 and 8.1,

    Get-NetConnectionProfile | GM

    Microsoft.Management.Infrastructure.CimInstance the namespace is rootStandardCimV2 – which is not available in Windows 7. Through .NET class it should be possible. Some one please correct me if I am wrong!!!

Skip to main content