Page 1 of 1

Network Policy Server

Posted: Tue Jan 17, 2017 10:28 am
by obrienc
Product, version and build: WMI 2016
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64
Operating system: Windows 7
32 or 64 bit OS: 64

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

I am having trouble finding settings for Network Policy Server - Server 2012 R2. I tried a couple of custom queries like below but I am still learning to use the tool. Could someone point me in the right direction please?

Select "Shared Secrets" from Win32_PerfFormattedData_IAS_NPSAccountingServer

Re: Network Policy Server

Posted: Tue Jan 17, 2017 2:32 pm
by DevinL
If you execute Get-CimInstance -ClassName Win32_PerfFormattedData_IAS_NPSAccountingServer from a PowerShell console, does it return the objects you'd expect?

If so, then this tells us that there is a bug in WMI Explorer preventing this class from appearing.

If you can't query the object from PowerShell then it's likely it's not present on your machine.

Re: Network Policy Server

Posted: Tue Jan 17, 2017 10:23 pm
by Alexander Riedel
Browse to the class in question (or use search) and examine the members shown. Sample queries are generated on the help tab.
You say you are running on Windows 7 but you need to query a Windows Server 2012 R2. Are you actually connected to that server?
If you query your local WMI database you will not see results from a remote computer.

Re: Network Policy Server

Posted: Thu Jan 19, 2017 9:28 am
by obrienc
Thanks for the replies. I can get connected to the NPS but can't quite find the right key. I want to read and create new templates for shared secret. i need to create 100+. Under tools I searched for secret, shared, nps found some entries but when i executed didnt return what i wanted.

Could you please link me a more simple query as an example so i can see the workflow from, trying to find a key to changing the key?