Windows Login Script

Posted on 2011-09-14
Last Modified: 2012-05-12

I would like to create a login script that will open up a certain folder upon login. Basically when the user logs into the domain, the script will run and automatically launch exlorer and show the folder.

Would be best if I can prevent shut down of the computer and only logoff as well. Is there any good sites that can help in creating login scripts?

Question by:sflory
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

ID: 36540165
explorer.exe \windows
will open the windows folder save it as a batch or cmd

as far as the second part you will want to take a look at autoit
I can help you with anything autoit related.

Expert Comment

ID: 36540188
For preventing logoff you can handle all of this with group policy.

Author Comment

ID: 36540224
Thanks 5g6tdcv4.

If I wanted to open up a browser , say Firefox, would l just set the path to the Firefix exe?

LVL 13

Accepted Solution

5g6tdcv4 earned 500 total points
ID: 36540232
it would just be the location of the exe

Expert Comment

ID: 36541021
Yes path to firefox is fine. If you wanted a specific website add it after

C:\fullpathtofirefox\firefox.exe ""

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question