Tag Archives: add

PowerShell script to update RDMS server list

Remote Desktop Services in Windows Server 2012 is great in many ways, but it has some serious flaws. One of these is the pretty terrible so-called Remote Desktop Management Server concept. This is actually just some functionality built into Server … Continue reading

Rate this:

Posted in PowerShell, Remote Desktop, Windows | Tagged , , , , , , , , , , , , , , , , | 2 Comments

PowerShell: Add users to Active Directory

Quickie script to add a load of users to Active Directory. This was to generate a set of test users, so the account settings are rather scarce. You have to convert the password text string to data type System.Security.SecureString, which I’m … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , , , , , | Leave a comment

PowerShell: Working with XML

PowerShell seems to have two built-in ways of dealing with XML: Clixml The first is to use the Export-Clixml and Import-Clixml cmdlets. These are an easy way to save and load PowerShell objects for later use. For example, if you have … Continue reading

Rate this:

Posted in PowerShell, Windows | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments

VMM: The version of virtualization software or the VMM agent is unsupported

I have been adding a Dell VRTX as a Hyper-V 2012 R2 cluster to my System Center Virtual Machine Manager 2012 R2 system. I have two nodes M620 nodes and some shared storage in the VRTX chassis. I created the cluster, … Continue reading

Rate this:

Posted in Hyper-V, VMM 2012 R2 | Tagged , , , , , , , , , , , , , , | Leave a comment

Add and remove VMware NFS datastores via PowerCLI

Been experimenting with these recently, and they have to be added to or removed from each host individually, which is tedious via the GUI. Easy via PowerShell/PowerCLI though. Add: $hosts = Get-VMHost -Location “RCM” foreach($VMHost in $hosts){ Write-Host $VMHost.Name New-Datastore -VMHost … Continue reading

Rate this:

Posted in PowerShell, vSphere | Tagged , , , , , , , , | Leave a comment

Powershell function to pin and unpin from Windows Taskbar

Wrote this to make it easy to add and remove pinned items from the taskbar. Code function Pin-Taskbar([string]$Item = “”,[string]$Action = “”){ if($Item -eq “”){ Write-Error -Message “You need to specify an item” -ErrorAction Stop } if($Action -eq “”){ Write-Error … Continue reading

Rate this:

Posted in Applications, PowerShell, Scripting, Windows | Tagged , , , , , , , | 3 Comments

VMM 2012 SP1: Create Virtual Switch fails with Unknown error 0x80041008

This seems to be because you’re trying to create a Virtual Switch that uses teamed physical NICs that are already part of a Windows Server 2012 Team. This might be because you deleted on old Virtual Switch via Hyper-V Manager’s Virtual Switch … Continue reading

Rate this:

Posted in Hyper-V, Windows | Tagged , , , , , , , , , , , , | 1 Comment