Re: Login Script Doesn't Run



Never mind. It occurred to me that maybe it could be done through a
group policy. I found the Logon policy for the user and added the file
to the list of scripts. The drive now maps when I login.

--Tom

In article <MPG.208cd9e5ac03e426989696@xxxxxxxxxxxxxxxxxx>,
ReplyToNewsgroup@xxxxxxxxxx says...
XP Pro SP2

I want to map a drive to a shared folder on another computer each time I
login. I have a .CMD file containing the following command:

net use Z: "\\<Computer Name>\<Shared Folder>" <Password> /user:Tom
/persistent:no

With the appropriate values substituted for <Computer Name>, <Shared
Folder>, and <Password> this works perfectly. The only problem is that
I cannot make it run when I login.

I went into the properties for the user account and entered the
following values:

Profile Path: C:\Documents and Settings\Tom
Login Script: Login.cmd

I put Login.cmd in the profile path folder. I thought that would cause
the login script to be run automatically when I log in, but the script
does not run. I tried naming the file Login.bat, I tried moving it to
the root of the drive, I tried putting the command in the Autoexec.bat
file. Thus far I have been unable to get it to run when I login. If I
run the file manually it works perfectly, so the problem is not with the
command. Clearly, there is something that I'm missing.

How do I get a login script to run automatically when I log in?

--Tom

.



Relevant Pages

  • Re: telnet logins
    ... I presume you mean that in the system login scripts the path is never ... > The telnet protocol allows clients to send environment variable ... Even if this is a simple one-line change to the user's login script, ...
    (comp.unix.solaris)
  • Re: Inconsistant Drive Mapping
    ... Login scripts are managed by Group Policy. ... The login script for this login has one drive mapped. ...
    (microsoft.public.windows.group_policy)
  • RE: error logging in from W2k client
    ... The problem occurs immediately on login with any account which does not have ... administrator rights. ... login script which I have not altered from the default. ... > on one of your client computer, when logon this client via RDP. ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office users slow logon
    ... I am running SBS 2003 standard and Server 2003. ... Each user sees the black login script window and we are waiting for the ... It sounds like your login script is running something across the WAN. ... the default sbs_login.bat batch file and that the batch file is ...
    (microsoft.public.windows.server.sbs)
  • Re: Inconsistant Drive Mapping
    ... Actually, I meant that the same login is used 1-15 times smultaneously, not ... Thanks for the ms kb leads. ... Login scripts are managed by Group Policy. ... The login script for this login has one drive mapped. ...
    (microsoft.public.windows.group_policy)

Quantcast