Help with 'Using Powershell to download updates' on custom package
I'm following this guide to try and automate a few custom packages I have. I've ran in to two issues getting this to work:
- Unsure about file permissions
I use my fileserver as my repository, but both the Deploy and Inventory databases are stored locally. If I run this script on the PDQ server, how does PS handle permissions for downloading, creating folders, moving folders, renaming folders? If I run the script on the fileserver, does PDQ pass along the creds to be used to view the DB?
- Download URL is not static and changes with version number
I'm unfamiliar with how the WebRequests work, I'm assuming for this purpose this is actually a good thing, as I should be able to strip the filename from the URL and use that to determine if there is a new version? Has anyone gotten this to work or wouldn't mind pointing me in the right direction?
Comments
That will all be based on the user you run PowerShell as.
I recommend against doing this. Since database access is required, it will be easiest to run this script on the PDQ server.
Unfortunately, it's going to vary a lot between programs. Which programs are you trying to download?