I haven't tried your code... By messed up, do you mean where it shows
"FALSE"?

Marco

> PS C:\users\PROXB\Downloads> scanips -ip 143.250.161.232 -regpath

> Name Value
> ---- -----
> isdomainmaster
> maintainserverlist Auto
>
> PS C:\users\PROXB\Downloads> QueryRegistry -comp 143.250.161.232 -

> Name Value
> ---- -----
> isdomainmaster FALSE
> maintainserverlist Yes
>
> As you can see, when using the ScanIPs, the data gets messed up
> somewhere. Below is the code. Any help is greatly appreciated!