?
Solved

Login scripts

Posted on 2011-03-21
7
Medium Priority
?
411 Views
Last Modified: 2012-06-21
I'm trying to add a simple login script for users and selected users:  For example:
net use p: \\servername\public /persistent:yes

I went to Group Policy Management-Default Domain Policy-Edit-User Configuration-Windows Settings-Scripts-Logon-Show Files and then pasted the logon.txt file that I created.

I then ran GPUPDATE /force

However, when I log into my computer the P drive is not mapped, or any other commands that I've specified in my logon.txt file.

Am I doing something wrong?
0
Comment
Question by:markrkelley123
[X]
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
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 96

Accepted Solution

by:
Lee W, MVP earned 300 total points
ID: 35183862
login.txt?  It should be login.bat or login.cmd - assuming everything else has been done correctly.  (and I wouldn't say persistent:yes - if you make it persistent, why are you using a login script?).
0
 

Author Comment

by:markrkelley123
ID: 35183879
Ohh.  Good point.  I need to change it to LOGON.BAT.

I made it persistent so that way it comes back if someone disconnects the drive mapping.  Should I not?
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 35183905
The script runs EVERY TIME someone logs in... so it reconnects with every login.  (Actually if you have 2008 DCs, I believe you can map drives using Group Policy Preferences instead).
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:ReesAssociates
ID: 35183914
After you change the name to .bat, run gpupdate.  Then lookup the results on your login test in the group policy editor.  This will let you know which settings were successfully implemented.
0
 

Author Comment

by:markrkelley123
ID: 35183980
Still doesn't work.  Are you refering to the Settings tab that generates reports or the GPRESULT command?
0
 
LVL 2

Expert Comment

by:ReesAssociates
ID: 35184073
Yes that is it.  Just wanted to make sure that it was recognizing your settings correctly and the correct GPO.

Have you tested the script by adding it to your test account in active directory?  
0
 
LVL 16

Assisted Solution

by:cantoris
cantoris earned 200 total points
ID: 35185170
As well as clicking show files and pasting it in, have you actually added it by name to the list of logon scripts in that group policy object?
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Suggested Courses

777 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