Hi,
I need help to find the correct value to send into a wmi query in order to get the information of a computer in AD based on its netbootguid attribute. Using the wmi query the DS_netbootGUID.value is type "System.Byte", when I do the wmi query I pass it into a variable of type "System.Byte" the netbootguid of my computer, but does not show any result, but if I change the query to look just for a single number it gets results.
This is the query:
get-wmiobject -class ds_computer -namespace root\directory\ldap -computername <servername> -credential $Credential1 |where {$_.DS_netbootGUID.value -eq "$Array"}
This one give me results:
get-wmiobject -class ds_computer -namespace root\directory\ldap -computername <servername> -credential $Credential1 |where {$_.DS_netbootGUID.value -like "68"}
Regards.