Solved

Login scripts

Posted on 2011-03-21
7
406 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
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 75 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 95

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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 50 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Elevating Domain functional level 9 122
inactive users 13 77
Event ID: 1008 / Source: Microsoft-Windows-Perflib 2 160
2003 Server DNS/FS errors 6 49
This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

786 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