Posted On March 31, 2019

Restore User Script

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Restore User Script
echo off

SET RAR="C:\Program Files\WinRAR\RAR.EXE"

IF NOT EXIST P:\ (
NET USE P: \\WDFS1\BACKUP
)

cd %USERPROFILE%
%RAR% x -y p:\%username%\desktopstuff.rar
C:
cd %APPDATA%\MICROSOFT
MKDIR SIGNATURES
XCOPY P:\%USERNAME%\SIGNATURES SIGNATURES /E /H /Y
CD %APPDATA%\
MKDIR MOZILLA
MKDIR MOZILLA\FIREFOX
MKDIR MOZILLA\FIREFOX\PROFILES
XCOPY P:\%USERNAME%\FIREFOX MOZILLA\FIREFOX\PROFILES /E /H /Y

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How To Prevent Windows From Automatically Rebooting After Updates

# Add New Registry Key $regHive='REGISTRY::HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' $keyname='NoAutoRebootWithLoggedOnUsers' $value=1 Set-ItemProperty -Path $regHive -Name $keyname -value $value…

PowerShell: Dealing with Service Principle Names (SPNs)

Basic Commands: # Show SPNs$computername="$env:computername"Get-ADComputer -Identity $computername -Properties ServicePrincipalNames |Select-Object -ExpandProperty ServicePrincipalNames# Add one SPNSet-ADComputer…

Basic HTML and HTML5: Link to Internal Sections of a Page with Anchor Elements

<h2>Demo</h2><main><a href="#footer">Jump to Bottom</a><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."><p>Kitty ipsum dolor…