🎉 Join us at the MacAdmins Conference! Your registration includes the full day workshop like "Dive into PowerShell on the Mac," with John Welch. Secure your spot now for $999! 🖥️📚
⌛ The End of an Era: Microsoft Phases Out VBScript for JavaScript and PowerShell | @thehackernews
"Both NTLM and VBScript are known to be abused by threat actors to conduct malicious activities, prompting Redmond to remove features in an attempt to minimize the attack surface"
The most difficult thing about this script was to get the form and the tab control to size to their contents. That doesn't happen automatically. At Powershell level, the control size appears to have a Height and Width property that can be set. That is not the case on my Powershell and Windows 10 Pro. I had to create a System.Drawing.Size object and assign that to the size property.
I guess my #PowerShell scripts for our #SQLServer migration might be something of a hit. We'll see how they fare with 50-ish failover clusters here in a bit, but the tests with 10 or so were smooth as silk twice earlier today. I know this doesn't sound complicated — it's just failovers amirite? — but there are stumbling blocks that have to be accounted for including network latency, SIOS mirroring, Windows pending reboots, AD, DNS...y'know all of the usual wrenches getting thrown in the gears.
I think in PowerShell and can manage in Python. I want to learn Rust to the degree I can write in it directly, rather than prototyping in PowerShell and then converting.
A lot of what I do is data manipulation and analysis. (Take several CSV files as input, and output new CSV files that answer business questions based on the inputs.) I'm seriously impressed with Rust's performance here.
If you've made this transition, advice on where to begin?
I use PowerShell, BTW.
petition to make this the new high scosiety sentence, like the using arch btw one.
You just have to admit, PowerShell is way supririour (hu) to Bash and it's wrappers,
and people who have realized that and moved to using PS (on linux) are just better and smarter.
I'm gonna add a digital signiture to all my messages "I use PowerShell, BTE" regardless of context, destination, and if I really used powershell to send this message. #PowerShell#IusePowerShellBTW
I need some help with #powershell where we need to export some #json values all as strings. So the numbers we have in the object need to be strings, but only are exported as integers.
One-Ljner Wednesday! What is your current favorite #PowerShell one-liner? Bonus points for one-liners that would be helpful to someone getting into PowerShell
I have replaced "cat" with "bat" in PowerShell, and written a "cat" function that makes it more useful to me. Bat is a replacement for cat that syntax highlights the output.
I'm able to support:
$ cat *.cs
$ dir -r -fi *.cs | cat
I have not yet been able to support piping, so that has to stay with invoking bat:
Do you have too many #PowerShell functions to call in the terminal and forget what to type?
Just call Start/Stop-PSRunFunctionRegistration before and after your function definitions. PowerShellRun gives you a TUI to fuzzy search and run them with ease.
After hearing about #Codeium on the #Syntax podcast, I decided to use it to help me write a #powershell script for a backup routine. I had originally written in C-sharp a while back, but obviously could be much faster and smaller with a script.
I am not a professional. I found that it did great at helping me with syntax for Powershell, which I am not that familiar with. However, I did find Codeium would get lost in the nested conditionals, so I had to watch it closely & move things around.
Asking the fediverse for #PowerShell help again: Is there a way to update an existing zip file by putting a file into a specific directory within the zip file?