Saturday, November 11, 2006

Examples

Dsquery user “OU=Employees,DC=Contoso,DC=Com” –stalepwd 60 | dsmod user
mustchpwd yes

Dsquery user “OU=Employees,DC=Contoso,DC=Com” | dsmod user –HMDIR
\\Server04\Profiles\$username$” -HMDRV U:

Dsquery user “OU=Employees,DC=Contoso,DC=Com” | dsmod user –PROFILE “\\Server04\Profiles\$username$”

Monday, November 06, 2006

CACLS links

CACLS - Modify Discretionary Access Control Lists




How to Set File Permissions with CACLS and Excel

Friday, November 03, 2006

Script to MD

Then I took the sAMAccountName column by itself and ran it through for /f with a batch file using RMTSHARE (a Microsoft utility for remotely creating shares):
quote:

md y:\users\%1
rmtshare \\servername\%1$=f:\users\%1 /grant domain\user:full /remove everyone /grant "domain\Domain Admins":full