SCCM (WinPE) move progress bar

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of Graham Beer Graham Beer 1 year, 8 months ago.

  • Author
    Posts
  • #23681
    Profile photo of Graham Beer
    Graham Beer
    Participant

    Not sure if anyone can help or if its possible but its driving me crazy !

    I'm trying to move the position of the progress bar in sccm on provisioning.

    I've connected to methods(?) like so:

    $TSEnv = New-Object -ComObject Microsoft.SMS.TSEnvironment
    $Progress = New-Object -ComObject Microsoft.SMS.TSprogressUI

    Even by doing a get member i'm confused on what i can use to do this.

    Can anyone help ?

    Thanks.

  • #23682
    Profile photo of Don Jones
    Don Jones
    Keymaster

    With those older COM objects, if there isn't a local Type Library, Get-Member can't help much. The docs for the class are at https://msdn.microsoft.com/en-us/library/cc145836.aspx, and there's an article at http://blogs.technet.com/b/mniehaus/archive/2010/03/26/hiding-and-showing-the-task-sequence-progress-dialog-box.aspx you could look at. It's a VBScript article, but the syntax is very similar. I also dug up http://www.vroege.biz/?p=417, which kind of shows a PowerShell translation of some of the original blog post.

    And you haven't "connected to methods;" you've instantiated an object. You're now ready to read and set properties, and to call methods, to make it do stuff. 🙂

  • #23683
    Profile photo of Graham Beer
    Graham Beer
    Participant

    Thank you Don for replying and so quickly ! A great honour to have you reply to one of my posts. I'm watching the "PowerShell in a month of lunches" videos. Great stuff for this newbie 🙂

    I need to understand more powershell, i'm at the playing stage. So i can change the position of the progress dialog window/box ?

  • #23685
    Profile photo of Don Jones
    Don Jones
    Keymaster

    I've no idea if you can control the position of the window or not. I suspect not, but you'd need to look through the documentation I linked to see what capabilities the component offers.

    I'll mention that playing with those old COM components isn't going to help you understand PowerShell. You're literally playing with technology from the 1990s. PowerShell can connect to it, but it's like running "ping.exe" inside PowerShell. It'll do it, but you're not using PowerShell.

    I understand that you probably need to do this for something at work, which is cool – and that's why PowerShell lets you be so flexible. Just understand that the time and effort you're putting into this dialog box won't further your understanding of PowerShell... that'll still be on your to-do list :).

  • #23687
    Profile photo of Graham Beer
    Graham Beer
    Participant

    Ok thanks Don. That's helped me understand a bit. I guess I'm just plugging into these old objects. Back to the drawing board ! Wanted to try some cool things in the task sequence in SCCM using powershell.

You must be logged in to reply to this topic.