Powershell
-
Arc resource bridge via powershell
⌠Quick tip - Arc resource bridge via powershell - working for AS HCI 22H2 Setup your powershell environment Install-PackageProvider -Name NuGet -Force Install-Module-Name PowershellGet -Force -Confirm:$false -SkipPublisherCheck Install-Module -Name Moc -Repository PSGallery -AcceptLicense -Force Initialize-MocNode Install-Module -Name ArcHci -Force
-Confirm:$false -SkipPublisherCheck -AcceptLicense Define variables for the MOC: $vswitchName="ConvergedSwitch(compute)" $controlPlaneIP="10.10.0.37" $csv_path="C:\ClusterStorage\Volume01\Arc" $vlanID="57" #(Optional) $VMIP_1="10.10.0.38" #(required only for static IP configurations) $VMIP_2="10.10.0.39" #(required only for static IP configurations) $DNSServers=@("10. -
Rename VMs in cluster to match SCVMM naming
Another one from the vaults: If youâve been using Hyper-V clusters with SCVMM, youâll probably notice the cluster resources named a specific way when the VM role is made highly available with SCVMM. example shown below: Now if youâre a bit of a nutter like me, and canât stand the cluster roles that donât have the âSCVMM Resourcesâ naming convention, then the below will update the names to match the SCVMM convention. -
Adventures of a Cloud Operator: SQL Resource Provider on Azure Stack â Step 1: Deployment
This is for SQL Resource Provider (RP) 1.1.24.0 which is now superseded by 1.1.30.0 literally the next day after I executed the install. The only reason for posting this blog is to give a baseline for my update SQL RP post. The exact same install process will work for any newer Azure Stack deployments just skip the section where I rollback the PowerShell module version This post will cover the deployment of the SQL RP with other posts in the series covering the various other steps and considerations -
Adventures of a Cloud Operator: Highly Available App Service 1.4 on Azure Stack - Step 2: Deployment
Youâre a cloud operator for an Azure Stack Integrated system and for whatever reason you have the task of deploying the App Services Resource provider⌠In this blog series, Iâm going to take you through the considerations and deployment process of the App Services resource provider on an Azure Stack Integrated System. This should work on an ASDK but youâre probably going to make life tough for your single server instance. -
Adventures of a Cloud Operator: Setup your Cloud Operator environment - Quick Tip!
Quick tip for all potential Azure Stack Cloud Operators As youâd be aware, essentially the majority of the Azure Stack extended setup requires PowerShell. Not only does managing Azure Stack require PowerShell, it requires specific modules, tools and PowerShell profiles⌠Oh, did I mention Azure Stack management requires PowerShell? This is typically fine, but if youâre anything like me and tend to use your computer (desktop/laptop etc) for many different functions, managing PowerShell profiles and having them all aligned can be a bit of a pain. -
Adventures of a Cloud Operator: Registering Azure Stack as CSP
So, if youâve found your way here you have got yourself an Azure Stack Integrated System and need to register it as a Cloud Solution Provider (CSP). Before we registered we needed to identify the type of subscription we want to use. The choice is a CSP or APSS subscription. This deployment is being registered directly to my company as the CSP reseller so a CSP subscription was the preferred choice. -
SCVMM custom VM properties extended
One day I was working on our fabric and thought it would be nice to be able see which Logical Switch each VM was connected to. So I started to extend my good old datastores script and before I knew it, it had morphed out of control to include Logical Switch, Logical Networks, VM Networks and NIC count. In most enterprise environments this probably wouldnât really add much value, but in the world of multi-tenancy with many shared or customer dedicated clusters an networks, having this kind of information easily available has itâs advantages. -
Installing Azure Site Recovery Agent (i.e. running an exe/script) on a Hyper-V host using SCVMM
From time to time I have the requirement to deploy/update a basic app or run a script on my Hyper-V hosts. This is relatively simple using remote PS session or if you have SCCM managing your fleet. But sometimes you need to just push something out fast and luckily SCVMM can assist. My use case is to run an update for the Microsoft Site Recovery Services Agent on my hosts. I would do this periodically. -
Another S2D build blog... with a SCVMM twist (public draft)
WORK IN PROGRESS Editors Note: this is still a working document as my priorities have to be on other work right now, but in the interest of sharing I have made this available now⌠If you find any issues or errors let me know - thanks for reading! There are many S2D build blogs out there and I donât want to just add to the list but given Iâm doing this build with SCVMM and SCOM integration I thought Iâd run through the additional steps. -
Azure Application Gateway with WAP and HTTPS using PowerShell
So over the last year or so Iâve had a lot of fun extending client environments to Azure. One of the methods Iâve used has been leveraging Azure Application Gateway (AAG) with Web Application Firewall (WAF) to protect these services. The AAGâs with WAF have been a very fast and cost effective way for clients to deploy fast and protected services to Azure without the requirement for expensive 3rd-party WAF appliance licenses. -
Unable to delete duplicate cluster resource for Hyper-V VM
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 be opened because it is in the process of being deleted. Firstly, why does this happen? This can happen if an admin uses Failover Cluster Manager (even after theyâve been specifically instructed many times not too) to enable HA for a VM, then goes to SCVMM and uses the Migrate Virtual Machine and enable HA. -
SMA Runbook to set VM custom property... (or run PS script)
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 often fear of introducing a new tool to their organisation. As a Hyper-V data center operator, I leverage automation as often as I can. This has been a concept we have tried to foster since the days of having scores of scripts triggered from scheduled tasks⌠-
Quick tip: Add second NIC to ARM VM using PowerShell
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 Check the Azure VM sizing to see how many NICs you can attach I have a pre-created Network Interface with my desired settings #Using OGV to target your objects $RG = Get-AzureRmResourceGroup | ogv -PassThru $NIC = Get-AzureRmNetworkInterface | ogv -PassThru $VM = Get-AzureRmVm | ogv -PassThru #The actual adding of the NIC to the VM $VM = Add-AzureRmVMNetworkInterface -VM $VM -Id $NIC. -
Export DHCP and import Reverse DNS zones using PowerShell
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.. Next came the Reverse DNS Zones. Now letâs just say that their documentation wasnât as up-to-date as it could have been, so the fun began when trying to go about importing them without having a reliable source of truth to go by. -
SMA Runbook: SCVMM Logical Networks into HP OneView
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 HPOneViewAppliance HPOneViewUsername HPOneViewPassword HPOneViewLoginDomain We use Active Directory to authenticate to our OneView. If you use local credentials you can remove this from the Runbook or set the variable to âLocalâ. -
Expose the Azure Stack TP3 Portal through NAT
Another quick one! :D For those playing with the Azure Stack TP3 POC deployment that want to make the portal available without having to logon to the console VM. This extends on from the work Ruud Borst did for TP2.. I suggest you read the full article which can be found here: https://azurestack.blog/2016/12/expose-portal-azurestack-through-nat/ Same rules apply around the certificate etc. Let me know if I have missed any ports. Enjoy! Dan -
Add networks to HP OneView 3.00 using REST API via PowerShell
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 access port to the LOMs and 2 used as trunks to create the Virtual Switch teams. The vSwitch uplink sets are labelled Switch_A and Switch_B Each Vlan we connect is plumbed to each switch and named accordingly. -
Create empty custom 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 âyesâ (highly sophisticated coding) then a new management pack will be created with the desired naming convention Our naming convention in this particular environment is to have all 3 client numbers at the beginning of the management pack name. -
Create empty overrides Management Pack for SCOM via PowerShell
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 = "SCOM01" $orgmanagementpackname = read-host "Enter Search Criteria" ### # Find the managementpacks which fit the filter documented in $orgmanagementpackname ### $managementpackslist = Get-SCOMManagementPack -ComputerName $ManagementServer |where{$.DisplayName -like "$orgManagementPackName" -and $. -
Disable all alerts for a SCOM management pack using PowerShell
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 monitors: Import-module operationsmanager $SCOMServer = "<SCOMServerName>" New-SCOMManagementGroupConnection -ComputerName $SCOMServer $MPSource = get-scommanagementpack -ComputerName $SCOMServer | where {$.Sealed -eq $True} | Out-GridView -Title "Select a single SOURCE Management Pack" -PassThru $MPOverride = get-scommanagementpack -ComputerName $SCOMServer | where {$. -
SCVMM and Datastores
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 included the CSV path split for those still running CSVâs to the nodes. What this gives you is a quick view into which storage device each VM lives on: -
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 âyesâ (highly sophisticated coding) then a new management pack will be created with the desired naming convention Our naming convention in this particular environment is to have all 3 client numbers at the beginning of the management pack name. -
Updating 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 deploying a HA WAP environment. Bitâs of the below are scribed from other sources (they escape me right now so apologies for the lack of a references) but found that they didnât work. -
Azure Connector for WAP(Pheonix) fails to create VM âError in CheckCheckVmCreation()â
Another quick one (becoming a habit..) In deploying and testing Azure Connector for Windows Azure Pack found here, deploying a virtual machine can sometimes fail with an obscure status message of: âError in CheckCheckVmCreation()â This is because the parameters of the resource creation are rejected. In the below example, I faced this because my lab password did not meet the required complexities. Running the the process using the same account in Azure, I am faced with a minimum password complexity error -
NVGRE Rebuild â Warning 26926
Had a quirky one recently where by a client was rebuilding a NVGRE gateway (as per this post) failed with the below warning. Warning (26926) Unable to set up Remote Access server to support multi-tenancy mode. (Remote Access server and the host are not configured for multi-tenancy. Fix the issue in Remote Access server and retry the operation.). Recommended Action Fix the issue in Remote Access server and retry the operation. -
SCVMM 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 $VMS = Get-scvirtualmachine Foreach ($VM in $VMS) { $DZ = $null $dzprop = Get-SCCustomProperty -Name Datasize $DataSize = Get-SCCustomPropertyValue -CustomProperty $dzprop -InputObject $VM IF ($DataSize. -
Hyper-V 2012 R2 NVGRE Gateways Rebuild
Fast publish⌠will revisit later Scenario: Existing NVGRE gateways manual deployed. Working fine for ages. NAT resources failed to come online HyperV Network Virtualization Gateway role failed FOCM below Cluster resource xxxxxxxxxxxxxxxxxx of type âNatâ in clustered role âHyperV Network Virtualization Gatewayâ failed The Windows NAT Driver service failed to start due to the following error: The property set specified does not exist on the object So, I decided I wanted to rebuild my gateways and reconnect them⌠but how? -
PowerShell 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 :D
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 = "" function WriteIStreamToFile([__ComObject] $istream, [string] $fileName) { # NOTE: We cannot use [System.Runtime.InteropServices.ComTypes.IStream], # since PowerShell apparently cannot convert an IStream COM object to this # Powershell type.
-
WAP - Deploying a VM Role, some VM's prompt for product key
Simple one that new WAP users often miss when deploying VHDâs for VM Roles. When deploying a VM role with multiple instances, some instances get stuck during deployment with the VM waiting for a product key to be entered. Although the solution is clearly discussed here on TechNet I find that new WAP admins typically overlook this setting when importing a new vhd/vhdx template and loose a bit of time troubleshooting. -
Quick 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 quickly and the normal VMM way isnât fast enough. This is where PowerShell comes in⌠$VMS = Get-SCVirtualMachine | ogv -passthru $VMHost = Get-SCVMHost | ogv -passthru ForEach ($VM in $VMS) { Move-SCVirtualMachine -VM $VM -VMHost $VMHost -HighlyAvailable $true -RunAsynchronously -UseDiffDiskOptimization } Hope this helps! -
Migrate Logical Networks from VMM to VMM with PowerShell - The Export
Fast publish! Had to migrate logical networks from an existing VMM 2012 instance into a new shiny VMM 2012 R2 deployment. This is the export from the existing VMM. The import script will follow shortly: Import-Module virtualmachinemanager # all Logical network definitions $LogicalNetsdef = Get-SCLogicalNetworkDefinition Foreach ($def in $LogicalNetsdef){ foreach ($SubnetVlan in $def.SubnetVLans){ $data=[ordered]@{ LogicalNetworkName = $def.LogicalNetwork.Name Name=$def.Name Subnet=$SubnetVlan.Subnet VlanID=$SubnetVlan.VLanID } $Obj=New-Object -TypeName PSObject -Property $data Write-Output $Obj } } Enjoy! -
Install 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 âpassthruâ Select a single or multiple item (via ctrl + click) and hit OK. When done, all your new features will be installed. -
Deleting Virtual Network fails due to assigned IP address - SCVMM
Had a request today where a tenant was trying to delete a virtual network but they received an error saying there were dependent IP addresses but they have no IP addresses listed in the network. Using my current favourite PowerShell feature, Out-GridView, we can quickly script the revocation of the naughty IP address.. Note: Change the VMM variable to suit your environment So I ran the below to find the IP. -
Adding existing VMâs to WAP Subscription using PowerShell
Edit: added Cloud parameter to the script. Deploying WAP for clients, they start creating new clouds, plans and subscriptions which is great!! But how do they add existing VMâs to new users in WAP? EasyâŚ.. you guessed itâŚ. PowerShell! So I canât take the credit here, my sources are found here & here. Ok, thatâs out of the way.. here it is⌠Requirements: You must have an existing tenant account That tenant must have an existing VM (I usually just kick off a quick VM deployment in WAP and delete it once done) I like to use Out-GridView to keep the script portable. -
Change default PHP settings in Windows Azure Pack (IIS WebFarm)
Had a user try to upload a theme to a Wordpress site they had published using Windows Azure Pack but were getting a file exceeded size limit error as exampled below. âThe uploaded file exceeds the upload_max_filesize directive in php.iniâ Typically you would just go into the php.ini located on the local webserver but how do I do this in a WAP Websites WebFarm? PowerShell of course!!! Ok, I do this from the websites controller server: -
Migrate multiple VMâs from one Hyper-V cluster to another Hyper-V cluster with different Logical Switch using PowerShell.
Another fast publish! (I really should get back and clean these upâŚ) Recently upgraded one of our Hyper-V clusters and had to migrate workloads to a new Hyper-V cluster. The naming conventions of our logical switches etc were different so when migrating a VM using Hyper-V manager we were prompted to choose the new logical switch. Handling this via PowerShell in isolation is simple enough using this script but I wanted to do a whole stack of VMâs at once. -
Import subscribers into SCOM via PowerShell
Quick post A client had an existing monitoring system and exported the subscriber address list to CSV. They wanted some names updated to reflect the DC and existing name, also some subscribers had multiple addresses in the form of an array so I had to get a little creative with PowerShell. The script I used is below: $File = "C:\Temp\import.csv" $Subscribers = Import-CSV $file $Scomserver = "scomserver" ForEach ($Subscriber in $Subscribers) { $SubscriberName = $Subscriber. -
VM Template network settings for WAP
Quick scribble: add images and detail 3 steps Template > NIC > Set Connected > Set static IP & Static MAC > OK Template > NIC > Set No Connected > Confirm static IP & Static MAC > OK Template > NIC > Set Connected > VM Network None > Confirm static IP & Static MAC > OK Do in each template AND hardware profile Deploying in WAP should work with or without a virtual network. -
SCVMM 2012 R2 - Refresh Host Cluster - Error (25122)
Fast publish (this is becoming a common phrase) so be kind⌠When refreshing host cluster in VMM, for some reason we started to see the below error in VMM: Error (25122) The specified address ((AllocatedIPAddressData#e449) { id = 6ea8ddba-b8a7-43f6-856e-0a4d35076681, LastUpdatedTimestamp = 3/24/2015 5:55:17 AM }) is already allocated by the pool (IPPool-LNet-Mgmt). This address should be assigned to only a single entity. Recommended Action Resolve to which entity this address is allocated. -
Live Migrating VMâs with Powershell from VMM to VMM with different Logical Switch
Another quick & dirty fast publish: When live migrating a VM from one Hyper-V to another Hyper-V when the virtual switch names are different, using the GUI you get a prompt to select the swtich on the target host. Using Powershell âMove-VMâ fails and there is no option to specify the target switch name. A way around this is using the Compare-VM cmdlet. Below is part of a quick and dirty script that achieved my goal. -
Setting the URLâs for WAP Admin & Tenant sites with PowerShell using variables
Edit: have updated the script This is a PowerShell script I use as a template when building WAP instances. Essentially, either edit variables in the script or use the read-host option. I prefer the set variables but the read-host is handy⌠well, it was onceâŚ
Collect URLS & Ports $URL = read-host "Domain Name?" Write-Host -ForegroundColor Yellow "Specify hostnames for each service" $TenantSite = read-host "Tenant host? (i.e. wap)" $TenantAuth = read-host "TenantAuth host?
-
Windows Azure Pack - URLs & Ports
This is for editing the Windows Azure Pack URLâs and Ports. Works as of WAP for Server 2012 R2 UR5. Modify your variables accordingly. I have each WAP site on an individual server for a scaled deployment so this sets all the sites to use the 443. #Set Variables $WAPDB = "WAPDB" $AdminSite = "wapadmin.domain.com" $AdminAuth = "wapauth.domain.com" $Tenant = "wap.domain.com" $TenantAuth = "waplogon.domain.com" #Run on Tenant Site Import-Module -Name MgmtSvcConfig Set-MgmtSvcFqdn -Namespace "TenantSite" -FullyQualifiedDomainName $Tenant -Port 443 -Server $WAPDB #Run on Tenant Auth Site Set-MgmtSvcFqdn -Namespace "AuthSite" âFullyQualifiedDomainName $TenantAuth -Port 443 -Server $WAPDB $ConnectionString = "Data Source=$WAPDB;Initial Catalog=Microsoft. -
Set 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 -
Hyper-V - Create VM powershell script
Hi, Powershell script to create a VM after prompting the user for various settings. The script then attaches an ISO which is a boot media for an MDT server that is built tp push a particular task sequence resulting in a failry automated VM deployment. I normally do this type of stuff with VMM etc but the client only has Hyper-V and wanted it automated as much as possible. $VMName = Read-Host "Enter VM Name (Press [Enter] to choose Server01)" if ($VMName -eq "") { $VMName = "Server01" } ; if ($VMName -eq $NULL) { $VMName = "Server01" } $StartupMem = Read-Host "Enter VM Startup Memory in GB's (Press [Enter] to choose 1GB)" if ($StartupMem -eq "") { $StartupMem = 1024MB } ; if ($StartupMem -eq $NULL) { $StartupMem = 1024MB } if ($StartupMem -ne 1024MB) { $StartupMem = [int]$StartupMem * 1073741824 } $MinimumMem = Read-Host "Enter VM Minimum Memory in GB's (Press [Enter] to choose 512MB)" if ($MinimumMem -eq "") { $MinimumMem = 512MB } ; if ($MinimumMem -eq $NULL) { $MinimumMem = 512MB } if ($MinimumMem -ne "512MB") { $MinimumMem = [int]$MinimumMem * 1073741824 } $MaximumMem = Read-Host "Enter VM Maximum Memory in GB's (Press [Enter] to choose 4GB)" if ($MaximumMem -eq "") { $MaximumMem = 4096MB } ; if ($MaximumMem -eq $NULL) { $MaximumMem = 4096MB } if ($MaximumMem -ne 4096MB) { $MaximumMem = [int]$MaximumMem * 1073741824 } do { $Storage = Read-Host "Which storage do you want, SATA 'D' or SSD 'H' (Press [Enter] to choose 'D')" if ($Storage -eq "") { $Storage = "D" } ; if ($Storage -eq $NULL) { $Storage = "D" } if (($Storage -ne "D") -and ($Storage -ne "H")) { Write-Host "Incorrect valude entered, please enter 'D' or 'H'" } } until ($Storage -eq "D" -or $storage -eq "H") $VDisk1 = Read-Host "Enter VM System (C:) Hard Drive in GB's (Press [Enter] to choose 60GB)" if ($VDisk1 -eq "") { $VDisk1 = 60GB } ; if ($VDisk1 -eq $NULL) { $VDisk1 = 60GB } if ($VDisk1 -ne 60GB) { $VDisk1 = [int]$VDisk1 * 1073741824 } $VDisk2 = Read-Host "Enter VM Data (D:) Hard Drive in GB's (Press [Enter] to choose 60GB)" if ($VDisk2 -eq "") { $VDisk2 = 60GB } ; if ($VDisk2 -eq $NULL) { $VDisk2 = 60GB } if ($VDisk2 -ne 60GB) { $VDisk2 = [int]$VDisk2 * 1073741824 } $VMSwitches = @(get-vmswitch) #clear variable for testing $VMSwitch = "" $VMNetwork = "" do { For ($i = 0; $i -le $VMSwitches. -
SCVMM 2012 R2 - Refresh Host Cluster - Error (2912)
- Fast publish post - be nice.. In my Cloud OS demonstration environment recently I had a host in the cluster reporting âNeeds Attentionâ status and refreshing the host cluster failed with âerror 2912â. The Hyper-V Host was in âNeeds Attentionâ status and performing any functions from VMM were failing. Job summary example below: _Error (2912) An internal error has occurred trying to contact the server.domain.net server: : . WinRM: URL: [http://server.
-
SCOM 2012 R2 - Moving the operationsmanager DB from SQL server to new SQL Cluster
Moving SCOM 2012 R2 operationsdatabase to SQL Cluster. Process derived from this TechNet article http://technet.microsoft.com/en-au/library/hh278848.aspx Quick overview of the environment Versioning of my environment: System Center Operations Manger 2012 R2 w/ Update Rollup 4 SQL Server 2012 SP1 CU8 Windows Server 2012 R2 Existing servers and role: OM01 - Management Server OM02 - Management Server OM03 - Management Server OMSDB\OMDB - Operations Database Server / SQL Server 2012 SP1 OMSDW\OMDW - Data Warehouse Server / SQL Server 2012 SP1 -
Windows 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 Sites Version 2 - Update Rollup 4. More info found here - http://support.microsoft.com/kb/2992029 Firstly, take a look at the config: -
SCOM 2012 R2 - Enable Agent Proxy
Just a quick note on how to enable agent proxy via PowerShell Assumptions in this scenario: SCOM 2012 R2 - UR3 Using Operations Manager Shell You want all Agents with proxy enabled Some basics: Get-SCOMAgent Letâs limit our scope.. Get-SCOMAgent | where {$.ProxyingEnabled -match $False} Letâs enable the proxy for all listed agents Get-SCOMAgent | where {$.ProxyingEnabled -match $False} | Enable-SCOMAgentProxy Check the Agents again.. Get-SCOMAgent | where {$_.ProxyingEnabled -match $False} -
Powershell script to set speaker volume
On a recent MDT project the client requested to finish all builds with volume set at 30%. Being committed to doing everything in Powershell, I jumped on the book of knowledge looking for some inspiration. As luck would have it, I found this response from knuckle-dragger that performed the complete task perfectly for me. Below is the PowerShell script that meets my clients âneedâ⌠Function Set-Speaker($Volume){ $wshShell = new-object -com wscript.