I use the following script to add UUID's to AD for use in Windows Deployment Services (WDS)
for /f %%I IN (
'psexec \\^%1 cmd /c "echo csproduct get UUID|wmic.exe" ^| ^
findstr /r ........-....-....-....-............ '
) do wdsutil /set-device /device:%1 /id /JoinDomain:Yes /Domain:<DOMAIN NAME>
I have added hundreds of computers to the WDS server with this method. I now need to find and export to a txt file all the computers in an AD OU that are missing the UUID.
Your help in this matter is appreciated.