Hi SGTWTF22,
If you run:
Get-NetConnectionProfile | Get-Member
TypeName: Microsoft.Management.Infrastructure.CimInstance#root/StandardCimv2/MSFT_Net
ConnectionProfile
It shows the above TypeName. You can see that it is a CimInstance. Using that information, you can run the below command.
Get-CimInstance -Namespace 'root/StandardCimv2' -ClassName 'MSFT_NetConnectionProfile'
OR
Get-WmiObject -Namespace 'root/StandardCimv2' -ClassName 'MSFT_NetConnectionProfile'
I don't have a 2008R2 server in my test environment to test, hopefully it works though.
Thanks, Tim. | Please remember to mark the replies as answers if they help. |