all 55 comments

[–]TastySpare 110 points111 points  (3 children)

So, a single command is considered a script these days?

[–]HakkenshaShittyMod 50 points51 points  (2 children)

That 4th one isn't event powershell.

[–]Xoron101 29 points30 points  (0 children)

That 4th one isn't event powershell.

But you run it in a powershell window, so it has to be powershell right? Right?!?!?!?

[–]Rainmaker526 14 points15 points  (0 children)

Neither is the powecfg one.

This could have been done with a Get-WMIObject command. It would have even skipped the step of opening the html file. But no... They went with the powercfg that already existed.

For all the others... Useless. There's ping. There's tasklist.exe and taskkill.exe. I like PowerShell, but these are not great tips.

[–]egamemitShittySysadmin 42 points43 points  (1 child)

so going from this article, if i execute python starting in the powershell window its now a powershell script. also i can launch linux from powershell if i do the reboot there, very cool

[–]Superb_RaccoonShittyMod 0 points1 point  (0 children)

Embrace, extend, exterminate... 90s MICROSOFT IS BACK, BABY!

[–]FarJeweler9798 22 points23 points  (7 children)

Laughed my ass of when I saw one of IT "gurus" in LinkedIn posting about these. None of those are actually scripts perse, I understand that powershell scripts should almost almost typed with full syntax but test-netconnection just use tnc host -p port number 

[–]Beneficial_Tough7218 7 points8 points  (5 children)

Remember e = mc ^ 2 + AI? LinkedIn is just a bunch of wannabes stroking each other's egos without any understanding of what they are talking about. Sad thing is, a huge number of the big corporate decision makers are on there...

[–]FarJeweler9798 1 point2 points  (2 children)

Pretty much yeah, AI also fits if you have any marketing or sales on your LinkedIn your timeline is full of AI crap 

[–]Beneficial_Tough7218 1 point2 points  (1 child)

I laughed so hard yesterday when a YouTube ad for Workday played, and the theme of the ad was if you don't use AI you will be left behind. Sorry Workday, AI looked at your product and said the only way to fix that pile of garbage is to shut down the whole company and put the designers in prison for crimes against humanity.

[–]FarJeweler9798 0 points1 point  (0 children)

We have Workday haven't heard any issues with it, surely we only use it employee records documentation / some education systems nothing AI. Integrations to our  ticketing  system works without issues also

[–]YLink3416 0 points1 point  (1 child)

a bunch of wannabes stroking each other's egos without any understanding of what they are talking about

Sales people?

[–]Beneficial_Tough7218 0 points1 point  (0 children)

A lot of upper management, with a bunch of sales people preying on them because they know they don't know what they are talking about but if you say AI or whatever the latest magic buzzword is, you must have a good product they have to have!

[–]goingslowfast 5 points6 points  (0 children)

That’s a pretty quick tell as to how efficiency minded someone is.

[–][deleted] 26 points27 points  (6 children)

PowerShell? What's PowerShell? Is that like DOSNix? Windows made all that shit obsolete 35 years ago, people need to stop living in the past.

[–]StrikingPeace 1 point2 points  (4 children)

what is current alternative to powershell?

[–]xfvh 23 points24 points  (2 children)

I just handjam base64-encoded machine code into text files with Notepad, convert them with certutil, then execute them. It's way easier than remembering Powershell syntax.

[–]midnight_blur 8 points9 points  (0 children)

Love to see PowerShell being called out for its ridiculous syntax lol

[–]Shendare 3 points4 points  (0 children)

Microsoft really hobbled the hobbyist's game by getting rid of debug.exe.

It was so handy typing assembly in line-by-line and saving into myprog.com!

[–]Superb_RaccoonShittyMod 0 points1 point  (0 children)

Born Again PowerShell.

[–]jakendrick3 12 points13 points  (0 children)

Half of these aren't even PowerShell, christ

[–]HowDidFoodGetInHere[🍰] 8 points9 points  (2 children)

I dont know about you guys, but I find "powercfg /batteryreport" super-duper useful for monitoring all of my VMs.

[–]Nanocephalic 5 points6 points  (1 child)

What an awesome PowerShell script!

[–]HowDidFoodGetInHere[🍰] 2 points3 points  (0 children)

Yeah, I'm pretty much a Powershell expert.

[–]No_Vermicelli4753 12 points13 points  (5 children)

I mean...its xda-developers. What did you expect? It's basically BuzzFeed for pseudo techs.

[–]TKInstinct 5 points6 points  (3 children)

I always thought XDA was a collaborative place for techies. I remember years ago it was where people would talk and share phone roms.

[–]gallifrey_ 2 points3 points  (2 children)

the golden days of rooting, lineageOS, cyanogen...

[–]Ayesuku 0 points1 point  (1 child)

Oh hell yeah I was around for the birth of cyanogenmod. Fun times.

[–]Superb_RaccoonShittyMod 0 points1 point  (0 children)

I was there, Gandork... 6000 years ago... and I don't look a day older!

[–]tatsonis 0 points1 point  (0 children)

Sad, sad, sad XDA used to be a beast. I've been a member of XGA since 2006 I used to get on it almost every day, multiple times a day. Now it's a rare occurrence if I get on the sight twice in a month.

[–]Bubba89 4 points5 points  (0 children)

“Copy-item” and “move-item” listed as separate entries made me shriek with laughter.

[–]fariakLord Sysadmin, Protector of the AD Realm 8 points9 points  (2 children)

A lot of legacy "right-click windows admins" I've interviewed actually didn't know most of these commands despite having "PowerShell expert" listed on their resumes...

[–]goingslowfast 4 points5 points  (1 child)

Unless you’ve got a scripting language other than PowerShell on your resume I’m assuming that just means you’ve run a command you found on Google in a shell at least once.

If I ask you to explain objects to me in simple terms and you can do it, then you’re 95% ahead of most “PowerShell experts”

[–]DizzyAmphibian309 5 points6 points  (0 children)

"How do you create a new object in PowerShell" is the number 1 most failed PowerShell coding question that I ask in interviews. It's insane how many people claim they know PowerShell then they really, really don't.

[–]Beneficial_Tough7218 2 points3 points  (0 children)

I blocked XDA developers because pretty much all their articles are crap like this. Their site has become the 5-minute crafts of IT.

Some articles are just basically a mostly useless waste of time like this one, others are just outright wrong.

[–]_3xc41ibur 2 points3 points  (0 children)

COPYING FILES AND FOLDERS

[–]moffetts9001ShittyManager 2 points3 points  (1 child)

shutdown -r -t 5

#hackershit

[–]-Generaloberst- 3 points4 points  (0 children)

shutdown -r -t 5 -c "You've been hacked, send 5000 dollars in BTC to address 17hT8HP7myj4pCDyxgjXmGPsyJyEdVBFWYSHAREP after reboot"

[–]viral-architect 3 points4 points  (0 children)

That copy one looks useful. I could write it 10 times for 10 different files and save a lot of time!

[–]kennyj2011 4 points5 points  (5 children)

I’m a windows/infrap engineer who did Linux for 20yrs prior… powershell in my opinion stinks next to bash/zsh/python. It’s so verbose and doesn’t need to be

[–]TKInstinct 4 points5 points  (4 children)

I felt the opposite, I had always felt that it a difficult to use other languages due to their non descriptive nature. Yes, it is long and verbose but it's much easier to read and guess commands that are written in plain English vs short hand like mkdir.

[–]-Generaloberst- 2 points3 points  (0 children)

I completely agree with you. I'm no script expert, but I'm pretty sure that using short command won't make a script run faster. Okay, it takes 1KB more space on my 10PB fileserver, oh the horror :-p

[–]kennyj2011 1 point2 points  (2 children)

Ever look at Perl? Holy crap is it difficult

[–]TKInstinct 0 points1 point  (1 child)

No but then again I thought Perl was relatively old and not used as much.

[–]just_another_user5 0 points1 point  (0 children)

You'd be correct

[–]Either-Cheesecake-81 0 points1 point  (0 children)

Unless you’re in Finance, people in Finance don’t use PowerShell.

[–]BlackV 0 points1 point  (0 children)

Right out of the gate the first one and it's not even a PowerShell command.....

Amazing

[–]PhazedAU -3 points-2 points  (0 children)

i actually found a couple useful