Which profile? 

 

Cusrmgr.exe from the Win2k resource kit might help you script this out
pretty quick. Here is the syntax. 

 

CUsrMgr Ver 1.0 Jan98 by G.Zanzen (c) MCS Central Europe

Sets a random password to a user

usage: -u UserName [-m \\MachineName] \\ default LocalMachine

  Resetting Password Function

       -p Set to a random password

       -P xxx Sets password to xxx

  User Functions

       -r xxx Renames user to xxx

       -d xxx deletes user xxx

  Group Functions

       -rlg xxx yyy Renames local group xxx to yyy

       -rgg xxx yyy Renames global group xxx to yyy

       -alg xxx Add user (-u UserName) to local group xxx

       -agg xxx Add user (-u UserName) to global group xxx

       -dlg xxx deletes user (-u UserName) from local group xxx

       -dgg xxx deletes user (-u UserName) from global group xxx

  SetProperties Functions

       -c xxx sets Comment to xxx

       -f xxx sets Full Name to xxx

       -U xxx sets UserProfile to xxx

       -n xxx sets LogonScript to xxx

       -h xxx sets HomeDir to xxx

 

       -H x   sets HomeDirDrive to x

 

       +s xxxx sets property xxxx

       -s xxxx resets property xxxx

       where xxxx can be any of the following properties:

              MustChangePassword

              CanNotChangePassword

              PasswordNeverExpires

              AccountDisabled

              AccountLockout

              RASUser

returns 0 on success

 

and you can change the terminal services with the following. 

 

tscmd <Server> <User> <Setting> [New Value]

 

Settings:

        InitialProgram

        WorkingDirectory

        InheritInitialProgram

        AllowLogonTerminalServer

        TimeoutConnection

        TimeoutDisconnect

        TimeoutIdle

        DeviceClientDrives

        DeviceClientPrinters

        DeviceClientDefaultPrinter

        BrokenTimeoutSettings

        ReconnectSettings

        ModemCallbackSettings

        ModemCallbackPhoneNumber

        ShadowingSettings

        TerminalServerProfilePath

        TerminalServerHomeDir

        TerminalServerHomeDirDrive

 

See ReadMe.txt file for more usage information

 

Copyright 2000, SystemTools.com http://www.systemtools.com

 

 

Edward E. Ziots

Network Engineer

Lifespan Organization

MCSE,MCSA,MCP,Security+,Network+,CCA

Phone: 401-639-3505

________________________________

From: Joseph L. Casale [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2008 4:33 PM
To: NT System Admin Issues
Subject: Scripted AD Redirected Profile Change

 

I have a slew of redirected profile changes to make. I was hoping to
obviously script this.

Anyone got a pointer to a doc or anything they could share?

 

I don't want to be here late tonight, again! <grin>

 

Thanks,
jlc

 

 

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to