Secure resources in your Azure subscription by simple Powershell script

Today I want to tell you a little bit about Azure locks. Frequent problem which I observed in some of the organizations is unexpected removal of resources. Situation is always the same, user created some test resource group and another user remove this resource group. Explanation is always similar to “I thought that is not used anylonger”. Locks can help with preventing this kind of situation. There are two types …

How to put servers in SCOM Maintenance Mode?

As some of you already know SCOM 2016 finally have a new feature called – Maintenance Schedules. It allows us to plan Maintenance Mode for several computer objects using GUI: For those who didn’t migrate yet their SCOM infrastructures to 2016 version it might be hard to schedule maintenance mode during planned activities like weekend patching. I also had this problem so I developed a script and added it to …

Powershell and Azure – how to begin?

I want to share with you my beginner experience with Azure Powershell module. Microsoft Azure is one of the most popular public cloud provider in the world. Platform is available in 38 regions ( and still growing). For those who didn’t check yet this I strongly recommend Azure docs site where all documentation reside. Azure Powershell is divided into two models. ARM – Azure Resource Manager (for more read about …

How to check SCOM Maintenance Mode history?

In this article I would like to show you quick and easy way to get detailed information about last SCOM maintenance mode. To gather SCOM MM history we have to use Operations Manager PowerShell cmdlets available here. After providing server name script will gather the following information: – Start Time – End Time – Scheduled End Time – User – Reason – Management Group – Comments In our other article you …

Testing connection to secure channel ( Test-NetConnection )

I recently worked on script which gather all needed information for basic DC troubleshooting. One of the steps is to test netconnection to secure channel from affected Domain Controller on following ports: 88, 135, 139, 389, 464, 636, 3268, 3269. First thing is to find out which secure channel is currently set on this DC. To do this I used the following nltest command: nltest.exe /sc_query:yourdomain.com PS C:\windows\system32> nltest.exe /sc_query:yourdomain.com …