Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- @break off
- @Script
- @color 0a
- @cls
- echo Greetings Eumar.%USERNAME%
- echo Please remember to run this script as an ADMINISTRATOR (Root).
- :start
- echo.
- ECHO 1. Begin
- ECHO 2. Information
- ECHO 3. Exit
- REM set /p ID=""
- set /p choice=Choose your option
- if '%choice%'=='' ECHO "%choice%" is not valid please try again
- if '%choice%'=='1' goto start
- if '%choice%'=='2' goto info
- if '%choice%'=='3' goto exit
- echo.
- goto start
- :info
- echo Made for Outlook setting backup
- :start
- echo Status: Creating Backup Folder
- if not exist "%userprofile%\Eumar\Backup" (
- mkdir "%userprofile%\Eumar\Backup"
- %SystemRoot%\explorer.exe "%userprofile%\Eumar\Backup"
- if "!errorlevel!" EQU "0" (
- echo Creating backup folder
- ) else (
- echo Error creating folder
- )
- ) else (
- %SystemRoot%\explorer.exe "%userprofile%\Eumar\Backup"
- )
- echo Status: Getting the list of users...
- wmic useraccount get name,sid
- echo Status: Creating a temporary file, please find your username!
- wmic useraccount get name,sid /format:csv > %temp%/output.csv
- start %temp%/output.csv
- echo Please PASTE your ID (eg. S-1-5-21-2679822001-1331107376-912371272-1622)
- set /p ID=""
- echo Status: Backing up your registry!
- reg export [HKEY_USERS\%ID%\Software\Microsoft\Office\15.0\MailSettings] %userprofile%\Runway\Backup\BackupHKLM.Reg /y
- :exit
- echo. Done!
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement