guyrleech Profile Banner
Guy Leech Profile
Guy Leech

@guyrleech

Followers
10K
Following
92K
Media
13K
Statuses
52K

Consultant|Developer|PowerShell geek|Grandfather|Comedian|Microsoft MVP|Parallels VIPP ex Citrix CTP,vExpert,Omnissa TecI| Invented AppSense Application Manager

Wakefield, England
Joined August 2009
Don't wanna be here? Send us removal request.
@guyrleech
Guy Leech
9 years
The origins of AppSense
Tweet media one
7
8
71
@guyrleech
Guy Leech
9 hours
Tweet media one
0
0
5
@grok
Grok
26 days
The most fun image & video creation tool in the world is here. Try it for free in the Grok App.
0
190
2K
@guyrleech
Guy Leech
10 hours
Tonight I shall be dining in a bubble
Tweet media one
0
0
1
@guyrleech
Guy Leech
13 hours
@code Copilot told me I needed to add this to the settings.json file and now it can find it although it's still running pwsh 7.4.11 instead of 7.4.6 which is also in the settings.json file. "terminal.integrated.inheritEnv": true.
0
0
0
@guyrleech
Guy Leech
13 hours
@code Adding to $env:PATH in the pwsh process doesn't work because I configure code to start a new pwsh process for every script run so it has a clean environment to work in.
2
0
0
@guyrleech
Guy Leech
13 hours
Not such a quick fix - updated %PATH% and restarted @code but that Azure path I just added is still not in $env:PATH in the Terminal in code - WTAF?.
1
0
0
@guyrleech
Guy Leech
13 hours
ok @code, you got me, or rather outside of VSCode, how is it getting the path to az(.cmd) into %PATH% (or $env:PATH as we say in PowerShell). Easy fix to update PATH but where is standalone Terminal getting PATH from ??🤷
Tweet media one
Tweet media two
Tweet media three
1
0
0
@guyrleech
Guy Leech
13 hours
What, I'm using a batch script? Don't tell @JacqBens he won't stop laughing 😀.Been a few years since I've put %~dp0 in a script but makes for great portability so you don't have to hard code paths.
Tweet media one
2
0
4
@guyrleech
Guy Leech
13 hours
Yes @code, the path does exist!! 😠
Tweet media one
Tweet media two
Tweet media three
0
0
0
@guyrleech
Guy Leech
14 hours
Something just broke on my laptop. It wouldn't come back to life having been away for a few of your Earth minutes so I undocked & opened the lid to a black screen but maybe 30s later the lockscreen wallpaper showed. It's now ok, back docked
Tweet media one
0
0
0
@guyrleech
Guy Leech
16 hours
In looking at an installer for my remote Windows management product back end that currently runs a Go server on Ubuntu, I've finally got my own use case for containers having seen every person & their cat harp on about them for years.😀.Have done bits of @Docker before but this.
0
0
1
@guyrleech
Guy Leech
18 hours
Ok @lenovo where's the retry option or have you totally given up trying to update the dock? ☹️.Why does the info window say update not needed?🤷
Tweet media one
Tweet media two
1
0
1
@guyrleech
Guy Leech
21 hours
It must've been a glitch in the algorithm/Matrix as very quickly my feed reverted to having mostly tech stuff in it. Seems there are plenty of tech folk left here - I've had 500+ likes on an Entra ID SID tweet whereas the same post has 10 likes on BSky although I've 8x fewer.
@guyrleech
Guy Leech
7 days
My Following feed on here has gone almost completely non technical- am I tweeting in to a void here now?☹️.
0
0
3
@guyrleech
Guy Leech
1 day
RT @MediocreJoker85: My friend works in IT and I asked him, “How do you make a motherboard?”. He said, “I usually tell her about my job.”.
0
31
0
@guyrleech
Guy Leech
1 day
RT @JB_MusicComic: Breaking news: kleptomaniac pleads not guilty to stealing laptops from Curry’s PC World. He told a jury “The doctor tol….
0
1
0
@guyrleech
Guy Leech
1 day
RT @githubstatus: We are in the process of deploying the PR to revert the change that was causing timeouts to this endpoint. We will update….
githubstatus.com
0
2
0
@guyrleech
Guy Leech
1 day
RT @githubstatus: We have identified a deployed change that correlates with the increase in 5XX errors to the GitRefs REST API. This is par….
githubstatus.com
0
2
0
@guyrleech
Guy Leech
2 days
Hey #Copilot in case you hadn't noticed, you're running on Windows 11 outside of WSL, which I don't use anyway, so chmod ain't going to work now is it let alone trying to run a bash script? 🤦
Tweet media one
2
0
2
@guyrleech
Guy Leech
2 days
Turns out it wasn't a permission issue but a logic flaw in the generated code because it was fetching the storage account to be deleted again when it was in the wrong subscription id. I spotted this myself so told it to store the subscription id on the 1st pass which is more.
0
0
0
@guyrleech
Guy Leech
2 days
And when running with -Whatif it didn't find any storage accounts because it was calling Set-AzContext to cycle through discovered subscriptions but with -Whatif it doesn't actually change context so keeps looking at 1st subscription found. Solution was to add -WhatIf:$false to
Tweet media one
1
0
0
@guyrleech
Guy Leech
2 days
Just had my 1st near miss with a 100% vibe coded PowerShell script for identifying not recently used AZ storage accounts & to prompt to delete them except it didn't prompt but the user running the script didn't have permission so deletes failed. It's first attempt to prompt used
Tweet media one
Tweet media two
1
0
0