Archive

Posts Tagged ‘script’

Remove Ask Toolbar Commandline


To remove the ask toolbar run the following line in a elevated command line window:
MsiExec.exe /qn /X{86D4B82A-ABED-442A-BE86-96357B70F4FE} /norestart

This will work for versions 1.15.9.0 and 1.15.15.0.

 

If you want to make a .bat file it can be usefull to kill browsers before you try to uninstall Ask Toolbar.

Here is a single liner to kill IE, Chrome and Firefox in one go. Just add this line befor the MsiExec line in the bat file and you are golden

taskkill /f /im iexplore.exe /im firefox.exe /im chrome.exe

Backup Hyper-V with Windows Server Backup 2012


Backup VM
Backuptarget = drive letter to backup destination (not folder)
VM Host name = identical with VM name in hyperv console

Commands:
wbadmin start backup -backuptarget:[drive letter] -hyperv:[VM name] -quiet

RESTORE VM to a new server
Backuptarget = UNC path to data location on old server
Recoverytarget = path on new server

Commands:
C:\>wbadmin get versions -backuptarget:\\[ip]\[share]
C:\>wbadmin get items -backuptarget:\\[ip]\[share] -version:[versionID]
C:\>wbadmin start recovery -itemtype:hyperv -items:[VM identifier] -backuptarget:\\[ip]\[share] -recoverytarget:[path] -alternatelocation -version:[versionID]

%d bloggers like this: