WMIC or command line function to pull GPO/WMI data
You will have answer sooner if you send your question in proper forum, namely the Powershell forum here http://social.technet.microsoft.com/Forums/en/winserverpowershell/threads or outside this community http://powershell.com/cs/forums/ Regards Milos
May 25th, 2012 11:22am

I have been given a task to pull specific information from a machine via command line including Registry Key, GPO, and WMI and be able to write it to a file. The stipulation is that I can not install anything on to the target machine that may make life easier. So basically using an out of the box Windows 7 install. Now I can use Powershell to pull all the Registry Key information that I need. But as I understand it in order to open up the cmdlets I need to access the GPO/WMI information I would need the Remote Server Admistratoin Tools installed. The machines I will be trying to access the data on will not have RSAT installed. An example of the GPO/WMI information I need is the following. (1) GPO: Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\ Enable computer and user accounts to be trusted for delegation (2)WMI: Namespace = root\rsop\computer; Class = RSOP_UserPrivilegeRight; Property = AccountList; Where = UserRight='SeEnableDelegationPrivilege' and precedence = 1 When running the following WMIC command I get output but none of it is of any use. Is there an extension I am missing or another way to access the information via the command line. wmic /namepace: \\root\rsop\computer class RSOP_UserPrivilegeRight get I have used the GPresult command to pull the Group Policy data but this does not give me everything. In Powershell I have ran the Get-WmiObject cmdlet but it returns no data or errors. Get-WmiObject -namespace root\rsop\computer -class RSOP_UserPrivilegeRight | select-object * So in a nutshell my question is there a command line function I can use to pull data from GPO/WMI in a detailed format? Thanks for any and all help, David
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2012 10:22am

You will have answer sooner if you send your question in proper forum, namely the Powershell forum here http://social.technet.microsoft.com/Forums/en/winserverpowershell/threads or outside this community http://powershell.com/cs/forums/ Regards Milos
May 26th, 2012 11:06am

Thank you Milos, but I do not believe the Powershell route is going to be my answer. I am not able to download the RSAT onto the machines to open up the cmdlets to accesss the data needed. I will submit my question for the Powershell portion just to verify my claim in hopes I am mistaken. I am also asking if there is a command or script that can be ran via the command line (WMIC or some other way) to produce the results in question. Thanks, David
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2012 11:14am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics