Questions tagged [powershell]
Tag to be used for questions about Microsoft Powershell. For general shell questions, use the [shell] tag. For other shells, use their own tags like [bash] and [zsh]. For questions about scripting, the tag [scripting] should be used along with the shell tag.
45 questions
-2 votes
1 answer
253 views
How do I install Microsoft Powershell on CachyOS Linux?
The official docs doesn't have a section for CachyOS or Arch Linux. I tried following some guides online to build it myself, to install AUR, snap, pacman, and I don't know what other methods, but none ...
0 votes
0 answers
109 views
Trying to SSH into Ubuntu VPS from powershell, keep recieving public key error
I read through some other threads of similar issues but none of the solutions worked (haven't tried overwriting the public key as I don't know if that will lock me out or cause other issues, if this ...
0 votes
1 answer
101 views
Forcing Server Reboots if not rebooted within X days of patching (Azure Hosted)
I host numerous RHEL 8 servers in the Azure environment. I am using a Red Hat Satellite VM to patch servers and then I rely on the owners to reboot once patching is complete. I want to implement a ...
0 votes
1 answer
283 views
How can I SSH to a PowerShell on Windows and keep a set of working arrow keys?
I can do this to directly enter a PowerShell ssh foobar 'powershell' , but in this shell, arrow keys won't work. It works if I just: ssh foobar ..and then enter PowerShell, by typing powershell. ...
2 votes
2 answers
6k views
yt-dlp + mpv chained media playback
I've been using yt-dlp to download audio files before running mpv for playing them back. I've been specifically using the following commands: yt-dlp -f ba "ytsearch:major artist cool music" ...
3 votes
1 answer
483 views
How do I enable colours by default for common utilites in PowerShell on (Gentoo) Linux?
I'm currently running Gentoo Linux and have installed PowerShell (app-shells/pwsh-bin) as I am a contrarian. That being said, I am unable to obtain colour by default when running certain commands. ...
0 votes
1 answer
660 views
Get return value from kubectl exec out into powershell script [closed]
So I'm working on a powershell script that runs a pester test. The script connects to a Kubernetes pod with a Mongo database. The goal is to check whether or not a collection in the database is empty. ...
0 votes
1 answer
4k views
`find` command doesn't return array like element, how to work around this
In powershell I'm used to doing something like this: > $python_files = get-childitem *.py > echo $python_files[0] The second command allows me to extract the first file, since get-childitem ...