Home » Scripting »

Roll Out New Configuration Manager Distribution Point with PowerShell

Here is a quick example how to install new Configuration Manager Distribution Point with PowerShell. As you see we have many options to expand this script. We can install Windows Server features, reboot it remotely, install additional software etc. It all depends how you wanna install and configure it. #Import the Module Import-Module $env:SMS_ADMIN_UI_PATH.Replace("\bin\i386","\bin\configurationmanager.psd1") $SiteCode […]

Category: Configuration Manager, Configuration Manager 2012, Configuration Manager 2012 R2, Configuration Manager 2012 SP1, Configuration Manager R3, Powershell, Scripting  |  4 Comments

December 2nd: Part 2: Uninstall Java (or any other software) with ConfigMgr Compliance Baselines

It’s December 2nd and Christmas is just around the corner! Yesterday Jakob kicked off the Coretech December Calendar with a great post about “Triggering a webhook from a SharePoint workflow using Out-of-the-box Activities” (Check out his blog post here: http://bit.ly/1N16fte).  That was the  first, this is the second post in the Coretech blog series that will continue […]

Category: Compliance Baselines, Compliance Items, Configuration Manager, Configuration Manager 2012, Configuration Manager 2012 R2, Configuration Manager 2012 SP1, Powershell, Scripting, Tips and tricks  |  6 Comments

Part 1: Uninstall Java (or any other software) with ConfigMgr Compliance Baselines

Compliance Items and Compliance Baselines in ConfigMgr is so powerful! And with some PowerShell magic you can almost use it to do anything you like on a Windows based computer – Only your imagination that will be the showstopper! Here I will show how you can uninstall software using WMI and Compliance Items in SCCM. […]

Category: Compliance Baselines, Compliance Items, Config Mgr. SP2, Config Mgr. Tools, Configuration Manager 2012, Configuration Manager 2012 R2, Configuration Manager 2012 SP1, Powershell, Software distribution, Tips and tricks  |  8 Comments

Troubleshooter note: SQL Installation fails with exitcode 0x84BB0001 on a ReFS formatted partition.

So I tried to install SQL the other day for a new ConfigMgr environment, but I kept getting an error during the first seconds of the installation with 0x84BB0001 as the exit code. With some quick investigation into the log files I found this %Temp%\SqlSetup_Local.log: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\Summary.txt: Shows that the installation has […]

Category: Config Mgr, Configuration Manager, Configuration Manager 2012, Home, Microsoft SQL, Scripting, SQL and System Center, SQL Scripts  |  Comment

Upgrade System Center Configuration Manager Console with PowerShell

Since Service Pack 1 was released to SCCM 2012 R2 I have been upgraded several environments. A couple of customers wanted me to create a PowerShell script to uninstall existing ConfigMgr Console and install the new updated version with the latest cumulative updates and hotfixes. If you create a package to distribute it with SCCM […]

Category: Configuration Manager, Configuration Manager 2012, Home, Powershell, Scripting, Software distribution, Tips and tricks  |  Comment

Azure Automation: New Features announced!

Today at the PowerShell summit in Stockholm,  Joe Levy and Anatoli Beliaev of Microsoft announced a bunch of new features that is publicly available in Azure Automation! Unfortunately I was not able to be there in person, but luckily multiple people tweeted about this stuff! (Thanks @vNiklas + @skillriver + more!! ) Some of the […]

Category: Azure Automation, Cloud Services, Scripting  |  Comment

Automate Signature And Status Reports With PowerShell – Windows Defender (.txt file)

What you will be able to after reading this blog: Get the latest information about "your" Signature- & Anti Virus reports in Windows Defender and make it into a text file. How to automate it, so it will run every day and give you a status report with time and date. Being able to look […]

Category: Home, Operating Systems, Powershell, Scripting, Security, Software Updates, Tips and tricks  |  1 Comment

PowerShell Script That Creates A Folder And A Shortcut On Your Desktop

Basic example of a script that creates a folder in your Local Disk "C"  and then makes a shortcut on desktop so you have easy access to the folder. First of all, open your powershell as administrator and make sure you are at a place where you are able to create folders such as the […]

Category: Home, Powershell, Scripting, Tips and tricks  |  Comment

Azure Automation – Samples from Sessions

Hey everyone! Last week at I speaking at System center Universe europe 2015, this week a Danish PowerShell user group event! I have collected all my runbooks and scripts in a zip and uploaded it here:

Category: Powershell, Scripting  |  Comment

Azure Automation DSC: How to register and use Azure Automation DSC

One of the new features of Azure Automation is still somewhat hidden. It needs to be enabled before you see it in the GUI This blog post gives a quick overview of what is needed to use it.   Step 1: Enable the extension in your Azure Account #Add & Select Account Add-AzureAccount Switch-AzureMode -Name […]

Category: Powershell, Scripting  |  2 Comments