PowerTip: Use PowerShell to Get Connection Profile

PowerTip: Use PowerShell to Get Connection Profile

  • Comments 3
  • Likes

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:

Get-NetConnectionProfile

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • What would be the Windows 7 equivalent?

  • 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.

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

    Get-NetConnectionProfile | GM

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