2 ms·
I have tried many, many times to work with posh. I was even a very senior windows engineer at some of the largest webhosts when it came out and used it heavily
by swozey 2y ago
I have tried many, many times to work with posh. I was even a very senior windows engineer at some of the largest webhosts when it came out and used it heavily because the fantastic Windows Server operating system comes with literally no tools any bsd/nix engineer expects, you know, like rdp brute force detection blockers to actually manage servers, or .. my gosh, IIS URL REWRITES. BFD isn't "baked in" to linux but nobody is hiding their secret sauce so every company has to roll their own vs pulling a package from apt for bfd, etc. Here's your $expensive$ Windows Service license, now spend $20k in dev hours for someone to write a powershell script that monitors eventvwr for failed rdp event errors, extract the ingress ip into a db and block across the board.
I remember being fascinated by its history because the main guy wrote it, Jeffrey Snover, I'm going to butcher this, but IIRC he was some sort of big posix/shell/bash/perl/something-very-shell-important and wanted to take the best of whatever systems he was familiar/contributed/wrote and improve them and make that powershell.
Anyway, yeah I absolutely despise using it. It's syntax is atrocious. It's key words aren't memorable in the least. I know some people absolutely love it, even people who aren't using it in Windows. But it's never clicked for me.
I found this thread interesting. I guess Snover left MS after 23 years there in 2022, and he was demoted at some point after creating powershell. I don't care enough about it to dig into why but if anyone is interested- https://news.ycombinator.com/item?id=31302174 https://news.ycombinator.com/item?id=31302174
I did windows engineering at the biggest webhosts you know, RAX, HG, etc. Being a Windows Eng in webhosting is incredibly uncommon. Prior to that and post I'm back as a bsd/linux engineer (distsys/sre now) and the Windows Server ecosystem is absolutely abysmal if you aren't in it for Exchange, MSSQL, or whatever random Windows-Only app your company uses. I supported that trash from server 2000 - 2012 r2.
Never again.