$objsysinfo = createobject"ADSystemInfo")
? "User Name: " + $objsysinfo.username
? "Computer: " + $objsysinfo.computername
if instr($objsysinfo.computername, "OU="+"Computer") and instr($objsysinfo.computername, "OU="+"ABCComputer")
? "Match."
endif
Screen
User Name: CN=TestUser,CN=Users,DC=domain,DC=com
Computer: CN=PC1,OU=Computer,OU=ABCComputer,DC,domain,DC=com