Solved

VB Script Assistance

Posted on 2015-02-11
2
111 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
Comment Utility
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
Comment Utility
Great, thanks :)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 …
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now