Sunday, May 20, 2012
User Rating:  / 1

Here is a script that I wrote that will in short: Shutdown remote computers.  

I have been searching online for a script that did a great job of shutting down remote computers.  I wanted it to do several things while before shutting down the computers. 

  • Pull the list of computers from AD - pulling them from a OU (which could be specific to a lab, or the whole organization)
  • I need it to skip computers that are already turned off
  • I wanted it to only shutdown if the computer was idel.  This was the big one and the hard one to solve.
    • So the script first checks to see if someone is logged into the computer - if not it shuts it down
    • If their is someone logged in it then checks to see if the screen saver is running.  If it is - It shuts down the computer
  • It then sends an email to an email address that will show what computer did what.  
    • The email is a work in progress - which I will most likely replace with a logging system

  Read more: VBS shutdown remote computers

VBS

User Rating:  / 0

This script will do the following:

  1. Rename the computer
  2. Checks to see if name matchs what you want it to be "domain-" plus the computer services tag
  3. Set a task to execute the script again in 2 mins
  4. Restart the computer
  5. When the script runs again (number3) it then joins the domain 
  6. delete itself from the local host
  7. restart the computer
Read more: VBScript - Automate Joining domain and changing name

VBS

User Rating:  / 0

My experiences with VBS Scripting. 

 

You can't be a System Admin in the School systems for very long without using a vbs script to get something done.  We use a wide varity of scripts to help maintain our control over the hundreds of computers that we are faced with. I have even used scripts to delete  backdoor admins that where created by the pervious techs.  

Read more: Learning Visual Basic Scripting Variable Scope

VBS

User Rating:  / 2

Scenario: 

You are working with a computer in your domain and you discover a unknown user account in the document and settings or users (windows 7) folder of the computer.  You search your Active Directory for that user and don't find them.  You then check the local computer users and computers to find that this is a back door administrator. Then you have to ask several questions: (I added my answers below each question) 

Read more: Back Door Admin Discovery and Removal

VBS