Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


February 10, 2009

Reader Challenge February 2009

RSS
Subscribe to Windows IT Pro | See More Domains Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

January 2009 Reader Challenge Winner
   Congratulations to Gary Autrey of North Carolina, the winner of our January 2009 Reader Challenge. He wins a copy of Windows Server 2008: The Definitive Guide from O'Reilly Media.

February 2009 Reader Challenge
   Solve this month's UPDATE challenge, and you might win a prize! Email your solution (don't use an attachment) to challenge@windowsitpro.com by February 13. You MUST include your full name, street mailing address (no P.O. Boxes), and a telephone number. Without that information, we can't send you a prize if you win, so your answer is eliminated, even if it’s correct.
   I choose winners at random from the pool of correct entries. I’m a sucker for humor and originality, and a cleverly written correct answer gets an extra chance. Because I receive so many entries each month, I can't reply to respondents, and I never respond to a request for an email receipt. Look for the solutions to this month's problem here after the close of the contest.

The  Challenge:

   A friend who is an IT consultant called me. She was at a client site setting up accounting software, and the company's IT consultant was also on-site, installing a new server. They talked about groups, permissions, and so on for the members of the accounting department. To keep all users except the payroll administrator away from payroll information, my friend had created a local instance of the Payroll module of the software on the payroll administrator's computer. She showed the payroll administrator how to log on locally instead of logging onto the domain on Wednesday mornings (she runs the payroll every Wednesday).

   Domain logons automatically run a login script, and the IT consultant wanted some of the tasks in that script to run even if a user logged on to the local computer. He told my friend he'd write a script that would log the payroll administrator onto the domain to run his logon script and then switch the user to a local logon automatically. He said it was a complicated script and it would take him a few days to figure out how to do it.

   She told him, "Don't bother, I'll bet I can write a batch file that will act as a logon script that will run only when a user logs on locally. He told her, "There's no way to do that".

   She called me to ask if I could write a local logon script for her to install on the payroll administrator's computer. Was this a reasonable request? Is there a way to set up two logon scripts--one for a local logon and a different one for a domain logon?

 

Answer:

Yes, you can have separate logon scripts for local logons and domain logons. At the computer in question, log on as an administrator and open the Computer Management Administrative Tool. Expand the Local Users and Groups section and locate the appropriate user. Open Properties and go to the Profile tab. Type the path and file name of the script under Logon Script.

The default location for local logon scripts is the %SystemRoot%\System32\Repl\Import\Scripts folder. You have to share this folder with the share name netlogon. You can, however, use any folder on the computer, as long as the user has access to that folder. Microsoft recommends you share any folder that holds a logon script.

End of Article



Reader Comments
Sure, there are several ways. Probably the easiest way is to put a batch file in the local user's startup folder. Each user profile has unique items in the start menu, including the startup folder. Placing a batch file in there that maps drives, printers, etc. will only run when the local user logs on. If you need a more elaborate script, you could use WSH (VBScript or JScript).

There are some things to consider, such as permissions. Just any local account won't have permission to access domain resources. In most cases, "pass-through" authentication will work. That means creating a domain account that matches the credentials of the local account and assigning permissions for that user. It usually also means checking the box so that the password never expires for both the domain user and the local user - otherwise password changes would have to be synchronized.

There are security concerns as well, and whether or not to override domain or company policy is a call that would have to be made by each individual organization.

kurtl February 11, 2009 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Windows 7 Sets Sales Record

Microsoft CEO Steve Ballmer described Windows 7's first ten days of sales as "fantastic" while in Japan yesterday. ...


Scripting Whitepapers From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events WinConnections and Microsoft® Exchange Connections

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement