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: . . .


pingAries89 November 01, 2008 (Article Rating: