Guy Leech

@guyrleech.bsky.social

PowerShell nut. Dog owner. Grandfather

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

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 )

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?

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)!! 😱

BildBild

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?

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?

Bild

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

Bild

If you want to quickly figure out if & where a process is writing a logfile, create a filter (ctrl l) in @SysInternals procmon for your process(es) and also Category = Write & turn off registry & network capture in the toolbar

Bild

Any of you got experiences of packaging Adobe or AutoCAD apps into MSIX and delivering via App Attach? About to have a play myself but interested to know if others have tried. I think going App-V is probably not a sensible approach given its life expectancy.

New PowerShell script to find your geographically closest Azure location. Uses geo location so may not be accurate! Guess which of these I ran from a Windows 365/Cloud PC instance? 😂 Will prompt for login if not connected which may need tenant or subscription parameters github.com/guyrleech/Az...

BildBild