Small useful scripts–Changing Driver Package source (PS1)
I have this customer who had to move all driver packages from from one server a another. This of cause meant all the Data Source references had to be change as well. Once al the packages were moved to the new server I ran the following two scripts to change the source. All you need [...]
Category: Configuration Manager, Drivers, OS Deployment, Powershell, Scripting | Comment
Posts tagged ‘Powershell’
System Center Orchestrator 2012: How to convert flattened data into multi-value in a very easy way!
Converting flatten data to multi-value executions in Orchestrator 2012
Category: Orchestrator / Opalis, System Center Orchestrator 2012 | Comment
Add and remove access permissions on mailboxes on Office 365
There will be times where you want to give an administrator or another user access to another user’s mailbox. This blog post will describe how to add and remove access permissions on one or more mailboxes with PowerShell.
Category: Cloud Services, Office 365 | Comment
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
PowerShell: ConfigMgr 2007 – Create Maintenance Window
How do create service windows in configuration manager by using PowerShell.
Category: Configuration Manager, Powershell, Scripting | 5 Comments
PowerShell: How to create an empty array!
Note about array in powershell. How to create empty arrays and a little trick for adding to arrays.
Category: Powershell, Scripting | 1 Comment
Managing Office 365 with PowerShell
Using PowerShell is a great way to administering your Office 365 configuration. This blog will describe what you need to get started.
Category: Cloud Services | Comment
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 | Comment
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 | 3 Comments
This method shows you how to pipe the same output into multiple cmdlets by using the ForEach-Object Cmdlet.
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.

