Some short PowerShell tips #4

Tip 5:​Try a container! As a followup on tip 4, you can also try (and of course even run in production) PowerShell (and PowerCLI) in a container with for example Docker! This allows you to investigate if PowerShell is something for you. If you're a long time PowerCLI user, grab that container too!Links:Official ​PowerShell container: ...
Continue reading
  71 Hits
  0 Comments
71 Hits
0 Comments

VMUG Advantage - cont.

Last week I decided to buy VMUG Advantage. Apparently, the post was picked up by Jochen Ramm. And as I replied: the onboarding was a smooth experience. But there is more!!!I posted VMUG Advantage so often, but maybe people believe more in the guys who really know what they are talking about ;-) https://t.co/wy3JcNWdAH @VMUG_RheinRuhr @GermanyV...
Continue reading
  1159 Hits
  1 Comment
1159 Hits
1 Comment

The query execution timed out (DatastorePropertyProvider)

In case of a host with a lot of snapshots or read-only enabled LUNs (which could be the case when you've got a host dedicated as standby host in DR site), mounting an existing datastore can be a challenge through the UI. The activity bar keeps running for minutes and then presents an error: The query execution timed out because of a back-end p...
Continue reading
  842 Hits
  0 Comments
842 Hits
0 Comments

Some short PowerShell tips #3

Tip 4: ​We left off with tip 3, using group-object. This tip is about the PowerShell version. Did you know every version of PowerShell gets lots of performance optimizations? So my tip for now: try out different PowerShell versions! At the time of writing, PowerShell 5.1 Desktop is installed on Windows 10, and the latest stable is 6.2.3 C...
Continue reading
  707 Hits
  0 Comments
707 Hits
0 Comments

VMUG Advantage

Today I decided to buy the VMUG Advantage Membership. The membership is around for a while now but for some reason; I never cared to take a good look at it. It provides some great resources and discounts, and since I plan to go to VMworld, get some certifications and play around in the homelab this year, I thought: why not... VM...
Continue reading
  759 Hits
  0 Comments
759 Hits
0 Comments

Some short PowerShell tips #2

Tip 3: Are you using Where-Object or if/else/elseif in a loop to filter out or to process whatever you need? Consider using: Group-Object.​ PS H:\> Get-Help Group-ObjectNAME Group-ObjectSYNTAX Group-Object [[-Property] <Object[]>] [-NoElement] [-AsHashTable] [-AsString] [-InputObject <psobject>] [-Culture <...
Continue reading
  824 Hits
  0 Comments
824 Hits
0 Comments

Some short Powershell tips #1

Tip 1: If you're in a folder (using your file explorer), and want to open a Powershell box there (or command box also works), type 'powershell.exe' in its path and the new window opens at that location. If you run PowerShell Core, you can also use 'pwsh' or if you want a command box window, use 'cmd'.Tip 2: Last few days I've been creatin...
Continue reading
  679 Hits
  1 Comment
679 Hits
1 Comment

ForEach vs Select-Object -ExpandProperty

Quite often I see scripts which use a ForEach loop to expand an array in an array and display that as a list. There is nothing wrong with that, however, another method is using 'Select-Object' with the 'ExpandProperty' option.To illustrate, here is an example: 'I want to have a list with cluster and their datastores, but every datastore should be o...
Continue reading
  2282 Hits
  0 Comments
Tags:
2282 Hits
0 Comments

Tricking the VM BIOS RTC to set a time

Remember this one?  You can select the VM BIOS RTC clock to a certain time!!! And that is cool because this is still 'supported' - or at least it's working! It took me some searching and some blog and forum posts are 12 years old! All you need to do is edit your VM's configuration and add the following lines:time.synchronize.con...
Continue reading
  1038 Hits
  0 Comments
1038 Hits
0 Comments

NLVMUG: Here I come!

Tomorrow (21-3-2019) a new NLVMUG event is starting. And I'm going!!! I'm really looking forward to this event: so many great sessions, great presenters, great sponsors and not so great venue (I think parking would get troublesome, however, there is a bus driving from a parking lot). I've been building my session list, check it out: ...
Continue reading
  2308 Hits
  0 Comments
2308 Hits
0 Comments

Solving PSOD 'Panic Requested by another PCPU'

I've been hunting down this issue for one of my clients. They have brand new Dell T440 servers (I've also seen this issue on brand new DELL T640 servers). Great gear - however, after running for a couple of weeks we got this PSOD on one of the servers. This PSOD is not good (in general: PSOD's never are, haha). As this is a brand new server, I did ...
Continue reading
  3962 Hits
  1 Comment
3962 Hits
1 Comment

Troubleshooting disk latency (cont.)

So yesterday we left off after changing the power setting in the BIOS. Now after a day, I've got results, and they are promising!!! Let's start with some CPU metric comparison.

Continue reading
  2289 Hits
  0 Comments
2289 Hits
0 Comments

Troubleshooting disk latency

I was asked to troubleshoot a VM. SCOM was reporting the following message: "Logical disk transfer (reads and writes) latency is too high - The threshold for the Logical Disk\Avg.". Also, jobs (this is a SQL server) took longer to run (almost twice a long). Now, this seems like an issue with disk I/O: the path to storage endpoint (SAN), i...
Continue reading
  2222 Hits
  3 Comments
2222 Hits
3 Comments

Blogging again

That's it! I'm starting blogging again. The reason?​That's easy - yet another year has passed by without blogging. Triggered by all those great messages from the community on Linked In, Twitter and various websites tagged: #vExpert. Don't get me wrong and I must admit: I was a bit jealous and angry. Angry to myself!What happened?​​Call it lazy, cal...
Continue reading
  1922 Hits
  1 Comment
1922 Hits
1 Comment