Quantcast
Channel: LANDESK User Community : All Content - Software Distribution
Viewing all articles
Browse latest Browse all 766

How to update the file path on all of the SWD packages on a Core Server

$
0
0

If you migrate to a new LANDESK Core server, one of the challenges can be getting all of the SWD packages updated with the new server name.

 

If using CoreSync is not an option, then this query will help to update the package paths that are defined in the individual SWD packages.

 

As always, before running any query that could negatively impact your environment ensure the following.

1.  You have a verified backup of your database.

2.  Test in a non production system before applying any changes to a production environment.

 

/****** Query to update package paths in all SWD packages  ******/

UPDATE dbo.PACKAGE_FILES_HASH SET FULL_PATH = replace

(FULL_PATH, 'OldServerName', 'NewServerName') WHERE FULL_PATH LIKE '%OldServerName%'

 

 

This query will update all of the paths for the Primary File in the SWD package as well as all Additional Files.

 

OldServer.JPG

 

Here is the package after running the sql command.

 

NewServer.jpg


Viewing all articles
Browse latest Browse all 766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>