hello everyone
im using bginfo in our environment and thought it would be cool to have a list of applied GPOs as part of it but i cannot get it working the way i would like.
so... i created a custom field linking to the contents of a text file which contained the results of the query below
strComputer ="."Set objWMIService = GetObject("winmgmts:\\"& strComputer &"\root\rsop\computer")Set colItems = objWMIService.ExecQuery("Select * from RSOP_GPO")ForEach objItem in colItems Wscript.Echo objItem.NameNext
then using this script at logon as cscript /nologo rsop.vbs >rsop.txt
this is ugly as hell and was wondering if there was any easier way to capture the information. ideally i dont want all the crap that normally comes with gpresult etc just a list of the actual applied policies.
hopefully someone can suggest something as i reckon its a winner!
cheers all