This topic contains 4 replies, has 2 voices, and was last updated by
March 25, 2015 at 8:05 am #23681
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 ?
March 25, 2015 at 8:15 am #23682KeymasterPoints: 1,811Rank: Community Hero
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. 🙂
March 25, 2015 at 8:26 am #23683
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 ?
March 25, 2015 at 10:45 am #23685KeymasterPoints: 1,811Rank: Community Hero
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 :).
March 25, 2015 at 11:43 am #23687
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.
The topic ‘SCCM (WinPE) move progress bar’ is closed to new replies.