Networking Forums

Networking Forums > Computer Networking > Windows Networking > Login Scripts

Reply
Thread Tools Display Modes

Login Scripts

 
 
Bikini Browser
Guest
Posts: n/a

 
      12-13-2006, 01:56 PM
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


 
Reply With Quote
 
 
 
 
Jeremy Church
Guest
Posts: n/a

 
      12-13-2006, 02:27 PM

"Bikini Browser" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.

> Your comments are appreciated.
>
> Dale
>



 
Reply With Quote
 
Bikini Browser
Guest
Posts: n/a

 
      12-13-2006, 03:01 PM
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

<(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>
> "Bikini Browser" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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.
>
>> Your comments are appreciated.
>>
>> Dale
>>

>
>



 
Reply With Quote
 
Bikini Browser
Guest
Posts: n/a

 
      12-13-2006, 05:18 PM
Hi!

I'm still having a problem locating how to configure time sync with XP
clients to the PDC using Group Policy's.

Any help in this area is appreciated.

Dale


"MSR Consulting SBS Support" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Here's good place to start on group policy and will tell you the answers
> to your questions.
>
> http://tinyurl.com/sj48t
>
>
> In regards to login scripts, yes there is obviously a way to do just
> about everything in a login script....but to correctly implement login
> scripts you also need to expose yourself to group policy as that is
> where you are going to need to implement them if you choose to do so
> (after you've discovered that you can do that and most everything else,
> easier and with more granularity, than you can via scripts).
>
> Matt Ridings - MSR Consulting
>
>
> --
> admin
> ------------------------------------------------------------------------
> admin's Profile: http://forums.msrportal.com/member.php?userid=1
> View this thread: http://forums.msrportal.com/showthread.php?t=14174
>
> MSR Consulting SBS Support - support (at) msrportal.com
>



 
Reply With Quote
 
kj
Guest
Posts: n/a

 
      12-13-2006, 05:25 PM
It's properly configured out of the box. The only reason is breaks is
somebody mucks with it.

What problem are you currently having?
--
/kj
"Bikini Browser" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi!
>
> I'm still having a problem locating how to configure time sync with XP
> clients to the PDC using Group Policy's.
>
> Any help in this area is appreciated.
>
> Dale
>
>
> "MSR Consulting SBS Support" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>> Here's good place to start on group policy and will tell you the answers
>> to your questions.
>>
>> http://tinyurl.com/sj48t
>>
>>
>> In regards to login scripts, yes there is obviously a way to do just
>> about everything in a login script....but to correctly implement login
>> scripts you also need to expose yourself to group policy as that is
>> where you are going to need to implement them if you choose to do so
>> (after you've discovered that you can do that and most everything else,
>> easier and with more granularity, than you can via scripts).
>>
>> Matt Ridings - MSR Consulting
>>
>>
>> --
>> admin
>> ------------------------------------------------------------------------
>> admin's Profile: http://forums.msrportal.com/member.php?userid=1
>> View this thread: http://forums.msrportal.com/showthread.php?t=14174
>>
>> MSR Consulting SBS Support - support (at) msrportal.com
>>

>
>



 
Reply With Quote
 
Bikini Browser
Guest
Posts: n/a

 
      12-13-2006, 07:56 PM
Are you saying that XP Clients automatically sync with the PDC by default?

Dale


"kj" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> It's properly configured out of the box. The only reason is breaks is
> somebody mucks with it.
>
> What problem are you currently having?
> --
> /kj
> "Bikini Browser" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi!
>>
>> I'm still having a problem locating how to configure time sync with XP
>> clients to the PDC using Group Policy's.
>>
>> Any help in this area is appreciated.
>>
>> Dale
>>
>>
>> "MSR Consulting SBS Support" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>
>>> Here's good place to start on group policy and will tell you the answers
>>> to your questions.
>>>
>>> http://tinyurl.com/sj48t
>>>
>>>
>>> In regards to login scripts, yes there is obviously a way to do just
>>> about everything in a login script....but to correctly implement login
>>> scripts you also need to expose yourself to group policy as that is
>>> where you are going to need to implement them if you choose to do so
>>> (after you've discovered that you can do that and most everything else,
>>> easier and with more granularity, than you can via scripts).
>>>
>>> Matt Ridings - MSR Consulting
>>>
>>>
>>> --
>>> admin
>>> ------------------------------------------------------------------------
>>> admin's Profile: http://forums.msrportal.com/member.php?userid=1
>>> View this thread: http://forums.msrportal.com/showthread.php?t=14174
>>>
>>> MSR Consulting SBS Support - support (at) msrportal.com
>>>

>>
>>

>
>



 
Reply With Quote
 
kj
Guest
Posts: n/a

 
      12-13-2006, 08:09 PM
Yes.

http://support.microsoft.com/kb/307897/en-us

....for details.

--
/kj
"Bikini Browser" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Are you saying that XP Clients automatically sync with the PDC by default?
>
> Dale
>
>
> "kj" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> It's properly configured out of the box. The only reason is breaks is
>> somebody mucks with it.
>>
>> What problem are you currently having?
>> --
>> /kj
>> "Bikini Browser" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi!
>>>
>>> I'm still having a problem locating how to configure time sync with XP
>>> clients to the PDC using Group Policy's.
>>>
>>> Any help in this area is appreciated.
>>>
>>> Dale
>>>
>>>
>>> "MSR Consulting SBS Support" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>>
>>>> Here's good place to start on group policy and will tell you the
>>>> answers
>>>> to your questions.
>>>>
>>>> http://tinyurl.com/sj48t
>>>>
>>>>
>>>> In regards to login scripts, yes there is obviously a way to do just
>>>> about everything in a login script....but to correctly implement login
>>>> scripts you also need to expose yourself to group policy as that is
>>>> where you are going to need to implement them if you choose to do so
>>>> (after you've discovered that you can do that and most everything else,
>>>> easier and with more granularity, than you can via scripts).
>>>>
>>>> Matt Ridings - MSR Consulting
>>>>
>>>>
>>>> --
>>>> admin
>>>> ------------------------------------------------------------------------
>>>> admin's Profile: http://forums.msrportal.com/member.php?userid=1
>>>> View this thread: http://forums.msrportal.com/showthread.php?t=14174
>>>>
>>>> MSR Consulting SBS Support - support (at) msrportal.com
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Kim Bracknell
Guest
Posts: n/a

 
      12-14-2006, 01:56 AM
Dale,
I was having heaps of problems having my workstations sync with the server.
So I have used a batch file called from:
User Configuration\Administrative Templates\System\Logon\Run these programs
at User logon
The batch file simply includes:
net time /domain:ABC /set /yes
(ensure you amend the domain name to your own)

KJ,
If it 'does' work out of the box, one should be able to reset the settings
in:
HKLM\System\CurrentControlSet\Services\W32Time
to their defaults to get syncing to work - are these defaults available
anywhere?
Or, can the key simply be deleted to get back to square one?
Thx,
Kim.


"kj" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Yes.
>
> http://support.microsoft.com/kb/307897/en-us
>
> ...for details.
>
> --
> /kj
> "Bikini Browser" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Are you saying that XP Clients automatically sync with the PDC by
>> default?
>>
>> Dale
>>
>>
>> "kj" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> It's properly configured out of the box. The only reason is breaks is
>>> somebody mucks with it.
>>>
>>> What problem are you currently having?
>>> --
>>> /kj
>>> "Bikini Browser" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Hi!
>>>>
>>>> I'm still having a problem locating how to configure time sync with XP
>>>> clients to the PDC using Group Policy's.
>>>>
>>>> Any help in this area is appreciated.
>>>>
>>>> Dale
>>>>
>>>>
>>>> "MSR Consulting SBS Support" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>>
>>>>> Here's good place to start on group policy and will tell you the
>>>>> answers
>>>>> to your questions.
>>>>>
>>>>> http://tinyurl.com/sj48t
>>>>>
>>>>>
>>>>> In regards to login scripts, yes there is obviously a way to do just
>>>>> about everything in a login script....but to correctly implement login
>>>>> scripts you also need to expose yourself to group policy as that is
>>>>> where you are going to need to implement them if you choose to do so
>>>>> (after you've discovered that you can do that and most everything
>>>>> else,
>>>>> easier and with more granularity, than you can via scripts).
>>>>>
>>>>> Matt Ridings - MSR Consulting
>>>>>
>>>>>
>>>>> --
>>>>> admin
>>>>> ------------------------------------------------------------------------
>>>>> admin's Profile: http://forums.msrportal.com/member.php?userid=1
>>>>> View this thread: http://forums.msrportal.com/showthread.php?t=14174
>>>>>
>>>>> MSR Consulting SBS Support - support (at) msrportal.com
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
kj
Guest
Posts: n/a

 
      12-14-2006, 04:14 AM
Did you manually set registry entries?

net time with the /setsntp
or W32TM do make registry changes, but

w32tm /config syncfromflagsOMHIER
("DOMHIER - sync from a DC in the domain hierarchy")

should reset "normal" changes as I recall.

To test, type "Net time" and the time at a DC should be returned.
--
/kj
"Kim Bracknell" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dale,
> I was having heaps of problems having my workstations sync with the
> server. So I have used a batch file called from:
> User Configuration\Administrative Templates\System\Logon\Run these
> programs at User logon
> The batch file simply includes:
> net time /domain:ABC /set /yes
> (ensure you amend the domain name to your own)
>
> KJ,
> If it 'does' work out of the box, one should be able to reset the settings
> in:
> HKLM\System\CurrentControlSet\Services\W32Time
> to their defaults to get syncing to work - are these defaults available
> anywhere?
> Or, can the key simply be deleted to get back to square one?
> Thx,
> Kim.
>
>
> "kj" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Yes.
>>
>> http://support.microsoft.com/kb/307897/en-us
>>
>> ...for details.
>>
>> --
>> /kj
>> "Bikini Browser" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Are you saying that XP Clients automatically sync with the PDC by
>>> default?
>>>
>>> Dale
>>>
>>>
>>> "kj" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> It's properly configured out of the box. The only reason is breaks is
>>>> somebody mucks with it.
>>>>
>>>> What problem are you currently having?
>>>> --
>>>> /kj
>>>> "Bikini Browser" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> Hi!
>>>>>
>>>>> I'm still having a problem locating how to configure time sync with XP
>>>>> clients to the PDC using Group Policy's.
>>>>>
>>>>> Any help in this area is appreciated.
>>>>>
>>>>> Dale
>>>>>
>>>>>
>>>>> "MSR Consulting SBS Support" <(E-Mail Removed)> wrote in message
>>>>> news:(E-Mail Removed)...
>>>>>>
>>>>>> Here's good place to start on group policy and will tell you the
>>>>>> answers
>>>>>> to your questions.
>>>>>>
>>>>>> http://tinyurl.com/sj48t
>>>>>>
>>>>>>
>>>>>> In regards to login scripts, yes there is obviously a way to do just
>>>>>> about everything in a login script....but to correctly implement
>>>>>> login
>>>>>> scripts you also need to expose yourself to group policy as that is
>>>>>> where you are going to need to implement them if you choose to do so
>>>>>> (after you've discovered that you can do that and most everything
>>>>>> else,
>>>>>> easier and with more granularity, than you can via scripts).
>>>>>>
>>>>>> Matt Ridings - MSR Consulting
>>>>>>
>>>>>>
>>>>>> --
>>>>>> admin
>>>>>> ------------------------------------------------------------------------
>>>>>> admin's Profile: http://forums.msrportal.com/member.php?userid=1
>>>>>> View this thread: http://forums.msrportal.com/showthread.php?t=14174
>>>>>>
>>>>>> MSR Consulting SBS Support - support (at) msrportal.com
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Tmade
Guest
Posts: n/a

 
      01-30-2007, 11:47 PM
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





"Bikini Browser" wrote:

> 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
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Scripts Through VPN Jason4101 Windows Networking 4 04-12-2008 02:40 PM
Login Scripts =?Utf-8?B?Um9zZQ==?= Windows Networking 1 03-17-2005 09:08 PM
login scripts andy Windows Networking 0 08-12-2004 12:39 PM
Login scripts Joe Windows Networking 3 06-18-2004 11:58 AM
Login Scripts Jerry Windows Networking 4 02-13-2004 06:25 PM



1 2 3 4 5 6 7 8 9 10 11