System Center Orchestrator 2012 Beta: Using Run .Net Script Activity – PowerShell: Inputting and Returning Data
This article describes how to use the Run .Net Activity to run PowerShell Scripts. I have created an example runbook which does the following: Start once every minute. Read a text file containing a list of sites/servers. Parse the list to PowerShell script. PowerShell script tried to ping each address and get the response time. [...]
Category: Orchestrator / Opalis, Powershell, Scripting, System Center Orchestrator 2012, System Center Orchestrator 2012 Beta | 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.
PowerShell: Creating new users from CSV with password and enabled accounts or How to Pipe into multiple cmdlets
How to create users from a CSV file, set their password and enable them in one command.
Category: Powershell, Scripting | 4 Comments
This method shows you how to pipe the same output into multiple cmdlets by using the ForEach-Object Cmdlet.
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
VBScript: Cleanup all computer objects for local PC
When we are deploying OS via ConfigMgr, we usually do a cleanup of all old objects before creating the new object. This helps prevent errors and mistakes, and is pretty easy to do. We are able to use both SMBOIS GUID and Mac addresses for the cleanup. usually I recommend using mac addresses, since I [...]
Category: Configuration Manager, OS Deployment, Scripting, VBScript | 1 Comment
Exchange and Activesync: Limiting the mailbox to sync with only one device
Just came back from a customer which needed to limit the number of mobile device to one per mailbox. For this implementation the customer used all kind of smart phones, so the challange was also to find the unique Device ID from the Smartphone and add it to a Active Directory Attribute called: msExchMobileAllowedDeviceIDs. I [...]
Category: Exchange, Powershell | Comment
Run an executable from a specific path that includes spaces and arguments
Many people who have worked with PowerShell have reached this problem. You have a exe file in a folder that includes spaces. (fx. “C:\Program Files\”)
Category: Powershell, Scripting | Comment
This exe file needs to be called with an argument that starts with “-”. at the same time , you need to call it from another folder.
How to list ConfigMgr package structure in Powershell
This post show how to do a list of all package structure in ConfigMgr 2007, via standard PowerShell.
Category: Configuration Manager, Powershell, Scripting, Software distribution | 1 Comment
“How to Raise Alert from Microsoft Outlook in OpsMgr 2007” or a New Outlook Connector to Operations Manager 2007 R2
Have you ever thought on creating Alerts directly from a mail? Or Send a mail to your OpsMgr to raise an alert in your Operations Manager? A few weeks ago I was talking with a guy participating on one of the Advanced OpsMgr courses, his existing monitoring environment currently delivered an mail to a group [...]
Category: Operations Manager 2007, Scripting, VBScript | 3 Comments
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.

