I use something similar to this in my logonscripts for differnt computer models.
Just put it at the top of the script and any computername that matches the first 8 char will quit the script.
Set objNetwork = CreateObject("Wscript.Network")
If Left(objNetwork.ComputerName,8) = "bswusctx" Then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.