Examples
Dsquery user “OU=Employees,DC=
mustchpwd yes
Dsquery user “OU=Employees,DC=
“\\Server04\Profiles\$username$” -HMDRV U:
Dsquery user “OU=Employees,DC=
A techie place to learn, remember, and share.
Dsquery user “OU=Employees,DC=
mustchpwd yes
Dsquery user “OU=Employees,DC=
“\\Server04\Profiles\$username$” -HMDRV U:
Dsquery user “OU=Employees,DC=
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
Use domain local groups to control access to resources and use global groups to organize similar groups of users. When this is done, the global groups created are then applied to the domain local groups as members, allowing those users permissions to those resources and limiting the effect that replication has on an environment.
netdom add ComputerName / domain:DomainName /userd:User PasswordD:UserPassword [/ou:OUDN]
Switches:
sAMAccountname = Pre-Windows 2000 Logon Name