Category Archives: Scripting

Basic RDS 2012 R2 Shadowing Console

Whereas older versions of Windows had the tsadmin.exe utility, Server 2012 R2 doesn’t have anything equivalent. Helpdesk staff need a simple, easy to manage and configure console to allow them to shadow Remote Desktop users. Luckily this is pretty easy to achieve … Continue reading

Rate this:

Posted in PowerShell, Remote Desktop, Scripting | Tagged , , , , , , , , , , | 5 Comments

Browse for and display a PowerShell Clixml file in a GridView window

I’ve been using Out-GridView a lot recently, I seem to have a lot of uses for it. One of the things I’m displaying is an array of custom objects. Sometimes the script that generates this data takes a while to … Continue reading

Rate this:

Posted in PowerShell, Scripting | Tagged , , , , , | 1 Comment

Find vSphere VM locations: Folder, vApp and Resource Pool

The vSphere client doesn’t seem to give you a nice overview where you can see all the location data about your virtual machines. You can see the Folder and vApp by expanding all the branches in the VMs & Templates view, … Continue reading

Rate this:

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

Search for VMware RDMs

A storage admin recently asked me if a couple of LUNs were still in use. They had very little info about them, but knew they were presented to the vSphere hosts. So I wrote a quick script to find all … Continue reading

Rate this:

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

Logon scripts do not run at logon – Server 2012 R2

Another genius bit of fiddling by Microsoft means that on Server 2012 R2 and Windows 8.1, logon scripts no longer run as part of the logon process. This had me totally foxed for hours. I have my logon script configured … Continue reading

Rate this:

Posted in Scripting, Windows | Tagged , , , , , , , | 28 Comments

Script comparison: CMD, VBScript, Powershell

This was going to be a short scripting exercise for a new member of staff, but has been ditched due to time constraints. I’d written some sample scripts to see how long it’d take, so thought I’d post them as … Continue reading

Rate this:

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

PowerShell: Parallel ping test with CSV result files

I’ve been experimenting with parallel workflows in PowerShell and this seemed like a good thing to try and do with it. No guarantees that this script is the best, but it does work. Give it a list of computers to test … Continue reading

Rate this:

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

PowerShell: Mounting and dismounting ISO images on Windows Server 2012 and Windows 8

Had need to do this recently, and as per usual with powershell, it was kind of easy, but there were a few fiddly bits that don’t appear to have been thought through by the designers. Note that as the title of … Continue reading

Rate this:

Posted in PowerShell, Scripting, Windows | Tagged , , , , , , , , , , , | 6 Comments

Getting PowerShell scripts to run with no prompts

I am currently experimenting with Windows Server 2012, System Center Virtual Machine Manager 2012 SP1, and automation of various processes related to creating/building Server 2012 virtual machines. I have a script that will create a new Server 2012 VM, customise … Continue reading

Rate this:

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

Autologon after creating virtual machine from template with VMM 2012 SP1 beta

I’ve been having a fun time trying to get System Center Virtual Machine Manager 2012 SP1 beta to do things. It’s been even more fun when I’ve been trying via the delightful PowerShell – I want to get to a point … Continue reading

Rate this:

Posted in PowerShell, Scripting, Windows | Tagged , , , , , , , , , , , | 4 Comments