Solved

How do I make a logon script run?

Posted on 2007-12-03
4
1,274 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
[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
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses

623 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