→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
TheChadWasGreat
Engaged Sweeper

This requires psexec and disk2vhd



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

{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.

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
1 REPLY 1
pryan67
Champion Sweeper II
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