I have a powercli on linux. I've been using it can years now but today its getting an error while trying to run get-* commands. I don't know what changed. I can connect-viserver just fine.
The error reads:
Get-Datacenter: 6/2/2025 3:34:01 PM Get-Datacenter Could not find item /root/.local.
Get-vm also does the same thing. That folder does exist and I can use cd /root/.local while in powershell and it works. All the modules live in that area, so if it was permissions then I would also expect connect-viserver to also fail. But maybe there still is.
I swear I've seen this once before, but I'm struggling to remember how it was fixed.
And it appears other modules are having the same issue, but I thought to come here first since other people may have seen that before.
Thanks.