Home » Scripting »

Export out User Device Affinity Relationship with PowerShell

This script allows to export out specific collection UDA Relationships to a CSV file. Here is the script it self. Run it on your Primary Site Server and then open the CSV file with Excel. <# .Synopsis This script exports out specific collection UDA Relationships .DESCRIPTION .EXAMPLE Export-CMUDARelationships.ps1 -DeviceCollectionName "All Systems" -OutPut C:\Scripts\Reports\UDA.csv -SiteCode PS1 […]

Category: Configuration Manager, Configuration Manager 2012 R2, Powershell  |  1 Comment

The EASY WAY – List objects in specific folder in Configuration Manager 2012 with PowerShell

Last week I saw one blog post how to list specific folder objects and I believe that actually there is much easier way to list the objects in specific folder. First we need to figure out the ContainerNodeID which is the folder unique ID. We have several ways to find out the folder unique ID, […]

Category: Configuration Manager, Configuration Manager 2012 R2, Powershell, Scripting  |  5 Comments

How to move objects in Configuration Manager Admin Console with PowerShell

Starting with Configuration Manager 2012 R2 we have a cmdlet called Move-CMObject. This cmdlet allows to move different objects in Admin Console. We still don’t have a cmdlet that allows to create ConfigMgr Admin Console folders but if necessary you can use this code to create folders. Here are 6 different examples How to move […]

Category: Configuration Manager, Configuration Manager 2012 R2, Powershell, Scripting  |  6 Comments

Create ConfigMgr 2012 R2 Collections with Powershell

I know we have migrations tools and other built-in options when we want to build a new ConfigMgr environment. But Microsoft have given us Powershell, and there are some really cool cmdlets that we can utilize. I’ve had a couple of examples lately where i had to create 100+ collections from scratch – or basicly […]

Category: Configuration Manager 2012 R2, Powershell  |  2 Comments

Simple workflow for Configuration Manager Client installation

Here is a really simple Configuration Manager Client installation PowerShell workflow. This workflow queries all the clients where ClientType property is NULL. You can easily add logging, scheduling etc. workflow Install-CMClient { Param( $SiteCode, $SiteServer ) $Computers = Get-WmiObject -Namespace "Root\SMS\Site_$($SiteCode)" ` -Query "Select Name from SMS_R_System where ClientType is NULL" -PSComputerName $SiteServer Write-Output -Input […]

Category: Configuration Manager, Configuration Manager 2012 R2, Powershell, Scripting  |  1 Comment

Updated: LEAP Motion Controller Add-ins for Microsoft Office 2010/2013 (C#)

finally had some time to update and test my code for the Office leap controller using the current LEAP SDK (1.0.6)!   Supported so far: Visio – Swipe Pages (for live dashboards etc.) PowerPoint – For Previous/Next Slide in presentation Excel – Change Sheet. Scroll + Scroll Pages Word – Change Page More info on […]

Category: .NET, Scripting  |  Comment

Dealing with Network Printers in Configuration Manager 2012

There are multiple ways how you can add a network printer to a PC and of course you can do that also with Compliance Settings in Configuration Manager. In PowerShell we can use Add-Printer cmdlet and if you don’t have the latest PowerShell version, then you can use Win32_Printer WMI class to add the Printer. […]

Category: Configuration Manager, Configuration Manager 2012 R2, Desired Configuration Management, Operating Systems, Powershell, Windows 8  |  3 Comments

Why I can’t convert my Windows Server 2012 R2 Core to GUI

Let’s assume that you installed some time ago one Windows Server 2012 R2 Server Core and you have installed also latest Windows Updates to that server and this server does not have an internet connection. Here are the updates that are installed In one day you discover that you need to add graphical user interface […]

Category: Operating Systems, Powershell, Windows Server 2012 R2 Core  |  17 Comments

Installing a Domain Controller on Windows Server 2012 R2 Core

In my previous post I showed how you can install Active Directory Domain Services on Windows Server Core and in this post I´m going to show how you can add an additional Domain Controller to your environment because best practice recommends that you have at least two of them. To add an additional Domain Controller […]

Category: Powershell, Windows Server 2012 R2, Windows Server 2012 R2 Core  |  2 Comments

Capture output from command line tools with PowerShell

A simple task and then again not A customer asked me if it was possible to grab output from a command and analyze the output afterwards. In the particular case he needs to call a telnet session and check if there was a proper response from the server. The easy solution and then again not […]

Category: Powershell  |  5 Comments