Using Windows Explorer with Alternate Credentials
Pages: 1, 2
The trick with solving this is to use Internet Explorer instead of Windows Explorer. Remember the big brouhaha in the late '90s about whether Microsoft was being monopolistic and unfair by including a free web browser with their Windows operating system? Microsoft's argument was that Internet Explorer was not just a free web browser but an integral part of Windows itself, and that by removing it (as some demanded they do) it would break functionality in the operating system itself.
Well that issue is history now, but the similarity between Internet Explorer (iexplore.exe, the web browser) and Windows Explorer (explorer.exe, the file system manager) is pretty remarkable. For example, say you're logged on as an ordinary user and you want to share a folder named C:\stuff. If you try opening the properties sheet for this folder in Windows Explorer, there's no sharing tab, so you can't do it:
Figure 2. How can I share my stuff so others can access it?
But you can do the following: right-click on the Internet Explorer shortcut on your Quick Launch toolbar and select "Run as…" from the context menu, specify your administrator credentials as shown in Figure 1, and click OK. Then type C:\ into the address bar of Internet Explorer and suddenly you're browsing your file system instead of the Web:
Figure 3. Internet Explorer can browse your file system, too.
Now right-click on the C:\stuff folder and you can share it over the network as desired:
Figure 4. Shared stuff is great if you need it.
Hacking the Hack
Once you have iexplore.exe running with admin credentials, you can do other things, too. Say you want to access the Windows operating system files-just type "%systemroot%" in the address bar (without the quotes) and you'll go straight there. That's because %systemroot% is what's known as an environment variable and is understood by iexplore.exe to represent the string "C:\Windows" or wherever your system files are installed. You can also type "My Computer" or "My Network Places" in the address bar and go there as well. You can even type "Desktop" and access your Administrator desktop while logged on as an ordinary user!
It gets better: type "Control Panel" into the address bar and Control Panel opens in a window running with admin credentials. Now you can access the Date and Time utility and change your system time, something you couldn't do if you accessed Control Panel the usual way (from the Start menu) when you're logged on as an ordinary user. Or you can set Power Options, and do other stuff you can't do as an ordinary user. Just remember, you're running as Administrator even though you're logged in as an ordinary user, so be careful what changes you make to your system!
Return to the Windows DevCenter.