Notification

Icon
Error

Deploy package - add registry key to HKCU - Simple deployment of registry key, not completing

Posted: Thursday, June 21, 2018 5:25:53 AM(UTC)
darrkon

darrkon

Member Original PosterPosts: 11
0
Like
Hi,
We need to add a couple of registry keys under HKCU and thought LanSweeper might be able to help.
At the moment I have created a deployment package with a Command type entry.

One example is:
REG ADD HKCU\Software\Key\Key\Key\ /f /v Value /t REG_DWORD /d 2

There are three of these command entries in the job. The job is then set to run as the current user.
The first two commands are set to Next on Success and STOP on failure. The third command is set to STOP on Success and Failure.

We deploy this to a computer where the user is logged on and the job seems to execute (we can find the registry keys) but for some reason the job waits 5 minutes and returns

Result: Package timeout reached. Unknown last result. Timeout: (300Sec).

Does anyone know why it doesn't report a successful completion?

Esben.D
#1Esben.D Member Administration Posts: 2,055  
posted: 6/21/2018 8:34:09 AM(UTC)
Strange. I just tested your example and it worked for me perfectly.

What Lansweeper version are you on?
darrkon
#2darrkon Member Original PosterPosts: 11  
posted: 6/21/2018 11:39:02 PM(UTC)
Originally Posted by: Charles.X Go to Quoted Post
Strange. I just tested your example and it worked for me perfectly.

What Lansweeper version are you on?


We are running v. 6065
darrkon
#3darrkon Member Original PosterPosts: 11  
posted: 6/26/2018 4:43:48 AM(UTC)
Originally Posted by: Charles.X Go to Quoted Post
Strange. I just tested your example and it worked for me perfectly.

What Lansweeper version are you on?


This only seems to happen if I run the job as logged on user. Running it as System Account or Scanning Credentials finishes successfully.

I am just not sure if the registry keys go into the correct place now - will update with results.
Esben.D
#4Esben.D Member Administration Posts: 2,055  
posted: 6/26/2018 10:41:47 AM(UTC)
It would seem logical to run it as the current users since otherwise it might have issues actually performing the task since it needs to access the local user's registry.

Should the deployment not finish I would recommend updating since your version is quite old.
darrkon
#5darrkon Member Original PosterPosts: 11  
posted: 6/27/2018 4:15:34 AM(UTC)
Originally Posted by: Charles.X Go to Quoted Post
It would seem logical to run it as the current users since otherwise it might have issues actually performing the task since it needs to access the local user's registry.

Should the deployment not finish I would recommend updating since your version is quite old.


Hi Charles,
I have updated our LANSweeper installation to the latest version. The registry key deployment job still does not end successfully when running as Logged On User :(

Esben.D
#6Esben.D Member Administration Posts: 2,055  
posted: 6/27/2018 12:05:39 PM(UTC)
Think

I would recommend sending our support team a email then. To start you can include the following in your email:

  • Program Files (x86)\Lansweeper\Service\Errorlog.txt, as present on your Lansweeper server.

  • An .xml export of your deployment package. Select the package under Deployment\Packages and hit the Export button on the right side of the page, right below the package name.

  • Screenshot of a testconnection.exe test performed to one target machine with a failed deployment. Connect to the client machine's name (and not its IP address), as this is what Lansweeper connects to for deployments as well. Testconnection.exe can be found in Program Files (x86)\Lansweeper\Actions on your Lansweeper server. Perform the test from your Lansweeper server to the client machine, submit the machine's Windows credential and show us the entire test window.

  • An Excel export of the entire Deployment\Logs page. There is an Export To Excel button on the left side of the page.
Bginchereau
#7Bginchereau Member Posts: 2  
posted: 8/2/2021 5:26:16 PM(UTC)
Originally Posted by: darrkon Go to Quoted Post
Hi,
We need to add a couple of registry keys under HKCU and thought LanSweeper might be able to help.
At the moment I have created a deployment package with a Command type entry.

One example is:
REG ADD HKCU\Software\Key\Key\Key\ /f /v Value /t REG_DWORD /d 2

There are three of these command entries in the job. The job is then set to run as the current user.
The first two commands are set to Next on Success and STOP on failure. The third command is set to STOP on Success and Failure.

We deploy this to a computer where the user is logged on and the job seems to execute (we can find the registry keys) but for some reason the job waits 5 minutes and returns

Result: Package timeout reached. Unknown last result. Timeout: (300Sec).

Does anyone know why it doesn't report a successful completion?



I realize this thread is old, however I am running into a similar issue. In my case I am running the same type of deployment, though my Lansweeper returns success. Upon checking the registry and rebooting the affected PC, this is not the case. The original DWORD value persists.

Active Discussions

Lansweeper Scan User Exclusion / Define User OU for active scanning
by  Almada  
Go to last post Go to first unread
Last post: Yesterday at 6:43:34 PM(UTC)
Lansweeper sqlServerId is changing
by  Ciro Bizelli   Go to last post Go to first unread
Last post: Yesterday at 3:40:34 PM(UTC)
Lansweeper History of relationship between pc and monitor
by  hfaddy  
Go to last post Go to first unread
Last post: Yesterday at 1:44:38 PM(UTC)
Lansweeper Slow Loading Lansweeper
by  Maikel Vanroelen   Go to last post Go to first unread
Last post: Yesterday at 9:25:31 AM(UTC)
Lansweeper Sync information
by  Jay-IT  
Go to last post Go to first unread
Last post: 9/16/2021 9:20:11 PM(UTC)
Lansweeper "Unknown" exclusion does not exclude Unknown assets
by  Almada   Go to last post Go to first unread
Last post: 9/16/2021 7:18:43 PM(UTC)
Lansweeper New Hire Login Request Report
by  Scott Davis  
Go to last post Go to first unread
Last post: 9/16/2021 7:16:46 PM(UTC)