Login Scripts

B

Bikini Browser

Hello Everyone:

I have a few questions about Login Scripts...

I want to configure MY Documents to automatically change to
H:\USERS\%username%

Q1: Is the %username% variable case sensitive? i.e.: Should I use
%username% or %USERNAME%

Q2: What login command do I use to automatically change the path (Folder)
of "My Documents" on each computer that reads the login script?

Q3: If I want to use the time command: "net time \\server_1 /set /yes" and
does the work station or user need to be a power user or an administrator of
his/her Computer? What if the user is only a "user"? How can I set the
time on their computer using a login script?

Your comments are appreciated.

Dale
 
J

Jeremy Church

Bikini Browser said:
Hello Everyone:

I have a few questions about Login Scripts...

I want to configure MY Documents to automatically change to
H:\USERS\%username%
Q1: Is the %username% variable case sensitive? i.e.: Should I use
%username% or %USERNAME%

No, environment variables are not case sensitive.

Q2: What login command do I use to automatically change the path (Folder)
of "My Documents" on each computer that reads the login script?

This is done using a group policy object (GPO). If you open your AD Users
and computers, apply a GPO to the container with the users in question. In
the GPO, go to the User Configuration > Windows Settings > Folder
Redirection > My Documents. If you're using 2003, the redirection is self
explanatory and quite simple.
Q3: If I want to use the time command: "net time \\server_1 /set /yes" and
does the work station or user need to be a power user or an administrator
of his/her Computer? What if the user is only a "user"? How can I set
the time on their computer using a login script?

The workstation should set it's time to the PDC Emulator at a regular
interval. Again, if you use Server 2003 and Windows XP as your
workstations, there are GPO settings to modify the time service settings on
the workstations from the domain controller(s) to prevent you from touching
every machine. With time you have to verify every computer is set for the
correct time zone as well as DST being set correctly. The PDC emulator
should have a responding NTP server configured so it will have accurate
time.
 
B

Bikini Browser

Hi!

I am using SBS 2003. How do I open my AD Users and computers, apply a GPO to
the container? I looked at it and I don't see a clear way to get there.
Isn't there a command line to open the GP manager?

Also, isn't there a way to do this in the login script? I am sure you can
set the time in a login script....

Dale
 
G

Guest

First I want to suggest you NOT have the my documents directory copy to the
users home directory. The reason is every personal photo from any camera,
every mp3 from any external devices gets copied there. This can take up a LOT
of space on users home directories. Plus e-mail attachments get saved there
also.

If you are going to use policies, use the policy to specify that the
applications save to the users home directory. It's a business directory
right?

The policy editor has to be installed on the server, you can go to downloads
and get that.

One of my many hats is the backup admin, I see all the junk. Which quickly
adds up to larger storage needs quickly.

That's my 2 cents..

T
 

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

Setting time error 3
winexit.scr and old username 1
Login Script Doesn't Run 1
Login Process 8
How to set up Agree/Disagree window? 7
Login Error at Startup 3
Restrict changing username 1
login scripts 1

Top