Admin Rights Problem on Win 8.1 Pro

pops87

Distinguished
Jan 12, 2016
28
0
18,540
So I installed a fresh Win 8.1 Pro and I have Admin Rights Problem. For instance when I create a folder inside Program Files I have a warning that it requires admin rights and I have to click continue. It would be a problem but it blocks some software that I'm using...
What can I do? Should I activate this build in Admin account and use it?

And it's weird because I don't have this problem on this pc im using right now ;/ and it's the same windows.
 
Solution


You're running random registry files without checking what they do? Seriously dude, you're going to end up nuking your computer at some point doing that.

The EASIEST way to do what I told you to do is to just right click-> properties->security->advanced-> change ownership . No random registry changes needed.

If that doesn't get rid of the...


That's not a "problem", it's Windows 8 working as intended. You should never have to manually fiddle with files in that folder, and instead you should install into a different folder if your software doesn't follow normal coding/security practices. If you absolutely must use that folder (no other option, very few programs actually have that issue though), simply take ownership of the folder and give yourself full control (that particular program folder, NEVER take control of "program files" in it's entirety ).
 

pops87

Distinguished
Jan 12, 2016
28
0
18,540

I have it disabled on both PCs ofc. It's not that.
 


Well, you should re-enable it before you have problems...

Most likely simply taking ownership of that program's folder will solve your issue (like I said in the first post), try that first and then get back to us with the results.
 

pops87

Distinguished
Jan 12, 2016
28
0
18,540


Did not help. Still I got the message.
basroil... I will not enable it. I dont need it. It just wastes my time.

Ok. I need to run this bat file below (League of legends replay). It won't start if the game is in program files. If I move it then it works but I cant move it because I other replay system requires it to be in program files. Anyway... on this pc it works. There it doesn't and I'm pretty sure its because this stupid thing that blocks it.
Code:
@REM ŔĚ ĆÄŔĎŔ» ŔĚżëÇĎ˝Ç °ćżě ˛Ŕ ľĆ·ˇŔÇ ĂâĂł°ˇ ÇĄ˝ĂµÇµµ·Ď ÇŘÁÖĽĽżä.
@echo off
setlocal enabledelayedexpansion
echo -----------------------
echo Spectate by op.gg
echo -----------------------
set RADS_PATH=
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO  (
	SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO (
	SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO (
	SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKLM\Software\Wow6432Node\Riot Games\RADS" /v "LOCALROOTFOLDER"`) DO (
	SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKLM\Software\Wow6432Node\Riot Games\RADS" /v "LOCALROOTFOLDER"`) DO (
	SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKCU\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO (
	SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
FOR /f "usebackq skip=2 tokens=3,4,5,6,7,8,9" %%i in (`%systemroot%\system32\REG.EXE QUERY "HKLM\SOFTWARE\RIOT GAMES\RADS" /v "LOCALROOTFOLDER"`) DO (
	SET RADS_PATH=%%i %%j %%k %%l %%m %%n %%o
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding other LOL directory path..
echo ===================
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKLM\Software /V /F "LocalRootFolder" /S /E ^| %systemroot%\system32\find.exe "RADS"') do (
	set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ´Ů¸Ą°ć·ÎżˇĽ­ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding another LOL directory path..
echo ===================
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKLM\Software /s ^| %systemroot%\system32\find.exe "LocalRootFolder" ^| %systemroot%\system32\find.exe "RADS"') do (
	set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ´Ů¸Ą°ć·ÎżˇĽ­ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding another LOL directory path..
echo ===================
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKCU\Software /V /F "LocalRootFolder" /S /E ^| %systemroot%\system32\find.exe "RADS"') do (
	set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m
	goto runApp
)
cls
echo ===================
echo KR: °ÔŔÓ °ć·Î¸¦ ´Ů¸Ą°ć·ÎżˇĽ­ ĂŁ´Â ÁßŔÔ´Ď´Ů.
echo EN: Finding another LOL directory path again..
echo ===================
for /f "Tokens=3,4,5,6,7,8,9,10,11,12,13,14,15" %%a in ('%systemroot%\system32\REG.EXE Query HKCU\Software /s ^| %systemroot%\system32\find.exe "LocalRootFolder" ^| %systemroot%\system32\find.exe "RADS"') do (
	set RADS_PATH=%%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m
	goto runApp
)
cls
goto cannotFind
:runApp
set RADS_PATH=%RADS_PATH:/=\%
@cd /d "%RADS_PATH%\solutions\lol_game_client_sln\releases"

set init=0
set v0=0&set v1=0&set v2=0&set v3=0
for /f "delims=" %%F in ('dir *.*.*.* /b') do (
	for /F "tokens=1,2,3,4 delims=." %%i in ("%%F") do (
		if !init! equ 0 ( set init=1&set flag=1 ) else (
			set flag=0
			
			if %%i gtr !v0! ( set flag=1 ) else (
				if %%j gtr !v1! ( set flag=1 ) else (
					if %%k gtr !v2! ( set flag=1 ) else (
						if %%l gtr !v3! ( set flag=1 )
					)
				)
			)
		)
		
		if !flag! gtr 0 (
			set v0=%%i&set v1=%%j&set v2=%%k&set v3=%%l
		)
	)
)

if !init! equ 0 goto cannotFind
set lolver=!v0!.!v1!.!v2!.!v3!

@cd /d "!RADS_PATH!\solutions\lol_game_client_sln\releases\!lolver!\deploy"
if exist "League of Legends.exe" (
	@start "" "League of Legends.exe" "8394" "LoLLauncher.exe" "" "spectator 20002.kr.spectator.op.gg:80 HufQYYAriI3qtbspwLofVlrCN+9abVE2 2261444271 KR-%RANDOM%%RANDOM%"
	goto exit
)
:cannotFind
echo ===================
echo KR: LOL °ć·Î¸¦ ŔÚµżŔ¸·Î ĂŁŔ» Ľö ľř˝Ŕ´Ď´Ů. µµżň¸»żˇĽ­ °üŔüÇϱ⠹®Á¦ ÇŘ°áŔ» ş¸˝Ă¸é 100% ÇŘ°á µÉ Ľö ŔÖ˝Ŕ´Ď´Ů. 100% ÇŘ°á µÉ Ľö ŔÖŔ¸´Ď, äĆù濡Ľ­ ±¦Č÷ »çĽ­ °í»ýÇŘĽ­ ą°ľîş¸Áö¸¶ĽĽżä!!!!!!!
echo EN: Cannot found LOL directory path for automatic. Please see our spectate help page: [url=http://www.op.gg/help/observer]http://www.op.gg/help/observer[/url]
echo ===================
@pause
goto exit
:exit
 


UAC should never waste time, because any properly programmed software should never set it off. Considering you're running random bat files without knowing what they do, you SHOULD enable it and get a high end anti-virus package while you're at it.

As for the bat, you can just manually run it (literally manual, as in on paper, following all the instructions) and then make a shortcut using the starting arguments it's making in the bat file. They shouldn't change, so you only need to do it once and then it's as easy as copy-paste into a shortcut file's target.
 

pops87

Distinguished
Jan 12, 2016
28
0
18,540
Random... you are trying to annoy me? I know what the do but don't know exactly how. I know it uses registry. I know what I'm doing - I just don't know why it doesnt work on the other pc. UAC will set off every time I wanna use a bat file. Not gonna respond to uac anymore.
As for bat file - no I will not edit it. Then I would have to edit it dozens of times every single day. If it works on this pc it should work on other. No copy pasterinhio sorry.

Back to the issue. How to use my pc as if its my and not Microsoft's? I'm open to answers it's a new windows. I wanna fix it before I install all the stuff.
 

To understand what it does, you MUST know HOW it does it. In this case, it just searches for the location of the files in the most round about way possible (easier to just have you make direct changes to the bat file with the locations you know they are in), and then just running the LoL programs with static arguments using the file locations it found.



The only thing that should ever change is the random numbers passed into the LoLlauncher program, and given the structure it's just to avoid collisions at the server. Keeping the same number every time will likely never cause issues.



I already explained it three times, take ownership of the folders you need. Given that it uses regedit though, giving that software any more privileges is dangerous. If you get a virus as a result of that, slap yourself a few times for me ;)
 

pops87

Distinguished
Jan 12, 2016
28
0
18,540
To understand what it does, you MUST know HOW it does it. In this case, it just searches for the location of the files in the most round about way possible (easier to just have you make direct changes to the bat file with the locations you know they are in), and then just running the LoL programs with static arguments using the file locations it found.

Great that I already knew but thanks. The bat files are generated automatically so I will not edit them. I just wanna them to work :]

The only thing that should ever change is the random numbers passed into the LoLlauncher program, and given the structure it's just to avoid collisions at the server. Keeping the same number every time will likely never cause issues.

I already explained it three times, take ownership of the folders you need. Given that it uses regedit though, giving that software any more privileges is dangerous. If you get a virus as a result of that, slap yourself a few times for me ;)

I already said that IT DID NOT HELP. I used that reg file that dudio linked and it didn't do anything - still the same message. If there is a different way to unlock it im listening.

Yes I'll get a virus. If You have NO CLUE ABOUT THE SOURCE why bother repeating the same thing over and over? Now you gonna tell me again to turn on UAC? I know the source of the bat file so can sleep well.
 


You're running random registry files without checking what they do? Seriously dude, you're going to end up nuking your computer at some point doing that.

The EASIEST way to do what I told you to do is to just right click-> properties->security->advanced-> change ownership . No random registry changes needed.

If that doesn't get rid of the error, you'll have to uninstall everything and reinstall it.
 
Solution