Solved

VB Script Assistance

Posted on 2015-02-11
2
126 Views
Last Modified: 2015-02-13
Hello,

Can someone please help with this script?

' Hide the progress dialog

Set oTSProgressUI = CreateObject("Microsoft.SMS.TSProgressUI")
oTSProgressUI.CloseProgressDialog
Set oTSProgressUI = Nothing

‘ Msg box to Display the msg

MsgBox "Windows 7 Operating System deployed Successfully."& vbCrLf & vbCrLf & _
     "Please click OK To logon to your computer", 64, "Operating System Deployment Successful"

Script is attached too, I'm wanting to use this for SCCM to display a dialogue box when the task sequence completes.

Here's how I found the script: http://venusingireddy.blogspot.co.uk/2013/05/osd-complete-msg-box-in-task-sequence.html

I'm having issues with it, got an error 'ActiveX component can't create object:Microsoft.SMS.TSProgressUI' on Windows 8.1

Thanks
OSDComplete.vbs
0
Comment
Question by:ProjNet
2 Comments
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 40604445
This code will not work unless itis  run during a task sequence. If you try to test it on your machine outside of this you get the error listed

Microsoft.SMS.TSEnvironment is the COM object used by Operating System Deployment in ConfigMgr 07 to expose task sequence variables. It is only available during a task sequence and is typically easy to access using built in task sequence tasks and conditions or automation aware scripting languages like VBScript.
http://blogs.catapultsystems.com/jsandys/archive/2010/02/23/microsoft-sms-tsenvironment.aspx
0
 

Author Closing Comment

by:ProjNet
ID: 40607564
Great, thanks :)
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question