Shutdownertron, as butchered by yours truly.
I'm looking for a script that does the following:
We are maintaining a Windows 2003 environment with xp sp3 clients (about 900 PC's)
By default pc's are placed in the Computers Container in AD, when they are placed in the domain.
I'm looking for a script that, based on computername, gives a shutdown command to the pc's at a specific time, that are in that container.
The computers that are used by the students have a name that starts with CL. So i'm looking for a way to filter out the students pc's, so that the teachers pc's can keep working.
Can somebody help me with this, i'm a complete noob with VB scripts.
Thanx in advance,
Thanks for the quick response!
I already looked in to that tool, but you need to install extra software on the client side (times 900 ).
I'm looking for an easier way!
I'm taking a look at the script, but when i fill in the domain and container, i get an error in VBSedit (line28):
strOU = "ou=Computers"
strDomain = "test.local"
The error is in the following line:
set objParent = GetObject("LDAP://" & strOU & "," & objRootDSE.Get("defaultNamingContext"))
there is no such object on the server........
Need help please.
Sorry for my noobieness
I think the default computers is a container ie CN not an OU?
If you create a small test OU and put some PCs in does it work?
It maybe that you can cn=Computers as well?
Are you trying to run against the default computers container?
I have never tried to run against this so let me know if the abovbe helps.
<ot> On the subject of sources, I'm limited by a license restriction from the original codebase, which is why it's still closed. </ot>
I use Task scheduler in XP to run Shutdowns on the student machines at night, I have 2 ways to give the task files to the student machines LanSchool or Ghost Console Client, think RM provide something similar to LanSchool but don't know if it has a file transfer option, its really handy.
How To Schedule Tasks in Windows XP
the task sheduler in vista is even better allowing conditions.
There are currently 1 users browsing this thread. (0 members and 1 guests)