Re: Login Script Doesn't Run
- From: Thomas M <ReplyToNewsgroup@xxxxxxxxxx>
- Date: Mon, 16 Apr 2007 02:10:28 -0600
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
- References:
- Login Script Doesn't Run
- From: Thomas M
- Login Script Doesn't Run
- Prev by Date: Re: WinXp pro domain logon
- Next by Date: Re: Event ID 4
- Previous by thread: Login Script Doesn't Run
- Next by thread: no internet connection after restart but LAN OK?
- Index(es):
Relevant Pages
|