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

Use the ShowActionProgress method to display more information. #227

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matbe
Copy link

@matbe matbe commented Apr 28, 2020

I added support for the ShowActionProgress / ShowActionDetailedProgress methods from Microsoft.SMS.TsProgressUI.

To be able to capture the output from DISM in recursive mode I wrote a new function that is using StandardOutput.ReadLine() to be able to parse the output into the Invoke-ShowActionProgress function.

If there are any questions contact me here or @matbe on twitter. Feel free to edit any of the "Actiontexts" presented to the user.

@NickolajA
Copy link
Member

I love this. I'd like however to go over the code and make a few changes, as you have a different naming standard for variables etc than what we've in the script currently. Would that be alright?

@NickolajA NickolajA self-assigned this Apr 28, 2020
@matbe
Copy link
Author

matbe commented Apr 28, 2020

Most variables are from the showactionprogress method to keep it consistent with the MS documentation.

https://docs.microsoft.com/en-us/mem/configmgr/develop/reference/core/clients/client-classes/iprogressui--showactionprogress-method

But feel free to change what you see fit. Also a bit more testing wouldnt hurt :) It works for me in my lab (latest TP) and on ConfigMgr 2002, if anyone could verify on an older build that might be good. (Should work though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants