All posts tagged PowerShell

cu1-errors-00Today I was at one of my customers and looked at an issue that my Clean up Powershell script was not working anymore. While troubleshooting I noticed that the script was exited with a Quota Violation error, since they also has some WMI issues since a power outage a couple of weeks ago I thought it was a WMI issue like described here.

Read more

Error connecting to the Primary Site

Error connecting to the Primary Site

When using a service account to run for instance my “cleaning ConfigMgr” Powershell script you may run in to an error. When trying to access the Windows PowerShell drive that is mapped to your Primary Site you will receive the following error: “set-location : Cannot find drive. A drive with the name <primary site> does not exist.” (see figure on the left) I see the same behavior when for instance running a Powershell script from System Center Orchestrator 2012 to change settings in Configuration Manager 2012 SP1.

Read more

20130425-powershellscriptToday I released a new version of the “Cleanup in AD deleted devices via Powershell in ConfigMgr 2012 SP1” script that was originally released in March of this year. In this new version the following is changed:

                  • Ability to set the Maximum Query Result Size of ConfigMgr 2012 SP1, by default this is 1000 items
                  • Fixed little bug while searching in AD for objects give back a number higher than 1. (more AD objects with the same name)

You are able to download the new script here in the Microsoft TechNet Gallery. Please let me know what you think of the script. I have some ideas to extend the script in the future, so stay tuned.

 

sccm2012-logoI am not a real scripting guy but for one of my customers I wrote a Powershell script that allows you to delete devices in Configuration Manager 2012 SP1 that have been deleted from the Active Directory. This way the customer is able to keep its Configuration Manager database clean and update date. With the release of Service Pack 1 for Configuration Manager you are able to use real Configuration Manager cmdlets instead of connecting through WMI to your Configuration Manager 2012 site. Scripting has become easy 😉

Read more

sccm2012-logoIn my series about my top 10 of new features in Configuration Manager 2012 SP1 I would like to dedicate this blog on the Powershell 3.0 support. I am not a Powershell expert but I will try to show you some tricks 😉
When starting the Configuration Manager 2012 SP1 Console you need to click on the blue button in the upper left corner. In the pull down menu you will see the option to start Windows Powershell.

 

Read more

This blog is initiated by a question asked to Wally Mead during the SCUG Netherlands event last week. The question was if there is any PowerShell support for Boot Images in Configuration Manager 2012 Service Pack 1. In this blog I would like to show you how to add the PowerShell support to WinPE boot images from the Configuration Manager 2012 SP1 Console. Service Pack 1 is scheduled to be released early 2013, but the public beta version can be downloaded here.

Read more