Home » Scripting »

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

PowerShell: LEAP Motion PowerShell Lottery Script @ Danish PowerShell User Group

In our geek club aka The Danish PowerShell user group, we always do a lottery in the end, for books or similar. To draw the correct winner we have been using a script that I have developed. I have for a long time, promised to release the script so that other user groups or other […]

Category: Powershell, Scripting  |  Comment

Specify a Runas Account for a monitor

If you need to individualize a monitor to run with a specific Account in SCOM, you could do it like this Powershell sample. Before importing the Managementpack please download and install the SamplePowershellMonitorWizardMP.zip, this is a really good one which easily take care of implementing Powershell script directly in the console. https://gallery.technet.microsoft.com/Sample-Management-Pack-17b76379 After this import […]

Category: Management Packs, Operations Manager 2012 R2, Powershell, SCOM  |  1 Comment

Create Status Filter Rules with PowerShell

Here is a quick example of creating a Status Filter Rule in Configuration Manager with PowerShell #Example 1 New-CMStatusFilterRule -SiteCode PS1 -Name ‘Remove PC from OSD Collection’ -MessageId 11144 -MessageType Milestone ` -RunProgram $True -ProgramPath ‘C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -file D:\Scripts\Remove-CMDeviceFromCollection.ps1 -CollectionName "OSD Windows 8 Standard" -ComputerName %msgsys’ #Example 2 $Parameters = @{ SiteCode = ‘PS1’ Name = […]

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