Windows 10: Is this code safe to use

Discus and support Is this code safe to use in Windows 10 Software and Apps to solve the problem; @Echo offecho Checking for permissions>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"echo Permission check result:... Discussion in 'Windows 10 Software and Apps' started by Akash K2, Aug 15, 2024.

  1. Akash K2 Win User

    Is this code safe to use


    @Echo offecho Checking for permissions>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"echo Permission check result: %errorlevel%REM --> If error flag set, we do not have admin.if '%errorlevel%' NEQ '0' echo Requesting administrative privileges...goto UACPrompt else goto gotAdmin :UACPromptecho Set UAC = CreateObject^"Shell.Application"^ > "%temp%\getadmin.vbs"echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"echo Running created temporary "%temp%\getadmin.vbs"timeout /T 2"

    :)
     
    Akash K2, Aug 15, 2024
    #1
Thema:

Is this code safe to use

Loading...
  1. Is this code safe to use - Similar Threads - code safe

  2. Stop code: BAD_SYSTEM CONFIG INFO and unable to boot windows in safe mode

    in Windows 10 Software and Apps
    Stop code: BAD_SYSTEM CONFIG INFO and unable to boot windows in safe mode: I have tried all startup settings from f1 to f10 and non of them work then for check disk partition there are no problems The chkdsk c: /f /rAlso for the sfc /scannowIt will give out the outputc:windows/system32/logfiles/srt/srttrail.txtAnd also for DISM.exe /Online...
  3. Stop code: BAD_SYSTEM CONFIG INFO and unable to boot windows in safe mode

    in Windows 10 Gaming
    Stop code: BAD_SYSTEM CONFIG INFO and unable to boot windows in safe mode: I have tried all startup settings from f1 to f10 and non of them work then for check disk partition there are no problems The chkdsk c: /f /rAlso for the sfc /scannowIt will give out the outputc:windows/system32/logfiles/srt/srttrail.txtAnd also for DISM.exe /Online...
  4. are these code safe to run as fix.bat? I have an error 0x80070570 and 0x4002C on windows 11...

    in Windows 10 Gaming
    are these code safe to run as fix.bat? I have an error 0x80070570 and 0x4002C on windows 11...: Commands: net stop bits net stop wuauserv net stop appidsvc net stop cryptsvc Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*" rmdir %systemroot%\SoftwareDistribution /S /Q rmdir %systemroot%\system32\catroot2 /S /Q sc.exe sdset bits...
  5. are these code safe to run as fix.bat? I have an error 0x80070570 and 0x4002C on windows 11...

    in Windows 10 Software and Apps
    are these code safe to run as fix.bat? I have an error 0x80070570 and 0x4002C on windows 11...: Commands: net stop bits net stop wuauserv net stop appidsvc net stop cryptsvc Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\*.*" rmdir %systemroot%\SoftwareDistribution /S /Q rmdir %systemroot%\system32\catroot2 /S /Q sc.exe sdset bits...
  6. How can I fix error code 0x8007025d? Windows will not boot or go to safe mode

    in Windows 10 Installation and Upgrade
    How can I fix error code 0x8007025d? Windows will not boot or go to safe mode: My pc recently freaked out and I was stuck with BSoD. I tried to do the usb installation media tool but about half way into installing it stops. Any help or advice or tips would be greatly appreciated!...
  7. How can I fix error code 0x8007025d? Windows will not boot or go to safe mode

    in Windows 10 Gaming
    How can I fix error code 0x8007025d? Windows will not boot or go to safe mode: My pc recently freaked out and I was stuck with BSoD. I tried to do the usb installation media tool but about half way into installing it stops. Any help or advice or tips would be greatly appreciated!...
  8. How can I fix error code 0x8007025d? Windows will not boot or go to safe mode

    in Windows 10 Software and Apps
    How can I fix error code 0x8007025d? Windows will not boot or go to safe mode: My pc recently freaked out and I was stuck with BSoD. I tried to do the usb installation media tool but about half way into installing it stops. Any help or advice or tips would be greatly appreciated!...
  9. Help BSOD Please. Error Code 0xc000021a, Cant reboot into safe mode.

    in Windows 10 Gaming
    Help BSOD Please. Error Code 0xc000021a, Cant reboot into safe mode.: HeyI'm currently stuck with an error code 0xc000021a. Started occurring after i left the PC watching a stream on twitch for ~4 hours, woke up to find it was BSOD. To my knowledge there was no new update or installation, but im not sure if the auto update was enabled as it...
  10. Help BSOD Please. Error Code 0xc000021a, Cant reboot into safe mode.

    in Windows 10 Software and Apps
    Help BSOD Please. Error Code 0xc000021a, Cant reboot into safe mode.: HeyI'm currently stuck with an error code 0xc000021a. Started occurring after i left the PC watching a stream on twitch for ~4 hours, woke up to find it was BSOD. To my knowledge there was no new update or installation, but im not sure if the auto update was enabled as it...