macadminsconf, to Powershell

🎉 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! 🖥️📚

Register today! https://macadmins.psu.edu

jbzfn, to javascript
@jbzfn@mastodon.social avatar

⌛ 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"

https://thehackernews.com/2024/05/the-end-of-era-microsoft-phases-out.html

aeveltstra, to mswindows
@aeveltstra@mastodon.social avatar

I created a sample form for using via :
https://gist.github.com/aeveltstra/2da6ef5a7dd93c4d44e24f9cde9fc676

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.

rivetgeek, to Powershell
@rivetgeek@dice.camp avatar

I guess my scripts for our 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.

publicvoit, to programming
@publicvoit@graz.social avatar

What happens, when you join two paths in a language when the second one is an absolute one?

join("foo", "/bar")
returns "foo/bar" or "/bar"?

The wonderful @meisterluk wrote a great article about that you might want to read: https://lukas-prokop.at/articles/2024-05-03-filepath-join-behavior

I can not tell what version I'd actually prefer. There are situations where both versions would be "proper".

#C++

royal, to python
@royal@theres.life avatar

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?

JeffHicks, to Powershell
@JeffHicks@techhub.social avatar

If you are a #PowerShell user, you should provide your feedback on open issues. Don't let a few people decide the future. I also encourage you to get involved with Discussions. https://github.com/PowerShell/PowerShell/issues

kohelet, to Powershell
@kohelet@mstdn.social avatar

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.

mdowst, to Powershell
@mdowst@mastodon.social avatar

Weekly for April 26, 2024 is out now! https://psweekly.dowst.dev/?p=6806

ciphertxt, to azure
@ciphertxt@mastodon.social avatar

Sometimes it's good to keep up with previews. We recently released the latest version of the module for . This release brings several changes for interactions with Queues as we transition from a legacy data plane SDK to our modern data plane SDK (details in https://github.com/Azure/azure-powershell-pr/issues/3261).

You can find the latest preview module on the PowerShell Gallery at https://www.powershellgallery.com/packages/Az.Storage/6.1.4-preview

ITeeTechMonkey, to python
@ITeeTechMonkey@mastodon.social avatar

I rewrote a Powershell script in Python for my teammates who use Macbooks.

Now I still love writing scripts in Python, but to say I've been spoiled by Powershell is a massive understatement.

#python #sysadmin #powershell #automation

jaykul, to Powershell

What that you wrote do you actually use most regularly, like, on a basis?

I'm going to have to say my prompt stuff, since not a day goes by where I'm not staring at the output 😉

But also ... Get-Parameter, which I use so often that I sometimes forget it's not built-in.

https://github.com/Jaykul/TerminalBlocks

https://github.com/Jaykul/PowerLine

https://www.powershellgallery.com/packages/Get-Parameter

kohelet, to fedora
@kohelet@mstdn.social avatar

I love my new setup (Fedora and KDE plasma)
It all feels so nice and clean. and new.
And smooth.

Too bad I'm only gonna use it once a week :(

Oh, and Powershell. I love powershell.
It's my default shell now.

JeffHicks, to Powershell
@JeffHicks@techhub.social avatar

My monthly grab bag of goodies is freely available to everyone. Although I hope you'll consider becoming a premium subscriber. https://buttondown.email/behind-the-powershell-pipeline/archive/powershell-potluck-march-2024/

cjerrington, to Powershell
@cjerrington@mstdn.social avatar

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.

Example:
{
"SchemaVersion": 1
}

Needs to be

{
"SchemaVersion": "1"
}

zirias, to windows
@zirias@techhub.social avatar

Goal: Get some certificate obtained with deployed on some box

Step 1: Ok, this probably works best with (which I don't really like ...)

Step 2: There's no port ... but hey, there's now a FreeBSD port of , let's try to "just" build Powershell using that.

Step 3: Hell why does it fail to build. Oh, System.Security.Cryptography.Native doesn't play well with

Patch and retry, I guess I'll take some sleep now first. Bah!

(there's some irony in running into OpenSSL/LibreSSL issues when trying to deploy TLS certificates ...)

Clatent, to Powershell
@Clatent@techhub.social avatar

One-Ljner Wednesday! What is your current favorite one-liner? Bonus points for one-liners that would be helpful to someone getting into PowerShell

fabian, (edited ) to programming
@fabian@floss.social avatar

For all you fancy command line prompt-havers. Newline or no newline at the end of the prompt?

So, this:

you@host ~/f/bar git:main [*?]␤  
> ▁  

Or this:

user@host ~/f/bar git:main [*?] > ▁  

#programming #terminal #softwareDevelopment #webdev #bash #fish #zsh #powershell

kohelet, to Powershell
@kohelet@mstdn.social avatar

Why in powershell backtick (`) is the escaping character, and not backslash () like in most languages?
anyone knows?

bradwilson, to Powershell
@bradwilson@mastodon.social avatar

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:

$ curl -ks https://sh.rustup.rs | bat

(I'm not 100% sure if I can support both piping from raw text as well as piping filenames.)

Script: https://gist.github.com/bradwilson/5b6d1ad8f797eee304f7028bf16253b2

mdgrs, to Powershell
@mdgrs@fosstodon.org avatar

Do you have too many 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.

https://github.com/mdgrs-mei/PowerShellRun?tab=readme-ov-file#-function

On the Windows Terminal, the user types 'pull' and GitPullRebase custom function matches with the fuzzy search. Hitting Enter runs that function. You can also copy the function definition to clipboard through the Action Window.

cjerrington, to Powershell
@cjerrington@mstdn.social avatar

The saga of converting strings in into other things. This time a hashtable.

I had a use case for a hashtable and the need to learn a new command and its functionality.

https://claytonerrington.com/blog/strings-to-hashtables/

bjompen, to Powershell
@bjompen@mastodon.nu avatar

99% of the issues people have with is because they can't seem to understand the difference between an object and text.

cs, to Powershell
@cs@mastodon.sdf.org avatar

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.

siljelb, to Powershell Norwegian Bokmål
@siljelb@snabelen.no avatar

Asking the fediverse for help again: Is there a way to update an existing zip file by putting a file into a specific directory within the zip file?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines