Help login.cmd

Lazarus

Part of the furniture
Joined
Dec 22, 2003
Messages
2,874
Guys,

Im trying to setup a login.cmd file which will perform an activity when a certain user logs onto a pc.

I have modified the login.cmd file and saved this under each specific user within the Documents and settings/user folder.

however, when the user logs on, the login.cmd file is not triggered.

I have also attempted to add the login.cmd file to the logon script field of the User properties (in Computer Management)


However, when the user logs on, he is taken to the correct directory, but the login.cmd file is not triggered.

any info on how I can get this login.cmd to trigger?
 

Cyradix

FH is my second home
Joined
Dec 22, 2003
Messages
2,128
Is it in an AD domain? You can specify startup scripts via AD.

Or you can drop the login.cmd in the startup folder in the user profile :
\Documents and Settings\User\Start Menu\Programs\Startup

Or you could create a registry key for it :
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Create a new string and as it's value just specify the path of the cmd file
 

Lazarus

Part of the furniture
Joined
Dec 22, 2003
Messages
2,874
cheers cyradix.

Will try that later (working on a PC in Japan - need to wait till the user is finished before I can RemoteDesktop to that PC.
 

soze

I am a FH squatter
Joined
Jan 22, 2004
Messages
12,508
Just found this. If the machine is not in a domain.

The default location for a local logon script is %systemroot%\System32\Repl\Imports\Scripts. If you want to store logon scripts in this directory, it must be shared and the share name must be Netlogon
 

Users who are viewing this thread

Top Bottom