Logon Script/Terminal Server Logon Script

D

Don Jones

I have some registry settings that need to be set for
users based on the groups they are assigned to. What is
the best way to accomoplish this? I was think using login
scripts or the logon scripts that are automatically
executed when a user logs on to terminal service. These
two options fit the execution order, but I have not
figured out how to determine which group a user belongs
to.

The settings only need to be set one time, for new users I
have established a default profile with settings, and this
works. For some users, I have used regedt32.exe and
loaded the ntuser.dat and made the changes by hand. Have
several hundred users to modify.

Thanks.

Don Jones
 
P

Pegasus \(MVP\)

Don Jones said:
I have some registry settings that need to be set for
users based on the groups they are assigned to. What is
the best way to accomoplish this? I was think using login
scripts or the logon scripts that are automatically
executed when a user logs on to terminal service. These
two options fit the execution order, but I have not
figured out how to determine which group a user belongs
to.

The settings only need to be set one time, for new users I
have established a default profile with settings, and this
works. For some users, I have used regedt32.exe and
loaded the ntuser.dat and made the changes by hand. Have
several hundred users to modify.

Thanks.

Don Jones

You can use ifmember.exe. It comes with the Win2000 Resource Kit.

ifmember Sales || goto Sales
ifmember HR || goto HR
etc.
 
D

Don Jones

Thanks for the reply. Outside of the W2K Resource Kit,
and KIX, is there any other way to check group member ship?

Thanks.

Don Jones
 
B

Bob Qin [MSFT]

Hi Don,

Thanks for your posting here.

You can also try the latest version of whoami.exe in Windows Server 2003.

whoami /groups

Displays group membership for current user, type of account, security
identifiers (SID) and attributes.

For more information, please type "whoami /?" command.

Wish it helps.

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

Don Jones

Thanks Bob, for the information.

Unfortunately, we are currently not running Windows 2003
Server.

Don Jones
 
D

Don Jones

Bob,

I was unable to open the attachment. Can you zip it and
rename it to .txt?

Thanks.

Don Jones
-----Original Message-----
Hi Don,

I have attached the whoami.exe tool in my post. Please save it to your hard
disk and copy it to Windows folder or System32 folder.

Have a nice day!

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

User Logon Scripts 3
Help with logon scripts not triggering 1
Logon Script Not Working 8
Logon Script 4
Logon Script Problems 13
Logon Script 1
logon scripts connecting printers 2
Windows XP Logon script location 3

Top