remove runonce.exe from server 2012 R2

When we boot up a test Windows Server 2012 R2 we get the alternative shell command - runonce.exe.  We can't seem to get into the GUI.  We can run notepad, powershell, Task Manager but not Explorer, MMC, etc.  We tried to delete/rename the runonce.exe but it says we don't have sufficient rights - we are logged in as administrator.  We have tried the attrib command but the file is marked as A and we can't seem to change that attribute.  Any suggestions?  Thanks in advance.
lineonecorpAsked:
Who is Participating?
 
Cliff GaliherCommented:
You don't install minshell over the GUI. Think of it like nesting dolls. There is server core. Then you can install minshell which is bigger and encompasses core. Then you can install the full GUI, which is bigger covers the minshell.

If someone was messing around then they UNINSTALLED the GUI. So you don't get rid of minshell to fix the problem... That'd leave you with server core.  You instead reinstall the GUI. As I said in my first response.
0
 
Cliff GaliherCommented:
Sounds like you are running minshell, it was a minimal shell in 2012 R2, meant to have a smaller security footprint and require less patching.

If you want the full GUI, you have to install it. In 2012, that's a powershell command.
0
 
JohnBusiness Consultant (Owner)Commented:
If you installed the GUI, then use Autoruns (Microsoft Sysinternals) to remove the runonce entry .
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
Cliff GaliherCommented:
Since explorer and mmc won't open, I don't think the OP installed the GUI. Minshell will run notepad and basic apps, but not mmc or explorer. Behavior is consistent with minshell.
0
 
lineonecorpAuthor Commented:
Thanks for the quick response.  It was all ok for years with GUI.  It's a test computer so a lot of people fool around with it.  It's possible somebody lately installed minshell.  If so how do I get rid of it.
0
 
lineonecorpAuthor Commented:
Thanks guys,

GUI is back
0
 
lineonecorpAuthor Commented:
GUI is back on the server
0
 
JohnBusiness Consultant (Owner)Commented:
Thanks for the update.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.