Elevated Command Prompt window opens and closes instantly

besweeet

New Member
Messages
21
Location
Jacksonville, FL
I just finished [finally] updating my copy of Windows 8 Pro to Windows 8.1 Pro (manually downloaded the ISO from Microsoft and did an in-place update within the existing copy of W8). After I did all of the available Windows Updates, I noticed that, whenever I try and open an elevated Command Prompt window (I want to do this to try and manually do some things to remove Windows.old, since it says that the directory is not empty), I see it open, but close instantly. A non-elevated Command Prompt window opens just fine. I searched, and haven't found anything. This also happens in safe mode.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
Anything interesting in Event Viewer?
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Go to the cmd file location (from all apps or search for it in the system32 folder). Make a shortcut of the .exe on the desktop. Then go to Properties > Advanced of this shortcut and check the little 'run as admin' box. Now try to start it from the shortcut.
 

My Computer

System One

  • OS
    Vista and Win7
    System Manufacturer/Model
    2xHP, 2xGateway, 1xDell, 1xSony
    Hard Drives
    5 SSDs and 12 HDs
Have you run a scan for malware? Many malware apps watch for administrative actions and cancel them...
 

My Computer

System One

  • OS
    Windows 8.1 Pro
    CPU
    Intel i7 3770K
    Motherboard
    Gigabyte Z77X-UD4 TH
    Memory
    16GB DDR3 1600
    Graphics Card(s)
    nVidia GTX 650
    Sound Card
    Onboard Audio
    Monitor(s) Displays
    Auria 27" IPS + 2x Samsung 23"
    Screen Resolution
    2560x1440 + 2x 2048x1152
    Hard Drives
    Corsair m4 256GB, 2 WD 2TB drives
    Case
    Antec SOLO II
    Keyboard
    Microsoft Natural Ergonomic Keyboard 4000
    Mouse
    Logitech MX
Anything interesting in Event Viewer?


None that I can see. Not sure where to specifically look, but I went through several different types of logs and couldn't find anything related to Command Prompt. You'd think that Event Viewer would have a search function...


Go to the cmd file location (from all apps or search for it in the system32 folder). Make a shortcut of the .exe on the desktop. Then go to Properties > Advanced of this shortcut and check the little 'run as admin' box. Now try to start it from the shortcut.


Like the other methods of trying to run it as admin, that just results in it opening and closing instantly.

Have you run a scan for malware? Many malware apps watch for administrative actions and cancel them...

No, only because everything was working fine prior to 8.1. I used to use an elevated Command Prompt window in W8 fairly often for different things.

I did a quick scan in Windows Defender and it found no issues.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
Update: If I copy cmd.exe to somewhere else, such as the desktop, and run it as admin from the compatibility tab, it'll open just fine with administrator privileges.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
from the command prompt ,try running sfc /scannow to see if it fixes the issue
 

My Computer

System One

  • OS
    win8.1.1 enterprise
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Hinze57
    CPU
    AMD FX 6100 6core 3.30gHz
    Motherboard
    gigibyte ga-78lmy-s2p
    Memory
    4gig ddr3
    Graphics Card(s)
    Radon hd5000 Series
    Sound Card
    onboard realtek hd
    Monitor(s) Displays
    19" viewsonic/ 22"Samsung
    Screen Resolution
    1680x1050
    Hard Drives
    128gig ssd Kingston
    80gig WD 10000 rpm spinner
    Case
    micro
    Keyboard
    microsoft curve 200
    Mouse
    Logitech wireless M215
    Internet Speed
    high speed 20
    Browser
    ie 11
    Antivirus
    windows defender
    Other Info
    updated enterprise apr 2/14
from the command prompt ,try running sfc /scannow to see if it fixes the issue

That was actually the first thing that I did once cmd started working, but it found no issues. I'll try a chkdsk /F.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
Can you run any .exe from C:\Windows\system32?

For instance, can you run c:\Windows\system32\Defrag.exe as Administrator?
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Can you run any .exe from C:\Windows\system32?

For instance, can you run c:\Windows\system32\Defrag.exe as Administrator?

All of the EXEs seem to run on their own, but there is no option to run as admin within properties.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
You have to make a shortcut of the .exe on the desktop, then go to Properties > Advanced of that shortcut and tick the little 'run as admin' box. Now you can run it from the shortcut in admin mode.
 

My Computer

System One

  • OS
    Vista and Win7
    System Manufacturer/Model
    2xHP, 2xGateway, 1xDell, 1xSony
    Hard Drives
    5 SSDs and 12 HDs
You have to make a shortcut of the .exe on the desktop, then go to Properties > Advanced of that shortcut and tick the little 'run as admin' box. Now you can run it from the shortcut in admin mode.

Tried that with cmd, calc and cleanmgr. Each one opened and closed instantly.

I'm thinking about just taking a few hours to do a complete installation of Windows 8.1 from scratch. Haven't done one since W8 Pro first hit MSDN. Should probably fix a few other problems that I've been dealing with post-update, such as LogMeIn immediately disconnecting my client upon connection. That is, unless someone here happens to have another idea.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
Not having the Run as Administrator option is in itself a problem. It should be there.
Are you using an Administrator level account?

RunasAdmin.jpg

See if this can bring it back for you: Run as Administrator - Add or Remove from Context Menu in Windows 7 - Windows 7 Help Forums

It's for Win 7 but should also work for Win 8 and 8.1.
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Not having the Run as Administrator option is in itself a problem. It should be there.
Are you using an Administrator level account?

View attachment 41769

See if this can bring it back for you: Run as Administrator - Add or Remove from Context Menu in Windows 7 - Windows 7 Help Forums

It's for Win 7 but should also work for Win 8 and 8.1.

And that just did the trick across the board :). It turns out that the Take Ownership content menu tweak went in place of Run as Administrator, which messed things up. Everything's working as it should. My issue with LogMeIn was also instantly fixed. Thanks!
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
Excellent!

Looked at Brink's Take Ownership tutorial, has this in it:

3. To Add "Take Ownership" to Context Menu including EXE Files

Note
This step will also replace Run as administrator with Take Ownership in the context menu of .exe files.
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Excellent!

Looked at Brink's Take Ownership tutorial, has this in it:

3. To Add "Take Ownership" to Context Menu including EXE Files

Note
This step will also replace Run as administrator with Take Ownership in the context menu of .exe files.

Ah--it all makes sense now.
 

My Computer

System One

  • OS
    Windows 8.1 Pro with Media Center
    Computer type
    PC/Desktop
    CPU
    Intel Core i7-2600K @ 4GHz
    Motherboard
    MSI Z68A-GD80 B3
    Memory
    G.SKILL Ripjaws X 8GB (2 x 4GB) DDR3 1600
    Graphics Card(s)
    SAPPHIRE 7950 (OCed)
    Monitor(s) Displays
    Acer P244W 24-inch
    Screen Resolution
    1920x1080
    Hard Drives
    1x Seagate Barracuda 1TB 7200RPM SATA3 6Gbps
    1x Kingston HyperX 120GB SATA3 6Gbps SSD
    1x Seagate 600 Pro SATA3 6Gbps SSD
    PSU
    Corsair CX750M 750W
    Case
    Enermax Hoplite ST (White)
    Cooling
    CM H212+
    Keyboard
    Microsoft Wireless Comfort Keyboard 5000
    Mouse
    Genius Maurus
    Internet Speed
    25/5 (Fail[Com]cast)
    Browser
    Firefox
    Antivirus
    Windows Defender
For sure. Funny I never saw that before. Guess I didn't read all the way through.
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Back
Top