1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
@ECHO OFF |
||||||
|
|
||||||
|
:: Получение имени пользователя и пароля на ПК с автоматическим входом в Windows |
||||||
|
|
||||||
|
pushd %~dp0 |
||||||
|
|
||||||
|
for /f "delims=" %%a in ('getRegValue.bat "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultUserName short') do @set user=%%a |
||||||
|
|
||||||
|
for /f "delims=" %%a in ('getRegValue.bat "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultPassword short') do @set password=%%a |
||||||
|
|
||||||
|
echo AutoLogon: %user%@%password% |
||||||
|
|
||||||
|
popd |
||||||
|
|
Loading…
Reference in new issue