Running .exe as admin via batch script?

CntrlAltDel

Distinguished
Nov 22, 2011
175
0
18,690
I have an issue with a game that seems to function differently when I run it as Admin vs running it normally. I'd basically like to run this game as Admin via a batch file script because "Run as Admin" in doesn't seem to work. It does work when I right-click run as admin but when I go to properties and check run as admin, it doesn't work.

program directory:
C:\Program Files (x86)\World of Warcraft\Wow.exe
 
Solution
OK, so right now I have to ask how you know if it is running as Administrator or not? If you've set your NEVER NOTIFY you'll not get the 'warning' and asking for access to run it that way? I'll assume you have it higher than NEVER set on the slider.

Next I guess is WAS WoW installed while running as a 'normal' user or 'Administrator'? It is quite possible that if installed in one set of rights using another one might not have had access (generally speaking this would be when installed running as Administrator and then run as a normal user situation only) and the program since it didn't have access to files/folders would create new one?

There are programs, like SysInternal's Process Explorer and ProcMon, or BitSum's Process Lasso, that...

CntrlAltDel

Distinguished
Nov 22, 2011
175
0
18,690


I apologize if I wasn't clear on explaining the problem. I am able to right-click "Run as Admin" and it works fine but instead of having to right-click I'd like to be able to just double-click the game and have it run as admin automatically.
 

IrvSp

Distinguished
Aug 17, 2013
92
0
18,660
Change the PROPERTIES on the EXE (in Explorer RMB on the EXE or on the Desktop and click on PROPERTIES) and on the COMPATIBILITY tab, click on the bottom line, RUN THIS PROGRAM AS AN ADMINISTRATOR.
 

CntrlAltDel

Distinguished
Nov 22, 2011
175
0
18,690


I did mention that I tried that and it doesn't work.
 

IrvSp

Distinguished
Aug 17, 2013
92
0
18,660
When you look at the properties again, is the check STILL there or is it gone?

Actually there are TWO places you can do this. If on an ICON on the DESKTOP, RMB and on the GENERAL tab (which should be the one open) click on ADVANCED and set it there on the first checkbox.

The other one (above I posted) might only work on the EXE itself.
 

CntrlAltDel

Distinguished
Nov 22, 2011
175
0
18,690


Option is still checked.

Here's a more in-depth description that I posted on to the WoW server's forums:

CntrlAltDel's Avatar

I seem to be having an issue with World of Warcraft. I'm running Windows 8.1 Professional x64 and the problem seem to persist through from Windows 8 x64.

The issue is when I run Wow.exe as Admin my UI and download progress of the game seem to be completely different on my characters, infact my alts's spells on the actionbars are completely different from when I run Wow.exe as Admin against running it but just double-clicking it without running it as Admin.

I have a suspicion that when I run Wow.exe as Admin vs running it normal it stores the UI and game stream data in different locations but unfortunately I have no idea how to check that, I also suspect that folders may be in Roaming or other hidden folders of that sort.

I have tried going to the main folder of where I installed World of Warcraft and changing the settings to run as admin on its own but checking the "Run as Admin" option but it doesn't work, still runs normally.

Anyone have a solution to this problem?

Run as Admin (VIA RIGHT-CLICK):
2-0.png





Run without Admin Priv (VIA DOUBLE-CLICK WOW.EXE):
1-0.png


 

IrvSp

Distinguished
Aug 17, 2013
92
0
18,660
OK, so right now I have to ask how you know if it is running as Administrator or not? If you've set your NEVER NOTIFY you'll not get the 'warning' and asking for access to run it that way? I'll assume you have it higher than NEVER set on the slider.

Next I guess is WAS WoW installed while running as a 'normal' user or 'Administrator'? It is quite possible that if installed in one set of rights using another one might not have had access (generally speaking this would be when installed running as Administrator and then run as a normal user situation only) and the program since it didn't have access to files/folders would create new one?

There are programs, like SysInternal's Process Explorer and ProcMon, or BitSum's Process Lasso, that will show you what it opened for apps and what they are using. Process Hacker too. Any of these would tell you files opened and some might have full paths. Once you have that info, opening a COMMAND PROMPT as an Administrator and a simple DIR filename /s /p would show you where they were located. Find a DUP listed and you can then probably determine if you have 2 instances and look at the folder permissions and maybe determine why you are having the problem?

So I take it NONE of the 2 ways (change DESKTOP ICON or the EXE setting) works?
 
Solution