Group Policy List Resultant Set of Policy GPOs , WMI
' List Resultant Set of Policy GPOs
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\rsop\computer")
Set colItems = objWMIService.ExecQuery("Select * from RSOP_GPO")
For Each objItem in colItems Wscript.Echo "Name: " & objItem.Name Wscript.Echo "GUID Name: " & objItem.GUIDName Wscript.Echo "ID: " & objItem.ID Wscript.Echo "Access Denied: " & objItem.AccessDenied Wscript.Echo "Enabled: " & objItem.Enabled Wscript.Echo "File System path: " & objItem.FileSystemPath Wscript.Echo "Filter Allowed: " & objItem.FilterAllowed Wscript.Echo "Filter ID: " & objItem.FilterId Wscript.Echo "Version: " & objItem.Version Wscript.Echo Next
|
VbsEdit includes all these samples!
Download version 3.4.1
Released Tuesday, November 18, 2008 -
The evaluation version never expires
Home
Buy Now
Support
Video
What's new ?
Awards
|