Guy Leech's Avatar

Guy Leech

@guyrleech.bsky.social

PowerShell nut. Dog owner. Grandfather

1,247 Followers  |  233 Following  |  866 Posts  |  Joined: 15.10.2023  |  2.0628

Latest posts by guyrleech.bsky.social on Bluesky

Did you know that when you've pressed Alt + tab on Windows 11, you can then use the cursor keys to move quicker, eg down, to the tab you want whilst still pressing Alt & release Alt?
Similarly, press Windows + Tab & use cursor keys to navigate around & select via window thumbnail then press Enter

06.01.2026 22:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Also helps when you want to reverse the chronological order but the dates aren't (yet) in a datetime time, eg returned as text so would need casting/converting to datetime to be able to sort correctly in PowerShell

15.12.2025 15:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Got a #PowerShell array of objects with already sorted timestamps where you want to reverse the order? Eg I got logs from @Googlecloud but was most recent 1st & I wanted oldest first & rather than sort on the datestamp, I just reversed the array with

[array]::Reverse( $yourArray )

15.12.2025 14:57 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Is #dedup for NTFS on Server 2025 supported by
#Microsoft for #FSlogix or not?

Most AI says not but fails to give a definitive reference.

Was enabled & working on a system I inherited BUT there was also corruption on that volume.

Surely should be ok as a file system feature invisible to FSlogix?

15.12.2025 13:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

So sorry to hear that, I hope things improve

14.12.2025 12:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Don't have too many windows open at once, it'll crashπŸ˜ƒ

14.12.2025 12:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image

Well this is something that I have never seen before today in #PowerShell 5.1 & the lines causing it have been in my $profile for years. PowerShell.exe date is today - this could break a lot of scripts (as in cause them to pause f input)!! 😱

11.12.2025 13:04 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0
Post image

Recently bought the T-shirt. No, I'm not quite sure why either. It's not sound enabled though

09.12.2025 10:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

You can't read that? You need the Microsoft error lookup tool! Although some of us carry it around in our heads which is why we forget why we've walked into a roomπŸ˜‚

09.12.2025 10:38 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Where's the fun in that?

09.12.2025 10:37 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Anyone found a way to toggle the Do Not Disturb Notification setting in Windows 11? Found some stuff around setting registry values which didn't pan out & other stuff that P/Invoked WNF APIs but that failed too. Tried what I found in procmon but failed. Surely it must be possible?

09.12.2025 09:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You don't use AI day to day?

28.11.2025 08:59 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

It definitely won't if you don't ask it

27.11.2025 19:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Asked Copilot?

27.11.2025 18:46 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Support portal too

18.11.2025 12:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

@cloudflare.social acknowledge that they are having problems.
www.cloudflarestatus.com

18.11.2025 12:11 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

I sense a disturbance in the force, sorry internet. Trying to tweet this on X fails πŸ™

18.11.2025 11:46 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0

Might not be realistic in our scenario where sessions often are less than 1 hour. We also provider Google Drive, which provides a separate G: drive and that does not seem to suffer the same issue but my drive there has much less in it.

13.11.2025 13:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

He’s back. πŸ‘”

The man who started it all β€” @jsnover.com, Inventor of #PowerShell, will open #PSConfEU 2026 in #Wiesbaden with the keynote you don’t want to miss.

🎟️ Tickets now available β†’ psconf.eu
#Automation #IT #Germany #Europe

10.11.2025 10:55 β€” πŸ‘ 21    πŸ” 15    πŸ’¬ 1    πŸ“Œ 2

I have 200+K files in mine so maybe I'm being unrealistic

13.11.2025 12:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

EUC folks with non-persistent desktops but using something like #FSlogix have you found a way to stop @OneDrive from taking ages (>50 minutes) to drop the (dehydrated) place holders into a new profile? Our sessions are generally <1 hour so cutting it fine + what if user needs a "late" file?

13.11.2025 12:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Do you think i was Bourne yesterday? Very Korny, I hope someone doesn't bash your post

12.11.2025 18:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Amazon Announces Layoffs! Pwn2Own Ireland! New Teams Monitoring Feature!
YouTube video by 5bytespodcast Amazon Announces Layoffs! Pwn2Own Ireland! New Teams Monitoring Feature!

New Episode! 🚨

I cover layoffs from Amazon and GM, the root cause of the recent AWS outage, a concerning new Teams feature, my review of Pwn2Own Ireland 2025 and more!

πŸ”Š Listen: on.soundcloud.com/ncOCKrv63zJM...
πŸ“Ί View: youtu.be/aaLAY23ZJa4?...

29.10.2025 21:38 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Why is he in your bathroom??

29.10.2025 12:22 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Tres bon

29.10.2025 12:21 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Yes and for languages I've never coded in like Go and Javascript

29.10.2025 12:20 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Here's a typical use case for me using -Outvariable in an interactive PowerShell command line where I'm searching for a file so I want visual output as it searches but I also want the results in a variable so I can access more properties later if I need them without searching again

29.10.2025 11:58 β€” πŸ‘ 9    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Dutch PowerShell User Group | Meetup Welcome to the Dutch PowerShell User Group! This group is for anyone interested in PowerShell, DevOps, Infrastructure as Code, and Cloud Infrastructure. Join us to learn, share knowledge, and network ...

We're at 99 members on our new Dutch PowerShell User Group meetup, are you going to get us to 100?

Join us, for our favorite price: Free, here: meetup.com/dutch-powers...

And if you do, share it here!

#PowerShell #DevOps

22.10.2025 14:01 β€” πŸ‘ 10    πŸ” 7    πŸ’¬ 1    πŸ“Œ 0
Preview
Release v7.5.4 Release of PowerShell Β· PowerShell/PowerShell 7.5.4 Build and Packaging Improvements Update to .NET SDK 9.0.306 [release/v7.5] Update Ev2 Shell Extension Image to AzureLinux 3 for PMC Release (#26032) [release/v7.5] Fix variable reference ...

PowerShell 7.5.4 released
github.com/PowerShell/P...

20.10.2025 20:02 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

Note that the default in secpol.msc says "Not Configured" but it's on by default so enable auditing but don't enable Success. I don't believe that these events are useful - they cause log overwrite of ones that are like process creation & termination

01.10.2025 09:44 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@guyrleech is following 19 prominent accounts