Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch Scripting/Creating a Logon Script  (Read 4424 times)

0 Members and 1 Guest are viewing this topic.

Xeratul

    Topic Starter
  • 100,000th poster


  • Hopeful
  • Experience: Familiar
  • OS: Windows 7
Batch Scripting/Creating a Logon Script
« on: February 20, 2006, 08:50:13 PM »
I'm fairly new to batch scripting, and
I've seen Batch File logon scripts that run immediately after a user logs on to his/her account. I know these scripts can be used to connect to network drives and such like below...

Code: [Select]
net use R: \\officeserver\shared
net use P: \\officeserver\apps
and my question is how do they get this file to run immediately after logon?  
« Last Edit: February 21, 2006, 05:54:34 PM by Wraith112 »

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: Batch Scripting/Creating a Logon Script
« Reply #1 on: February 21, 2006, 09:50:00 AM »
For a single workstation, try putting the login script in the "c:\documents and setttings\all users\start menu\programs\startup" folder. The script will run no matter who signs on.

On a domain network, the script runs from the server. The network administrator needs to set this up.

Hope this helps. 8-)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

Xeratul

    Topic Starter
  • 100,000th poster


  • Hopeful
  • Experience: Familiar
  • OS: Windows 7
Re: Batch Scripting/Creating a Logon Script
« Reply #2 on: February 21, 2006, 04:21:36 PM »
  :D Thanks, this was exactly what I was looking for.
« Last Edit: February 21, 2006, 04:22:46 PM by Wraith112 »