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
pryan67
#1pryan67 Member Posts: 41  
posted: 10/7/2019 3:36:05 PM(UTC)
This is actually an awesome action...

The downside is that you can only do this to disks smaller than 127 gig.

But still an excellent tool, thank you

Active Discussions

Lansweeper SSH - Keyboard Interactive Authentication
by  KevinA-REJIS   Go to last post Go to first unread
Last post: Today at 7:44:48 PM(UTC)
Lansweeper Are Deleted Dashboard Tabs Retrievable?
by  Esben.D  
Go to last post Go to first unread
Last post: Today at 4:58:48 PM(UTC)
Lansweeper Missing hyperv host details for guest asset LAN-4130
by  Esben.D   Go to last post Go to first unread
Last post: Today at 4:56:30 PM(UTC)
Lansweeper Dell Warranty Lookup - Incorrect Information
by  Esben.D  
Go to last post Go to first unread
Last post: Today at 4:46:38 PM(UTC)
Lansweeper Initial web loading time
by  Brian Fulmer   Go to last post Go to first unread
Last post: Today at 4:18:54 PM(UTC)
Lansweeper Force SNMP?
by  Andreas  
Go to last post Go to first unread
Last post: Today at 12:30:00 PM(UTC)
Lansweeper Network connections Overview Map
by  CoolDood   Go to last post Go to first unread
Last post: Today at 12:19:21 PM(UTC)
Lansweeper Scanning remote networks
by  Xavi  
Go to last post Go to first unread
Last post: Today at 11:30:16 AM(UTC)