
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
The most fun image & video creation tool in the world is here. Try it for free in the Grok App.
0
190
2K
@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
@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
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
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 ??🤷
1
0
0
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.
2
0
4
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
0
0
0
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
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?🤷
1
0
1
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.
My Following feed on here has gone almost completely non technical- am I tweeting in to a void here now?☹️.
0
0
3
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
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
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
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
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? 🤦
2
0
2
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
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
1
0
0
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
1
0
0