Ive got a few bits of software that need installing and tbh i thiink the best way is by a script looking for "teacher" in the computername.
Problem is im not sure how to do it. Guess VBS would be best. I know how to make it look for "x" in the last y charcters but not to simpley search the name.
Any ideas?
:beer:
Assuming your using AD and MSI's you can do this quite easily with a security filter on the GPO.
It depends on the environment. If you are in Active Directory then I would either put all of your teacher's computers in a particular OU or put the teacher computers in a group and filter a group policy so that it only affects computers in that security group. Or as Geoff suggested using filters on your GPOs works just as well.
If you have questions about how to do that, let me know and I can score you some links.
If you need to grab the computer name here it is:
Set WshNetwork = WScript.CreateObject("WScript.Network")
WScript.Echo "Computer Name: " & WshNetwork.ComputerName
Happy hunting and have a great day.

WMI filter?
"SELECT * FROM Win32_ComputerSystem WHERE Name = '*teacher*'
Not sure if the wild cards will work but it's a starting point for you.
Ben
There are currently 1 users browsing this thread. (0 members and 1 guests)