Script for creating Maintenance Windows in SCCM2012 with an offset to patch Tuesday

Since there is no built in way to create a Maintenance Window with an offset to patch Tuesday I have created a script that will do if for you. Patch Tuesday is always the second Tuesday in the month but what if you want to patch on Wednesday after Tuesday? Look at April 2015 for example, the month starts with...

Read More»

Azure PowerShell IaaS – Notes from the field

I was tasked to write a bunch of PowerShell scripts to deploy a new Active Directory Domain Services (ADDS) Server onto Azure. The end goal would be to have some kind of synchronisation running between the off-premises and the on-premises environment, the off-prem basically being the Test/Dev environment for that customer. Over the last couple of days I wrote down some notes on about what I did and what curiosities I found. If you haven’t yet started using the Azure PowerShell SDK, go check out http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/ . This will help you get started. PowerShell SDK for Azure as with everything you are trying to automate, it helps a lot to have a […]

Read More»

Desired State Configuration (DSC) Training

On February 25th Microsoft will hold a free all day training on Desired State Configuration (DSC). This will be from 9AM to 5PM PST on Microsoft Virtual Academy. Here us the Course Outline: Getting Ready for DSC Performing a Push Deployment Configuring Pull Servers for Deployment​ Deploying Configurations Using a Pull Server Resource Roundup Writing […]

Read More»

SCCM 2012 – Powershell for Creating iOS Store Apps

Hi All, Have you ever need an application/dt based on an iTunes link? if yes, you know how time consuming it is and the experience is not great. Based on this, i’ve created this powershell that will, from a itunes link, identify the name of the application, publisher, category and create a new application (if needed) as well as a new deployment type called iOS, also if needed. to use this powershell, you need to pass the sdkserver and the sitecode as well as a text file with the iTunes links (1 per line) the text file should look like the following: https://itunes.apple.com/gb/app/microsoft-word/id586447913?mt=8 https://itunes.apple.com/gb/app/microsoft-powerpoint/id586449534?mt=8 https://itunes.apple.com/gb/app/microsoft-excel/id586683407?mt=8 the command line would look like: .\ImportiTunesApplication.ps1 -sdkserver “SRV0007″ -sitecode “CLC” -filename “c:\temp\ituneslist.txt” at the end, you’ll see all apps being created [crayon-54afae865b366193407282/]  

Read the complete blog: http://thedesktopteam.com/blog/raphael/sccm-2012-powershell-for-creating-ios-store-apps/

Read More»

SCCM 2012 R2 – PowerShell Basics (Part 1)

Players, I’m not sure where I read it, but I’m pretty sure someone once said “Learn PowerShell or become obsolete”. It’s pretty much a key skills requirement for most roles in infrastructure these days and besides System Center 2012 is basically all PowerShell under the hood, so at least understanding it puts the odds in your favour. But lets keep things in perspective, there are lots of “very important” I.T professionals who really push the PowerShell envelope. I’m not one of them, I do agree its a key skill that’s needed. Will you become obsolete? No. Probably not. Lets face it, if you “Google” hard enough you can find out how to do just about anything. Including PowerShell. I have to do loads of hand-overs and document configurations etc for SCCM, so doing certain jobs via PowerShell actually makes the mundane documentation process a little easier. I’ve also been asked…

Read the complete blog: http://thedesktopteam.com/blog/heinrich/sccm-2012-r2-powershell-basics-part-1/

Read More»

SCCM 2012 – Powershell for Creating baseline for SW Upd

Hi All, how often you arrive at a customer site and need to create the baseline for software update and distribute it to a DP group? I see this need often and when i create baseline, i create 1 per product, so, if you have 3 products, 3 baselines, but if you have over 10+ products? the work that need to be done is time consuming ins’t it? based on this, i’ve created the bellow powershell. it basically, will connect to your site, select all products you have selected on the software update and will create a software update group for each product. it will also download the files from the internet and create a deployment package (you’ll need to specify the folder where the files are going to be copied to) and distribute the content to a DP Group array. if you’re small company, maybe you have 1 or…

Read the complete blog: http://thedesktopteam.com/blog/raphael/sccm-2012-powershell-for-creating-baseline-for-sw-upd/

Read More»

Remediate Registry String Array Values Using Compliance Settings and PowerShell

Shortly after our Windows 7 Migration awhile back, we started encountering some erratic behavior regarding printing to network printers from Windows 7 clients. After months and months of troubleshooting, we traced it back to the registry. Each print driver has a registry key. The key(s) for the affected printer(s) would have their Dependent Files value changed to be Null. Deleting...

Read More»

How to: Extract Status Message Information from ConfigMgr 2012 R2

During MMS 2014, Wally Mead and I presented a session about state and status messages. This post describes one of the scripts that I demonstrated, which uses PowerShell to display status messages in a human-readable-friendly manner. This is similar to using the ConfigMgr status message viewer or SSRS reports, in that it displays the full sentence and description […]

Read More»

Configuration Manager Remote Control via IP

Have you ever had trouble accessing a computer via Remote Control from the Configuration Manager console? While many factors can cause this, one major issue can be DNS-related. If the computer is not correctly registered, or perhaps the machine is on a VPN connection which doesn’t have that adapter registered in DNS, you may not be able to get in....

Read More»

Install Windows features through PowerShell – by clicking

 Rebuilding my home lab with PowerShell I am currently rebuilding my home lab (again! This time properly, I promise.) and my goal is to use as much PowerShell as possible. I am building everything on a Dell XPS 15 laptop with a 1TB Samsung SSD and 16GB RAM. Enough for a mid-size mobile lab. The host runs Windows Server 2012 R2, what else? On top of that I have also installed the Windows Management Framework 5 November Preview in order to use all the latest and greatest features of PowerShell, for example Desired State Configuration in its latest version. Of course, I have also downloaded the DSC Resource Kit in … Continue reading

Read More»

Import users to Azure and Office 365 with PowerShell

Mass import of users into a cloud directory with PowerShell By now you should already know that PowerShell should be the default tool for every IT Pro nowadays. Every new product and every new release of an existing product out of Microsoft is shipped with a PowerShell module, that’s a clear sign. It’s not only Microsoft, VMware, Citrix, Amazon, all big vendors make their products and services manageable via PowerShell. So get used to it This article will show you an end-to-end example of a PowerShell script that does a mass import of users into a Microsoft Azure Active Directory or Office 365 directory via PowerShell. Azure Active Directory won’t … Continue reading

Read More»