Home > Windows Server Tips > Windows Systems Management and Administration > Quick hits: Troubleshooting service account failure, batch job execution
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS MANAGEMENT AND ADMINISTRATION

Quick hits: Troubleshooting service account failure, batch job execution


Gary Olsen, Contributor
06.03.2008
Rating: -4.00- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Gary Olsen
Gary Olsen
The following is a collection of three real world administration problems and how they were solved.

Application failure – Service account password gets out of sync randomly

Problem: On every reboot or restart of the XYZ service -- or at some random point in the day -- the application using the XYZ service would fail with Access Denied. A workaround solution involved resetting the password on the service account, then making sure the password set in the service matched the service account's password in the Users and Computers snap-in. This would fix the problem until another reboot or when some amount of time had gone by.

Analysis: In this case, an admin had incorrectly enabled a Group Policy user right called "Log on as Service" and entered a user name in the list. This username was not that of the XYZ service account. As shown in Figure 1, you can either specify no users/groups or any number of users and groups. Note that if there is nothing in the list, then it is wide open and applies to all users.

Figure 1

If you make any entry at all in the list, the right is restricted to only users/groups in that list. As soon as the admin added that user and the policy was refreshed, only that account could log on as a service, excluding the XYZ service account. Thus, it prevented the XYZ service account from logging on as a service. Changing the password reset the account and got around the problem until the next GPO refresh.

Remember that on a workstation, the GPO is refreshed every 16 hours with no changes to Group Policy, so setting the password manually would work until the GPO was refreshed, making it seem random.

Solution: The solution was to either remove all users and groups from the Log On As A Service right or to add the XYZ service account to the list. Of course, this applies in general to service accounts.

Can't run more than 55 batch jobs from Task Scheduler

Problem: Administrator claims that when using the Task Scheduler on Windows Server 2003 SP2, he can only start 55 jobs under the LocalSystem account. He can, however, start more jobs under the context of a domain account.

Analysis: It turns out that he could schedule more jobs but they wouldn't run. This affected all servers.

Solution: We started by looking for a possible resource issue or something peculiar to the environment (because it couldn't be reproduced in our lab). The cause turned out to be lack of memory. Each of these jobs consumed some amount of memory. When it ran out, the job just wouldn't run, even though there was no event or error pop-up. We confirmed this by running a simple BAT file that opened a CMD prompt. The admins could then run more than 55 jobs. We also found that there was nothing magic about the number 55. It was just at that point where they ran out of memory to run the app. The solution, of course, is to add more memory (or don't run so many apps).

RunAs doesn't return user properties

Problem: Logged in as the Administrator account, a person opens the Users and Computers console. He then uses a "Saved Query" that was built to search for a user. Double-clicking on any one of the users causes the user properties window to appear. However, when using the RunAs command or another domain user -- including a domain admin account – to do this, the user properties don't show up.

Solution: In Group Policy, we enabled the following: User Configuration\Administrative Templates\Windows Components\Windows Explorer\ "Remove Windows explorer default "Context Menu." According to the Explain tab on this setting, enabling it disables right-clicks for menus (which displays properties). The admin account can't be blocked from anything but this blocked domain. Disabling the setting fixed the problem.

Gary Olsen is a systems software engineer for Hewlett-Packard in Global Solutions Engineering. He authored Windows 2000: Active Directory Design and Deployment and co-authored Windows Server 2003 on HP ProLiant Servers. Gary is a Microsoft MVP for Directory Services and formerly for Windows File Systems.

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Microsoft Systems and Network Troubleshooting
Case Study: Troubleshooting Windows service dependency failures
Troubleshooting common Windows service failures
How can I boot to a floppy and receive a command prompt without being directed to the system drive?
How to ease troubleshooting: View running services in command line
Use System Monitor to find bottlenecks in Windows Server 2003
Utility recovers wireless network keys in Windows installation
Prevent users from erasing URL history
Troubleshoot networks with the pathping command
How can I switch network profiles?
Microsoft utility helps admins diagnose WMI services

Windows System and Network Performance Monitoring
Troubleshooting common Windows service failures
Monitor network bandwidth with CyberGauge
Optimizing NTFS file system performance
How to receive automatic notification of file changes
Sysinternals TCPView monitors network connections on Windows systems
Create data collector sets through Vista's Performance Monitor
Data collector sets simplify monitoring of Vista performance
Performance monitoring in Windows: An overview
RRAS utility in Windows Server 2003 traces network problems
Performance monitoring tools for Windows

Windows Systems Management and Administration
Tips for Windows domain controller optimization
Case Study: Troubleshooting Windows service dependency failures
Troubleshooting common Windows service failures
How to format NTFS: More tricks to improve file system performance
Key enhancements to SCCM give admins more control over assets, licensing
Windows scripting secrets for disk quota management
Optimizing NTFS file system performance
The new Microsoft System Center: What happened to SMS and MOM?
TeraCopy beefs up Windows file copy operations
New Russinovich tool scans for open file references from command line

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts