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 Lansweeper --> PowerBI
by  Hendrik.VE   Go to last post Go to first unread
Last post: Today at 12:13:59 PM(UTC)
Lansweeper Report 32 or 64bit software
by  Phofman  
Go to last post Go to first unread
Last post: Today at 11:06:17 AM(UTC)
Lansweeper Deployment issue with certain installer
by  Ruben1   Go to last post Go to first unread
Last post: Today at 10:36:38 AM(UTC)
Lansweeper Mail notification Windows Defender
by  MB@CC-IT  
Go to last post Go to first unread
Last post: Today at 8:00:59 AM(UTC)
Lansweeper Change Management - Voting and Tracking
by  hrhansen   Go to last post Go to first unread
Last post: Today at 7:46:23 AM(UTC)
Lansweeper Lansweeper email Support
by  Esben.D  
Go to last post Go to first unread
Last post: Yesterday at 5:58:17 PM(UTC)
Lansweeper Scanning Methods
by  CyberCitizen   Go to last post Go to first unread
Last post: Yesterday at 1:12:34 AM(UTC)
Lansweeper Asset Group Config
by  CyberCitizen  
Go to last post Go to first unread
Last post: Yesterday at 1:10:54 AM(UTC)