$machineOU = "OU=Workstations,OU=Machines,OU=IT,DC=Litware,DC=com"
so, if my machines are in multiple OUs, extra work for me since Get-GPResultantSetOfPolicy doesn't do what it's supposed to
$rsopObject.PlanningDomainController = "RootDC01.Litware.com"
does this mean your method is pulling Applied GPO information from the domain controller, and not from the endpoint machine itself, like i would be doing with Get-GPResultantSetOfPolicy if it did what it's supposed to? and that now i need permissions on the domain controller, instead of just on the endpoint machine(s) i'm targeting?
$rsopObject.CreateQueryResults()
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At line:27 char:1
+ $rsopObject.CreateQueryResults()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException