Notification

Icon
Error

Backup Computer with Disk2VHD to network share

Posted: Friday, March 15, 2019 1:55:52 PM(UTC)
TheChadWasGreat

TheChadWasGreat

Member Original PosterPosts: 1
1
Like
This requires psexec and disk2vhd


Place psexec.exe and disk2vhd.exe in your {actionpath} share.

Code:
{actionpath}psexec \\{computer} {actionpath}backup.cmd


A domain user account is used to map drives, no other permissions are needed on the domain. Secure that however you see fit for your environment but keep in mind the password is stored in clear text and by default everyone has read permissions to the {actionpath} share.

Create backup.cmd with the below code and place it in the {actionpath} share.

Code:
net use x: \\IMAGESERVER\share PASSWORD /user:DOMAINNAME\ACCOUNT
net use y: \\LANSWEEPER\lansweeper$ PASSWORD /user:DOMAINNAME\ACCOUNT
y:\disk2vhd.exe * x:\{computer}.vhdx -accepteula
pause
net use * /delete /y

Active Discussions

Lansweeper Copying computer names that include a hyphen
by  CyberCitizen  
Go to last post Go to first unread
Last post: Today at 4:30:25 AM(UTC)
Lansweeper lansweeper 7
by  Esben.D   Go to last post Go to first unread
Last post: Yesterday at 4:27:34 PM(UTC)
Lansweeper dotNET framework 3.5 deployment
by  Ramezi  
Go to last post Go to first unread
Last post: Yesterday at 3:49:15 PM(UTC)
Lansweeper InTune Scanning not showing all devices
by  TBRIT   Go to last post Go to first unread
Last post: Yesterday at 3:05:17 PM(UTC)
Lansweeper lsAgent MSI installer
by  Sandro  
Go to last post Go to first unread
Last post: Yesterday at 10:52:39 AM(UTC)
Lansweeper Receiving tickets through the email
by  Esben.D   Go to last post Go to first unread
Last post: 7/12/2019 10:10:10 AM(UTC)
Lansweeper Lansweeper PowerShell Modules
by  Esben.D  
Go to last post Go to first unread
Last post: 7/12/2019 8:56:29 AM(UTC)