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: 32  
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 Notebooks report
by  Martin Izquierdo   Go to last post Go to first unread
Last post: Today at 4:08:32 PM(UTC)
Lansweeper Unauthorized Administrators by OU
by  Craig Fair  
Go to last post Go to first unread
Last post: Yesterday at 8:05:04 PM(UTC)
Lansweeper Waiting reboot status
by  RJJJR   Go to last post Go to first unread
Last post: Yesterday at 7:01:42 PM(UTC)
Lansweeper reboot required or awaiting reboot report
by  RJJJR  
Go to last post Go to first unread
Last post: Yesterday at 6:58:36 PM(UTC)
Lansweeper Report 32 or 64bit software
by  Esben.D   Go to last post Go to first unread
Last post: Yesterday at 12:21:46 PM(UTC)
Lansweeper Report Needed of just DEFAULT GROUP assets
by  SHib11  
Go to last post Go to first unread
Last post: 10/15/2019 2:57:23 PM(UTC)
Lansweeper No longer shows up-to-date with new OS version
by  ICT Support  
Go to last post Go to first unread
Last post: 10/15/2019 11:29:10 AM(UTC)