@echo off

net session >nul 2>&1
if NOT %errorLevel% == 0 (
	echo Failure: Current permissions inadequate. Please run as administrator.
	pause
	exit /b 1
)

set /p newpw=Please enter the new password for user 'admin': 

"%~dp0\urbackup_srv.exe" --cmdline --no-server --plugin urbackupserver.dll --set_admin_pw "%newpw%"
exit /b 0
@echo off

net session >nul 2>&1
if NOT %errorLevel% == 0 (
	echo Failure: Current permissions inadequate. Please run as administrator.
	pause
	exit /b 1
)

set /p newpw=Please enter the new password for user 'admin': 

"%~dp0\urbackup_srv.exe" --cmdline --no-server --plugin cryptoplugin.dll --plugin urbackupserver.dll --set_admin_pw "%newpw%"
exit /b 0
Fix password reset on Windows
Fix password reset on Windows
