Solved

How do I make a logon script run?

Posted on 2007-12-03
4
1,268 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
Comment Utility
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
Comment Utility
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
Comment Utility
or to specifically answer the question.

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

Author Comment

by:fekdep
Comment Utility
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

The saying goes a bad carpenter blames his tools. In the Directory Services world a bad system administrator, well, even with the best tools they’re probably not going to become an all star.  However for the system admin who is willing to spend a li…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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 tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now