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 2007

The Trick to Accessing Remote Files with Explorer.exe

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

Windows IT professionals often have two accounts: a limited-privilege user account that they use to log on to their own computers and a high-privilege account that they use to log on to users' computers for maintenance or troubleshooting purposes. When Windows IT professionals need to use the high-privilege account, they can use the Runas command with Windows Explorer. However, a registry edit is needed to make it work.


In his Reader to Reader article “Access Remote Files with iexplore.exe” (InstantDoc ID 95445, June 2007), Serge Bédard mentions that his company’s IT staff members have two accounts: a limited-privilege account that they use to log on to their own computers and a high-privilege account that they use to log on to users’ computers for maintenance or troubleshooting purposes. Not wanting to constantly use the Net Use command to create a special connection, Serge discovered that he could use the Runas command with Internet Explorer (IE) 6.0 to access to computers under the high-privilege account. He mentioned that he had tried using the Runas command with Windows Explorer (explorer.exe), but it didn’t work.

You can use the Runas command with Windows Explorer, but you first need to make a registry edit. Here are the steps to follow:

  1. Under the Start menu, select Run and enter the command runas /user:domain\username regedit where domain\username is the high-privilege account you want to log on with. Click OK. In the command-shell window that appears, enter the relevant password and press Enter. The registry editor will appear and will be running under the high-privilege account.
  2. In the registry editor, navigate to the HKEY_CURRENT_USER\Software\Microsoft Windows\CurrentVersion\Explorer Advanced key. In the SeparateProcess entry, change the value from 0 to 1. I’ve noticed that this key is missing on some clients. If it’s missing, you can safely create the key. Close the registry editor.
  3. Under the Start menu, select Run and enter the command

runas /user:domain\username explorer.exe

where domain\username is the high-privilege account you want to log on with. Click OK. In the command-shell window that appears, enter the relevant password and press Enter. Presto—you should have a Windows Explorer window that’s running under the high-privilege account. In this window, you can access files on the target remote computers.

If desired, you can place a shortcut to Windows Explorer on your desktop (i.e., the desktop mapped to your limited-privilege user account). To do so, paste a shortcut to C:\%WINDIR%\explorer.exe on your desktop. Right-click the shortcut and click Properties. On the Shortcut tab, click Advanced and select the Run with different credentials check box. Click OK twice. Now when you double-click the shortcut, you’re presented with the Run As dialog box that lets you run Windows Explorer under the current logon account or a different account. This is where you’d use the high-privilege account.

Using the Runas command with Windows Explorer is preferable to using the Runas command with IE because, as Serge points out, the Runas command works with IE 6.0 but not IE 7.0. Although I’ve only used the Runas command with Windows Explorer on Windows XP, this fix will likely work on other OSs as well. If you try this fix on other OSs, be sure to try it on a test machine first. Thanks to Aaron Margosis for his help with creating this fix.

— Simon Drake, Network Administrator, Barnett Waddingham

End of Article



Reader Comments
Very useful tip.

philjw November 27, 2007 (Article Rating: )


Useful, but why do I have refresh / F5 every second to see changes to the file/folder structure?!?!?

Sammyc53 December 07, 2007 (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
Command Prompt Tricks

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

Have New Features Made Exchange Server Backups Unnecessary?

Cluster continuous replication and Volume Shadow Copy Service might have made backups unnecessary in Exchange 2007, but will admins feel comfortable without a dedicated backup solution in place? ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...


Related Articles Let Users Install Software Without Giving Them Administrator Rights

Dealing with the Least Privilege Security Principle

PsExec

Switching Users in the Current Logon Session

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

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs 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 © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing