Tech Support > Microsoft Windows > Basics > How to run a batch file the first time
How to run a batch file the first time
Posted by Hank Arnold on November 2nd, 2005


I'd like to runa a batch file automatically the first time a user logs onto
a machine. They will be logging onto a a domain at an XP Pro workstation as
a domain user. It assigns a network drive as well as several network
printers. Is there a straight forward to do this?

Regards,
Hank Arnold


Posted by Torgeir Bakken \(MVP\) on November 2nd, 2005


Hank Arnold wrote:

> I'd like to runa a batch file automatically the first time a user logs onto
> a machine. They will be logging onto a a domain at an XP Pro workstation as
> a domain user. It assigns a network drive as well as several network
> printers. Is there a straight forward to do this?
>

Hi,

I suggest you do it in a logon script (set by a GPO).


Frequently Asked Questions About Logon Scripts
http://www.rlmueller.net/LogonScriptFAQ.htm

Logon Script info at LabMice.net
http://labmice.techtarget.com/script...gonscripts.htm


You will also find logon script examples at
http://cwashington.netreach.net as well.

E.g. here:
http://cwashington.netreach.net/depo...e=LogonScripts



--
torgeir, Microsoft MVP Scripting, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx

Posted by Trax on November 2nd, 2005


"Hank Arnold" <rasilon@aol.com> wrote:

|>I'd like to runa a batch file automatically the first time a user logs onto
|>a machine. They will be logging onto a a domain at an XP Pro workstation as
|>a domain user. It assigns a network drive as well as several network
|>printers. Is there a straight forward to do this?

Run gpedit.msc, edit the logon scripts.




--
Sony, Rootkits and Digital Rights Management Gone Too Far
http://tinyurl.com/auyjl


Similar Posts