VBScript: Uninstall and Install iTunes (Upgrade) using automatic product code finder script (or any other product, by using product name)
Follow up to my post about getting product code!
Category: Configuration Manager, Scripting, VBScript | Comment
This time we do a full uninstall and install of iTunes, using automatic product finder!
Posts tagged ‘vbscript’
VBScript: Find iTunes product codes automatically (or any other product, by using product name)
Script for getting product code from product name. Very usable for deployment of software via configuration manager or similar systems.
Category: Configuration Manager, Scripting, VBScript | 5 Comments
WMI/ConfigMgr Scripting: CreateEmbeddedObjectInstance (.NET) or SpawnInstance (VBScript) in PowerShell
During the development of the script I posted yesterday, I noticed that a lot of people had problem discovering how to create WMI objects in PowerShell. I found different suggestions, but they all had problems. When I have to create WMI object instances I use this this method, which I used in my old [...]
Category: Configuration Manager, Powershell, Scripting | 1 Comment
VBScript: Receiving new advertisement info from ConfigMgr 2007 via WMI Events.
Run code when a new advertisement is created.
Category: Configuration Manager, Scripting, VBScript | 3 Comments
This post contains a vbscript using async operations to catch the new advertisement, when it is created.
Adding users to Configuration Manager 2007 with specific Class Permissions via VBScript
The Configuration Manager 2007 SDK, has a lot of missing examples and parts that are not well documented. One of them is the part about User permissions and how to add them. During the development of the install script for our HTA solution, I had to create a HTA user, with special permissions for the [...]
Category: Configuration Manager, Scripting, VBScript | Comment
Using JScript and VBScript functions in the same script or HTA.
When I am developing new script, I usually use VBScript (or powershell but that’s another story).
Category: Scripting, VBScript | Comment
but sometimes I already have some old functions written in JScript, that I need to use in my VBScript.
This article shows you how to do it.
Outlook 2010: Auto Export Body of new e-mails
This macro is made for a opsmgr management pack, soon to be published on this blog. It is written in VBA in outlook 2010 (could work in other version too, but it is not tested). It shows how to create a macro function, that is usable in a rule. 1. Enable Developer Ribbon to be [...]
Category: Scripting, VBA | 1 Comment
Include other files in VBScript
Have you ever wanted to include another .vbs file with all your common functions in a script? Many people I have met thought it wasn’t possible. But it is actually pretty easy to do with “ExecuteGlobal” to make it even easier, I have created a small function which you can put in your scripts and [...]
Category: Home, Scripting, VBScript | 2 Comments
VBScript: Move computer object to another OU via Command line parameter
UPDATE: New improved script 0.0.3 uploaded. Thanks to Nico_ at Technet Forums! Hello everyone My collegue Michael Petersen, needed a script to move computers to another OU, after re-installing them via SCCM/ConfigMgr. He have written a blog post to show how to use it in a Task Sequence: http://blog.coretech.dk/mip/using-ts-variables-when-running-a-script-under-a-different-account/ therefore i developed this small script [...]
Category: Scripting, VBScript | 22 Comments
OpsMgr 2007 (SCOM): Coretech Certificates Expire checker Management Pack – 0.0.0.1
Download: Intro: This management packs can be used to check the expire date on all or specific certificates in the client/servers certificates store. It uses the event log on the local client, to alert the OpsMgr unit monitor . It is supposed to check once every day, and make a warning in the opsmgr if [...]
Category: Operations Manager 2007, VBScript | 6 Comments

