Solved

How do I make a logon script run?

Posted on 2007-12-03
4
1,270 Views
Last Modified: 2008-05-31
I've made a logon script that maps printers.  It works if I double click on it.  It doesn't run on startup though.

Under the user profile in Active Directory I select the user, view the properties then go to the profile tab.

Profile Path:  \\server\profiles\user1
Logon Script: \\server\profiles\user1\user1.vbs

What am I doing wrong?

By the way, this is a mandatory profile.  ie.  Whenever the user logs in, all of their settings are reset.  This script is meant to make the user print to the proper printer.
0
Comment
Question by:fekdep
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
chipbunker earned 500 total points
ID: 20400857
If you are putting the Logon Script into the users profile you should only have to put the name of the script in the "logon script" area, vice the full path (i.e. 'user1.vbs'). Once you have corrected that you will need to place the .vbs script in the "NETLOGON" location on the Domain Controller by going to 'start--> run --> \\servername\netlogon". Also, if this is a mandatory profile I believe that you will need to make the extension on the file a .man rather than .vbs.

http://technet2.microsoft.com/windowsserver/en/library/3bd7900c-6145-461d-89f2-c12a8c6dd7301033.mspx?mfr=true
0
 
LVL 19

Expert Comment

by:weellio
ID: 20400935
you may want to run a batch file that encapsualtes your other scripts.

i.e.
loginscript.bat with contents below

rem    this is the login script file
rem    it runs all my other scripts
cscript %logonserver%\netlogon\user1.vbs

0
 
LVL 19

Expert Comment

by:weellio
ID: 20400942
or to specifically answer the question.

try this as the login script
cscript \\server\profiles\user1\user1.vbs
0
 

Author Comment

by:fekdep
ID: 20400992
Sorry guys.  The first solution worked so I accepted it before refreshing the page.  The batch file is a good idea though.
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

Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

822 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