Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


November 01, 2008

Vista's UAC Can Cause Problems When Writing and Running Scripts


RSS
View this exclusive article with VIP access -- click here to join |
See More VBScript Articles Here | Reprints | Or sign up for our VIP Monthly Pass!
Main Article    Are Recycle Bins Wasting a Lot of Space on Your Windows Servers?

I developed RecycleBinInfo.vbs using Windows XP SP2 to test domain use and Windows Vista Home Premium to test local use. When I logged on to XP with a Domain Admins–level account, the script had no problems accessing the Recycler folders on Windows Server 2003 and Windows 2000 Server. However, when testing the script locally on Vista, I ran into a problem because of Vista's User Account Control (UAC). I discovered that even though I was logged on with an Administrator-equivalent account, the script was allowed access to only my Recycle Bin and no others on my Vista computer. Equally bothersome was UAC's annoying confirmation pop-ups asking for permission to continue.

Although I understand the need for heightened security, UAC makes developing and testing scripts more time-consuming and frustrating. Rather than disabling UAC (which isn't recommended), I figured out a workaround: Log on using Vista's built-in Administrator account.

By default, Vista doesn't offer you the choice of logging on under its built-in Administrator account. In fact, the Administrator account is disabled by default. Fortunately, enabling this account is fairly simple. Before I tell you how, though, please realize that you do so at your own risk and that you need to take every precaution to ensure the safety of your system and network. Exercise the same precautions you'd take when using XP while logged on with a Domain Admins–level account. Those precautions include

  • Using the Administrator account only when you absolutely need it. I use it only when I’m developing and testing a script that requires Administrator privileges.
  • Working only on the scripting task at hand. When you're logged on under the Administrator account, you shouldn't be surfing the Internet or performing some other task that could put your system or network at risk.
  • Logging off when you’re done working on the script, then logging back on with your regular account.

To enable the Administrator account, follow these steps: . . .

Reader Comments
how??! ...too bad i want to know the last thing mentioned...

pingAries89 November 01, 2008 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

Command Prompt Tricks

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

Where is Microsoft NetMeeting in Windows XP?

...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

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 Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


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 Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing