I would like to create a bat file that will enable Network Discovery, disable sleep or hibernation, enable autologon for the administrator, and change the desktop image... Any help would be greatly appreciated...
@echo off cls :start ECHO Please select a command from the list below echo. echo. ECHO 1) Enable Network Discovery ECHO 2) Disable Network Discovery
set choice= set /p choice=Please enter the command number : IF NOT '%Choice%'=='' SET Choice=%Choice:~0,9% if '%choice%'=='1' goto enable if '%choice%'=='2' goto disable
HIBERNATION ENABLE/DISABLE - MUST RUN AS ADMINISTRATOR
@echo off cls :start ECHO Please select a command from the list below echo. echo. ECHO 1) Enable hibernation ECHO 2) Disable hibernation set choice= set /p choice=Please enter the command number : IF NOT '%Choice%'=='' SET Choice=%Choice:~0,9% if '%choice%'=='1' goto enable if '%choice%'=='2' goto disable
@echo off cls :start reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d "PATH OF YOUR PICTURE HERE!" exit
note : you must restart your pc in order for the changes to take effect
by the way, as for you automated login for the adminsitrator, i wouldnt recommend it, it would probly end in tears if ure storing the password in plain text for the batch file.