Posts tagged Windows Server 2008

modify active directory users with powershell

modify active directory users with powershell

This is a video about how to modify users in Active Directory Users and Computers in PowerShell. This is a simple script, but they can be much more complex. The trick is to get to be more familiar with it and then you can crank out scripts on the fly. I made this video on Windows Server 2008, but you can use powershell on Windows 7, Vista, XP, Server 2008, and Server 2003.

Commands used…
$objUser=[ADSI]“LDAP://cn=Stavro Mueller, ou=people, dc=my, dc=domain”
$objUser.put(“company”,”Wingnuts, inc”)
$objUser.setinfo()

Using command dsmove to move users in active directory

Using command dsmove to move users in active directory

This is a quick video on how to move users in active directory users and computers using the command line. I use the command dsmove and Windows Server 2008. these features may be used in older versions of Windows Server.

Commands used
dsadd user “cn=Bob Jones, ou=people, dc=my, dc=domain” -upn “Bob Jones” -samid “bjones” -fn “Bob” -ln “Jones” -pwd * -mustchpwd yes

dsmove “cn=Bob Jones, ou=people, dc=my, dc=domain” -newparent “ou=sales, dc=my, dc=domain”

Using dsget to get information about active directory users

Using dsget to get information about active directory users

This is a quick video about how to get information about users in active directory users and groups. You can use this like a batch file. I am using Windows Server 2008, but this also works in older versions of Sindows Server.

commands used
dsget /?
dsget user /?

dsget user “cn=Stavro Mueller, ou=people, dc=my, dc=domain” -samid

dsquery user -name “*” | dsget user -samid

In this next command, youtube won’t let me put the greater than sign.
dsquery user -name “*” | dsget user -samid -office “Greater than sign” users.txt