I'm looking to write a script (probably in VBScript) to perform the following fucntion.
I need to search within/inside the contents of all the GPO's in our domain. The reason for this is we use 100's of GPO's to deploy software via Software Assignment (MSI) and Startup Scripts.
Sometimes more than one policy may reference an MSI stored in a location on our network. To ensure that we can remove unused MSI's I'd like to be able to search on a strong in VBScript (e.g \\server\packages\mysoftware\setup.msi) and for it to return a list of all GPO's that reference this path in some form.
Hope someone can point me in the right direction.