PowerCLI to display VM name and screen resolution
One-liner PowerCLI to output a list of machine names and screen resolutions.
One-liner PowerCLI to output a list of machine names and screen resolutions.
🏷️ vmware-horizon-view, powershell
I was at a training course last week and it was mentioned briefly on one of the slides that PCOIP session statistics were available via WMI. After a quick Google, I found MyVirtualCloud's page, which details the class, and property names.
🏷️ powershell
One of the great things about PowerShell is its ability to easily export objects to HTML, which - with a little CSS - makes it straightforward to create great-looking reports. But static lists of data aren't enough any more, the people demand interactivity.
🏷️ powershell, microsoft-windows
You've probably noticed that when you double-click on a PowerShell script, it is opened for editing rather than being run. This is useful from a security standpoint, and while administrators have no problem opening up the shell and running the script, you've probably made…
As we are constantly creating, moving, renaming and deleting machines, it's difficult enough to keep track of machines I have deployed myself; never mind keeping track of what the other team members are doing.
I haven't been posting too much here recently I'm afraid. A lot of the things that I'm currently working on are pretty specific to the environment here, and are not particularly useful (or indeed, interesting) to anyone else.
🏷️ powershell
We've had an ongoing problem with "Sequencing" machines for Microsoft Application Virtualisation (formerly SoftGrid). The virtual machine template is correctly set up with a secondary drive set to Q:\ (the drive letter is integral to the sequencing process). However, when the…
We can use PowerShell to search through the event logs of a machine object ($virtualMachine in the example below) for events which match a specific pattern - in this case powering off a machine. Once we have the event object, we can access the properties of the first object in…
As part of the migration I'm working on, we needed to add a whole bunch of Virtual Port Groups with associated VLANs to the servers. The following script could do this in a few minutes (although Host Profiles would accomplish much the same thing, we're not running Enterprise).
I love it when I have an idea in my head of a script I need to write, and then I run across one that does exactly what I need!