Archive for the ‘Active Directory’ Category

Tools ‹ Smartrider’s Blog — WordPress

December 28, 2010 Leave a comment

Tools ‹ Smartrider’s Blog — WordPress.


RunAs feature for Windows Server 2008

October 25, 2010 Leave a comment

To work with RunAs command in Windows 2008 is quite a tedious process. Here is a utility that I found on SysInternals (which is now owned by Microsoft). ShellRunAs provides RunAs functionality to launch programs espically IE.

Create new users with unique Passwords in Active Directory using CSV File and PowerShell

September 3, 2010 Leave a comment

Here is simple PowerShell script that can create new accounts and setup unique passwords in Active Directory.

First Step is to create a csv file and specify rows for new accounts For e.g.


Second Step is to the script below using PowerShell


$dataSource=import-csv “test.csv” //This is the name of the csv file

foreach($dataRecord in $datasource) {

$cn=$dataRecord.FirstName + ” ” + $dataRecord.LastName
$displayName=$sn + “, ” + $givenName
$Password = $dataRecord.Password
$userPrincipalName=$sAMAccountName + “”


Last Step is to verify in Active Directory that the accounts are created.