Jun 07 2017

VMM is unable to refresh Hyper-V hosts

Error (2916) VMM is unable to complete the request. The connection to the agent 'srvhv5.example.com' was lost. WinRM: URL: [http://srvhv5.example.com:5985], Verb: [ENUMERATE], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/standardcimv2/MSFT_NetAdapter], Filter: [] Unknown error (0x80338126)

I recently had to endure a painful issue with VMM and Hyper-V while working on a VMWare to Hyper-V migration project. First let me tell you about the architecture, 2 Hyper-V clusters made of Lenovo blade servers. Each cluster in its own enclosure. 1 VMM cluster with 2 nodes as VMs. One node on each …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/06/vmm-is-unable-to-refresh-hyper-v-hosts/

Feb 25 2017

Service Manager Complex Approvals Tutorial: Part 2 – Service Manager: Creating the Service Request

This is the second part of a 6-part post about creating a Service Request with complex approvals in Microsoft System Center Service Manager. The parts are as follows, Introduction. Service Manager: Creating the Service Request. (This Post!) Orchestrator: Check and update Service Request. Coming Soon! Orchestrator: Monitor Review Activity and Custom Approval. Coming Soon! Orchestrator: …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/02/service-manager-complex-approvals-tutorial-part-2-service-manager-creating-the-service-request/

Feb 06 2017

Orchestrator Runbook: Select Domain Controller with Minimum PS Sessions

Many of the Runbooks I have connect to domain controller to perform an activity using a PowerShell script, and usually this means multiple instance of the Runbook may be running at the same time. These Runbooks require the FQDN of the domain controller to work on. Two challenges lie there, Load balancing: I want to …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/02/orchestrator-runbook-select-domain-controller/

Jan 28 2017

Service Manager Complex Approvals Tutorial: Part 1 – Introduction

I have been playing around with Microsoft System Center Service Manager and Orchestrator lately. The two applications are always better together and you cannot really master one without the other. In this multi-part blog, I will share some of the stuff I learned during the past couple of months. In the form of a multi-part …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/01/service-manager-complex-approvals-tutorial-part-1-introduction/

Jan 11 2017

Updating SAP client logon configuration file

The SAP client supports several methods to detect the logon configuration file, this INI file contains information for the SAP client to connect to SAP servers. Normally the file is created in the users AppData folder during first start of the client. Or during setup you can configure a custom SAPLogon.ini file to be used …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/01/updating-sap-client-logon-configuration-file-2/

Nov 13 2015

Using Set-VMNetworkAdapterVlan with clustered VMs

I recently needed to assign VLANs to a group of virtual machines on a Hyper-V cluster, tried to use the Set-VMNetworkAdapterVlan  cmdlet directly only to find that it needs the current host of each VM to work, so here’s a small script to get it done. The script select only VMs where no VLAN is …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2015/11/using-set-vmnetworkadaptervlan-with-clustered-vms/

Sep 22 2015

Delete phantom records of an old domain controller from DNS

Sometimes after demoting a DC the NS records in DNS are kept! These records may cause issues if not deleted. Here’s a PowerShell three liner to remove the obsolete records from all zones, you need to change the server names according to your environment.  


Permanent link to this article: http://almoselhy.azurewebsites.net/2015/09/delete-phantom-records-of-an-old-domain-controller-from-dns/

Dec 21 2014

Compare contents of two folders using PowerShell Get-FileHash

I needed to check that two folders are identical using a hash algorithm. Luckily enough, PowerShell 4.0 came equipped with a new cmdlet, Get-FileHash. This easy command can produce a hash for any file using an array of different algorithms. One issue is when comparing with, Compare-Object, the difference in folder paths will be an …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2014/12/compare-contents-of-two-folders-using-powershell-get-filehash/

Nov 27 2014

Collect installed updates on many computers using PowerShell

I wanted to collect the currently installed updated on a group of servers using PowerShell. This can be more accurate that WSUS or SCCM reports since it depends on WIM to get the current data, not the last reported ones. The – very small – script gets the computer objects from active directory, then use …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2014/11/collect-installed-updates-on-many-computers-using-powershell/

Nov 18 2014

Header name in Exchange Transport Rules

If you need to create a new Transport Rule that checks the message header, either through Exchange Admin Center or Exchange Management Shell, you need to provide what is stated as Header Name in the GUI. After some looking around, I found that the header is actually the header field name. So for example, if you …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2014/11/header-name-in-exchange/

Older posts «