Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for Deploy-MEMCMPackage #39

Open
thoen008 opened this issue May 13, 2021 · 0 comments
Open

Improvements for Deploy-MEMCMPackage #39

thoen008 opened this issue May 13, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@thoen008
Copy link
Contributor

Additional features could be added or changed for this function.

  • Right now the collection settings are in the packageconfig.json. We could move those settings to the Global and rewrite some of the logic. The reason I left them in the packageconfig was so that each collection could have it's own deployment settings per collection for that application and a different application packageconfig could have different deployment settings.
  • There are additional settings available in the New-CMApplicationDeployment function used by this function. These could be added.
  • Not tested on multiple sites
  • When looking for an existing deployment it is assuming a match of publisher and product name is sufficient. Maybe this isn't good enough?
  • This function is slow. It does multiple ConfigMgr function calls. Maybe using the admin service would be faster? Or direct SQL calls.
  • The function New-CMApplicationDeployment will always set the available time to the current date/time. I did not find a way to not set that.
  • It is currently using a + days model to set when the available start and available deadline are. So if you set the value of availStart to 6 it will add 6 days to the current date. Maybe this isn't ideal.
  • Do we want some write information in this function for future troubleshooting?
  • The New-CMApplicationDeployment function parameter -TimeBaseOn accepts UTC or LocalTime but when you set it to LocalTime it still uses UTC to set the start available and start deadline timestamps. The function currently uses Set-CMApplicationDeployment to fix this after the deployment is made. Maybe there is a better way.
@thoen008 thoen008 added the enhancement New feature or request label May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant