Solved

VB Script Assistance

Posted on 2015-02-11
2
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Michael Fowler 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The default behavior of the User Account Control (UAC) dialog is to disable (gray-out) the rest of the desktop when prompting for elevation. This is known as secure desktop. There are reasons that you may want to disable this secure desktop behavior…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Suggested Courses

624 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