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 Konica Minolta print counters
by  Esben.D   Go to last post Go to first unread
Last post: 7/12/2019 8:57:25 AM(UTC)
Lansweeper Cisco Catalyst Switch
by  Esben.D  
Go to last post Go to first unread
Last post: 4/24/2019 10:28:29 AM(UTC)
Lansweeper Palo Alto Firewalls
by  Esben.D   Go to last post Go to first unread
Last post: 4/24/2019 10:22:58 AM(UTC)
Lansweeper Lanier MP Printers
by  Esben.D  
Go to last post Go to first unread
Last post: 1/28/2019 10:06:16 AM(UTC)
Lansweeper Ubiquiti Unifi OID and MIB files
by  crashff   Go to last post Go to first unread
Last post: 9/24/2018 8:14:31 PM(UTC)
Lansweeper C2960X switch
by  Hendrik.VE  
Go to last post Go to first unread
Last post: 9/18/2018 1:55:45 PM(UTC)
Lansweeper Getting started with custom OID scanning and sharing
by  Esben.D   Go to last post Go to first unread
Last post: 8/23/2018 2:34:13 PM(UTC)