none
Start Control Panel, Ncpa.cpl and Printers and Fax from Cmd...

    Question

  • How do I start Control Panel, Ncpa.cpl and Printers and Fax from Cmd when starting Cmd with Run As... command in Win XP SP3 IE8? Im using AutoIt script.

    Before SP3 and IE8 it workt with:

    Ncpa.cpl

    Run ( 'C:\Windows\System32\Control.exe Ncpa.cpl' ) 
    
    
    
    Run ( 'C:\Program\Internet Explorer\iexplore.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}' ) 
    
    
    
    Run ( 'C:\WINDOWS\explorer.exe ::{7007ACC7-3202-11D1-AAD2-00805FC1270E} /separate' ) 

    Printers and Fax...

    Run ( 'C:\Program\Internet Explorer\iexplore.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{2227A280-3AEA-1069-A2DE-08002B30309D}' 
    
    
    
    Run ( 'C:\WINDOWS\explorer.exe ::{2227A280-3AEA-1069-A2DE-08002B30309D} /separate' ) 

    Control Panel

    Run ('RunDll32.exe shell32.dll,Control_RunDLL')
    
    
    
    Run('control panel')
    
    
    
    Run('control')

     

    All of the above works fine in Cmd without Run As...

    Tuesday, July 13, 2010 12:06 PM

Answers

  • I found aut that the reg value below solvs some of the "explorer" command problems:

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
    "SeparateProcess"=dword:00000001

    • Marked as answer by tp_tp Wednesday, July 14, 2010 8:12 AM
    Wednesday, July 14, 2010 8:11 AM

All replies

  • Here is the low down for your commands:

    start C:\Windows\System32\Control.exe Ncpa.cpl

    start RunDll32.exe shell32.dll,Control_RunDLL

    start C:\WINDOWS\explorer.exe ::{2227A280-3AEA-1069-A2DE-08002B30309D} /separate

    I'm sure you get the idea for the rest, let me knwo if you need them all:

     

    Denis

    • Proposed as answer by Denis G Tuesday, July 13, 2010 11:10 PM
    Tuesday, July 13, 2010 11:09 PM
  • Here is the low down for your commands:

    start C:\Windows\System32\Control.exe Ncpa.cpl

    start RunDll32.exe shell32.dll,Control_RunDLL

    start C:\WINDOWS\explorer.exe ::{2227A280-3AEA-1069-A2DE-08002B30309D} /separate

    I'm sure you get the idea for the rest, let me knwo if you need them all:

     

    Denis


    That does not help at all. The "start" dont do any difference.
    Wednesday, July 14, 2010 8:09 AM
  • I found aut that the reg value below solvs some of the "explorer" command problems:

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
    "SeparateProcess"=dword:00000001

    • Marked as answer by tp_tp Wednesday, July 14, 2010 8:12 AM
    Wednesday, July 14, 2010 8:11 AM
  • I can't take all the credit for this one, but I have been playing around to get a tool I wrote to work again after going to IE8 on a XP SP3 box. I got the idea from:

    http://serverfault.com/questions/63593/using-runas-with-ie8

    The RUNAS command fails to run as a higher level user for quite a few things, such as Control Folder, or Control Panel etc.

    After reading the attached link, I got the idea to try using the CLSID's and the old version of Internet Explorer which is tucked away in a hidden folder.

    For example the following command will work if calling the IEXPLORE.EXE located in the c:\WINDOWS\IE8 folder.

    runas /user:DOMAIN\USERNAME "C:\windows\ie8\iexplore.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}" This calls the Network folder

    Unfortunately I don't have a comprehensive list of CLSIDs, and will require some playing around with.

    It would also appear that you cannot call c:\Windows\Explore.exe CLSIDs /Separate

    Monday, January 31, 2011 3:30 AM