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 VM paths are all SMB shares but I’ve
Read moreCategory: Quick Tips
Create empty Management Pack from SCOM via PowerShell
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 for new management pack. If the operator types
Read moreUpdating uri’s for HA WAP deployment via PowerShell
Another quick one, just to share…. 🙂 For a HA WAP deployment you will need to update each service of the pertinent url to ensure they are using the NLB endpoint rather than going direct to one of the servers.. This is one that catches a few people out when
Read moreApplying updates (cab & msu) by batch file…
Another one from my toolkit.. Basically run this batch file from a folder with the required update files and it will install them all. Once it is finished it will prompt for any input to restart the server. Enjoy! Dan @ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION FOR /R “%~dp0” %%A IN
Read moreSCVMM DataSize Property
Quick Tip!! So I was asked to create a custom property that gives a quick overview of the total size for the virtual disks on a VM So, leveraging of my DataStore script, I came up with the below.. Enjoy Note: This assumes you have created your custom property already
Read morePowerShell Tools – Create an ISO
Brilliant little tool Hrisan Dzhankardashliyski at Powershell.com http://powershell.com/cs/media/p/49052.aspx Edit: updated the script block to enable copy & paste 😀 # Author: Hrisan Dzhankardashliyski # Date: 20/05/2015 # Inspiration from # # http://blogs.msdn.com/b/opticalstorage/archive/2010/08/13/writing-optical-discs-using-imapi-2-in-powershell.aspx</a> # # and # # http://tools.start-automating.com/Install-ExportISOCommand/</a> # # with help from # # http://stackoverflow.com/a/9802807/223837</a> $InputFolder
Read moreQuick migrate multiple VM’s using PowerShell
As users of System Center Virtual Machine Manager would know, trying to quickly live migrate multiple VM’s can be a slow and tedious task. Whilst I always recommend to user of VMM to use the Migrate Virtual Machine function or the Start Maintenance Mode options, sometimes I need to react
Read moreInstall Windows Features in Bulk with PowerShell
Quick Tip: Install Windows Features with PowerShell in bulk Using my current favourite PowerShell feature, Out-GridView, we can easily and quickly install windows features with a little gui.. The command: Get-WindowsFeature | Out-GridView –passthru | Install-WindowsFeature You will get an ogv window with the ability to select items to
Read moreSet Agent Proxy Default setting – SCOM 2012 R2
Run this on any server that has the SCOM Console installed. add-pssnapin “Microsoft.EnterpriseManagement.OperationsManager.Client”; new-managementGroupConnection -ConnectionString:scomserver.domain.com; set-location “OperationsManagerMonitoring::”; Set-DefaultSetting -Name HealthService\ProxyingEnabled -Value True Totally stole this from the SCOM aficionado – Kevin Holman. His post is here Cheers’ Dan
Read moreWindows Azure Pack – change web sites default domain – Web Sites v2 update rollup 4
I recently had a POC WAP environment where the client wanted the web sites default domain changed. Ordinarily you can’t do this through the web ui nor is it recommended.. But that does not mean it’s not possible.. As the title suggests, this change applies to Windows Azure Pack Web
Read more