cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Esben_D
Lansweeper Employee
Lansweeper Employee

This is a short deployment package to deploy a .reg file containing one or multiple registry keys and rescan the asset after deployment.

Please note that you will have to generate this .reg file yourself first and place it in the {packageshare}\Registry folder. Should you have your .reg file in a different folder of the packageshare, you can modify the path in step 1.

Additionally, in this package they file is named Key.reg. Should your .reg file be name differently, you will have to modify step 1 to reflect this.

4 REPLIES 4
drobertson
Engaged Sweeper III
needs to be ran as the currently logged on user.. other users wont have access to remove drive mappings
rmonnathanl
Engaged Sweeper
i tried to use

net use * /d /y

if manual it is working but via lansweeper type : command , it is not working
rmonnathanl
Engaged Sweeper
i tried to follow this step

i have my .reg file inside C:\Program Files (x86)\Lansweeper\PackageShare\Installers in my server

delnetworkdrives.reg
******
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Network]
******

and type: command
regedit.exe /S {packageshare}\Installers\delnetworkdrives.reg


Installer logs shows
Result: Deployment ended: The operation completed successfully. Stop(Success).

but drives still exist

If i manually execute the .reg its working properly
bass
Engaged Sweeper II
Rmon wrote:
i tried to follow this step

i have my .reg file inside C:\Program Files (x86)\Lansweeper\PackageShare\Installers in my server

delnetworkdrives.reg
******
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Network]
******

and type: command
regedit.exe /S {packageshare}\Installers\delnetworkdrives.reg


Installer logs shows
Result: Deployment ended: The operation completed successfully. Stop(Success).

but drives still exist

If i manually execute the .reg its working properly


Never trust the logs, sometimes, they say my deploiment failed but actually worked fine, can't you do it using a .ps1 file or batch instead of .reg? (I mean, take a test to draw new conclusions), maybe it's lansweeper thing... cheers and good luck.