Automating Windows 7 Joining Microsoft Domain With PowerShell Scripts

Automating Windows 7 to join a Microsoft Active Directory Domain

Rename Computer: VBS Script

strComputer = “.”
strNewName = InputBox(“New Computer Name:”)
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)

Set colComputers = objWMIService.ExecQuery _
(“Select * from Win32_ComputerSystem”)

For Each objComputer in colComputers
err = objComputer.Rename(strNewName)



Reboot Batch File: .BAT

shutdown -r -t 1


Add-Computer to Domain: PowerShell Script

Add-Computer -DomainName -cred Domain\Username -PassThru



, , , , , , ,

  1. #1 by Black Mold Removal Services on December 6, 2012 - 9:43 pm

    I loved as much as you will receive carried out right
    here. The sketch is tasteful, your authored material stylish.
    nonetheless, you command get bought an nervousness over that you wish be delivering the following.

    unwell unquestionably come further formerly again since exactly the same nearly a lot
    often inside case you shield this increase.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: