‎03-15-2019 01:55 PM - last edited on ‎04-01-2024 04:36 PM by Mercedes_O
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
‎10-07-2019 04:36 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now