About
Careers
Support
Partners
Community
Contact
Product
Overview
IT Discovery
IT Inventory
IT Analytics
Features
Integrations
Use Cases
IT Asset Management
Cybersecurity
Active Directory Audit
Installing Software & Patches
Automated IT Inventory
Pricing
Resources
Support Knowledge Base
Videos
Testimonials
Vulnerability Updates
Patch Tuesday
Blog
Free Download
Lansweeper
»
Installers
»
Deploy a registry key
Active Topics
Search
Join Now
Login
Notification
Error
OK
Deploy a registry key
Posted:
Friday, March 23, 2018 11:22:12 AM(UTC)
Esben.D
Member
Administration
Original Poster
Posts: 2,186
3
Like
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.
Deploy a registry key
Download Package
Description
1. Create a .reg file to use for deploying
2. Place the .reg file in the {packageshare}\Registry folder.
3. Double check that the path and file name in Step 1 are similar to the path and the file of your .reg file.
Final Action
Nothing
Max. Duration
5 min(s), 0 hour(s)
Rescan
Yes
Steps
1. Deploy registry key
Type
Command
Return Codes
0,1641,3010
Success
Stop (Success)
Failure
Stop (Failure)
Command
regedit.exe /S {packageshare}\Registry\Key.reg
#1
Rmon
Member
Posts: 3
posted:
10/28/2021 11:06:05 AM(UTC)
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
User Profile
View All Posts by User
View helpful posts
#2
Mr Bass
Member
Posts: 4
posted:
10/29/2021 4:08:20 PM(UTC)
Originally Posted by: Rmon
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.
User Profile
View All Posts by User
View helpful posts
#3
Rmon
Member
Posts: 3
posted:
10/30/2021 5:38:19 AM(UTC)
i tried to use
net use * /d /y
if manual it is working but via lansweeper type : command , it is not working
User Profile
View All Posts by User
View helpful posts
#4
Don
Member
Posts: 33
posted:
3/23/2022 6:06:39 PM(UTC)
needs to be ran as the currently logged on user.. other users wont have access to remove drive mappings
User Profile
View All Posts by User
View helpful posts
Active Discussions
Lansweeper Dark Theme
by
mrobbins
Last post:
Yesterday
at 5:38:01 PM(UTC)
Detect Docking Stations
by
GlenH
Last post:
Yesterday
at 3:52:13 PM(UTC)
Exclude non-windows assets from scanning by assetname
by
rapheren
Last post:
Yesterday
at 1:18:12 PM(UTC)
HTTPS Certifikate untrusted
by
pskup
Last post:
Yesterday
at 9:20:07 AM(UTC)
Migrate to new host but without SQL
by
pskup
Last post:
Yesterday
at 9:03:14 AM(UTC)
Object reference error after updating to 10.2.0.0
by
Erik.T
Last post:
Yesterday
at 8:10:25 AM(UTC)
Custom reporting - Asset Groups and AD Description
by
rbshawn
Last post:
6/29/2022 10:54:10 PM(UTC)
A FIX for an odd Scan Error WMI/DCOM from scanning server
by
danielm
Last post:
6/29/2022 10:14:44 PM(UTC)