Skip to content

The Hybrid Apps

Tips, rants, and stuff about tech

Powershell

2012 R2 2016 Hyper-V Powershell Quick Tips SCVMM Windows Server

Unable to delete duplicate cluster resource for Hyper-V VM

Daniel Apps

Quick tip: You find yourself with duplicate HA roles for a virtual machine and you’re unable delete the problematic resource… Symptoms: Duplicate cluster roles for a virtual machine. When attempting to delete, you get the error: Error code: 0x8007012f The file cannot […]

Read More
2016 Azure Pack Hyper-V Powershell Quick Tips SCVMM

SMA Runbook to set VM custom property… (or run PS script)

Daniel Apps

A word… Having worked with many clients over the years, the commonality between many of them an under-utilization of automation. Even the biggest of Microsoft shops fall short when it comes to automation, regularly being confused about the options they have and […]

Read More
Azure Powershell Quick Tips Windows Server

Quick tip: Add second NIC to ARM VM using PowerShell

Daniel Apps

  This is one I use regularly, so thought it might come in handy for you.. Assumption here is you are connected via PowerShell to your intended subscription..   A few key points: The VM will need to be stopped to execute […]

Read More
2016 Powershell Quick Tips Windows Server

Export DHCP and import Reverse DNS zones using PowerShell

Daniel Apps

  Had a fun one for a client recently whereby they were standing up some new DNS servers for a segment of their network. The forward lookup zones were very easy, import csv and PowerShell them in without much fuss at all.. […]

Read More
Azure Pack Hyper-V Powershell Quick Tips SCVMM Windows Server

SMA Runbook: SCVMM Logical Networks into HP OneView

Daniel Apps

This SMA Runbook will add any new or missing logical network definitions (i.e. VLAN’s) in SCVMM and to HP OneView appliance. As well as having a “working SMA deployment”, the prerequisites for this Runbook are 5 SMA Variables (Assets) which are: VMMServer […]

Read More
Azure Pack Powershell Quick Tips SCVMM

Add networks to HP OneView 3.00 using REST API via PowerShell

Daniel Apps

  I recently had the task of creating a PowerShell script to call REST API for adding Networks to an uplink set in HP OneView.   A quick overview of the environment. Our enclosures have 4x FlexFabrics, 2 used to plumb an […]

Read More
Powershell Quick Tips SCOM

Disable all alerts for a SCOM management pack using PowerShell

Daniel Apps

So use this wisely… This script will use Out-Gridview to prompt the operator for the management pack to disable the alerts for and the override management pack to save those overrides in. Enjoy! Dan First, the script to do this for all […]

Read More
Powershell Quick Tips SCOM

Create empty overrides Management Pack for SCOM via PowerShell

Daniel Apps

Along the same line as this post, the below will create an empty overrides management pack based on a source management pack and client number These are meant for the SCOM operators to use for consistent management pack naming. Enjoy Dan! $ManagementServer […]

Read More
Powershell Quick Tips SCOM

Create empty custom Management Pack from SCOM via PowerShell

Daniel Apps

Found this one in my toolkit recently and thought I’d share. It’s a little old so the code could do with some optimizing.. What it does: Prompts the script runner for a client number and then asks them to confirm the name […]

Read More
2012 R2 2016 Azure Pack Hyper-V Powershell Quick Tips SCVMM Windows Server

SCVMM and Datastores

Daniel Apps

Was cleaning out some old PS scripts recently and found this one in my toolkit. This one will appease some of those out there who came to Hyper-V from another virtualization technology and are familiar with the term datastore… We use SOFS storage so our […]

Read More

Posts pagination

1 2 3 4 5

The opinions expressed on this site are my own and do not reflect the views of my employer...

Powered by RS WP THEMES