Sup Forums hates Powershell now

>Sup Forums hates Powershell now

What happened?

Other urls found in this thread:

warosu.org/g/?task=search&ghost=&search_text=/g/ hates Powershell now
tipstrickshack.blogspot.hu/2013/08/bypass-av-using-powershell-method-using.html
twitter.com/AnonBabble

we've always hated it

Well... Is slow AF, and Microsoft put it as the default console after Creators Update, you can change it in config but... It sucks doing that

It's shit, it wasn't ever not hated.

>and Microsoft put it as the default console after Creators Update
No it didn't.

>slow

Stop using Windows 7.

It's really cool, but it's big. I like the fact that you can pipe objects and access their attributes easily. Because Powershell doesn't have to deserialize objects everytime it passes them around, it can actually perform better at a lot of things.

>is slow
Even if you like it or not

I love it, far better scripting language than the shells you get on *nix/linux.

>Sup Forums hates
Nobody with a job gives a shit what Sup Forums thinks.

>samefag reposts the same shit
warosu.org/g/?task=search&ghost=&search_text=/g/ hates Powershell now

wath happened

I don't have anyone to talk about 'Shelly ;_;

forced bullshit

Nobody cares what wojacks like either.

It integrates into Windows better than any other scripting environment. No one's forcing you to use it over Python though.

But it is possible to use Powershell on Loonix.

wtf i like powerschell too
tipstrickshack.blogspot.hu/2013/08/bypass-av-using-powershell-method-using.html

>But it is possible to use Powershell on Loonix.

Yeah but you can't do fuck all with it, like literally nothing of value.

They absolutely did you ass munching piece of fuckholster

Sup Forums never liked anything microsoft

>simple scripts: bash/zsh
>complex scripts: python
powershell is largely useless

>victim has to launch a file

Oh wow this is totally unlike other exploits that rely on the user giving confirmation. Don't launch suspicious shit, don't get infected.

>Python has to be installed
>unlikely to interface well with Microsoft software

>implying it's hard

>useless
A word I would use to describe your brain.

W10 made much easier to find mitm targets with its telemetry.

>go for devops interview
>"user do you know scripting languages?"
>i know bash
>"we want someone who knows powershell, goodbye"

well, fuck, that was a good opportunity

Maybe you are too retarded the description of the job.

Should've told 'em the bash commands are the same as in powershell and then recited some aliases like curl, ls, and pushd.

I always thought powershell is a laughing language and no one serious is using it, especially after checking the company and seeing they mostly do java in linux

>far better scripting language than the shells you get on *nix/linux.
I was under the impression that you were implying that it's a good general-purpose scripting language :^)
also, most distribution installers pull in python by default

>I always thought powershell is a laughing language

...and it is that attitude/atism which will continue to keep you unemployed.

There's a heavy push towards Powershell for Windows servers. You can use it as a scripting language, but it's less popular that way. I myself use it to script stuff. To me it's a simpler alternative to C# with shit to make scripting easier. No problems had.

>You can use it as a scripting language, but it's less popular that way
Sorry, meant that's less popular outside of server space.

Powershell sure is fun.

Will that command's output be object? Will it be regular text? No way to tell.

I don't care what Sup Forums autists hate.
I love powershell since I work mostly in a windows enviroment

$date = Get-Date -Format U
$cred = Import-Clixml C:\#ADMIN\Send-Mailmessage\microsoft.clixml
$VM = Get-VMIntegrationService -VMName ownCloud -Name Takt
$status = $VM.OperationalStatus
if($status -notcontains "Ok")
{
Send-MailMessage -SmtpServer smtp-mail.outlook.com -UseSsl -Port 587 -From "REMOTE-WIN10 " -To "******" -Subject "OWNCLOUD VM IST DOWN! (REMOTE-WIN10)" -Body "Die ownCloud Hyper-V-VM auf REMOTE-WIN10 ist seit $date offline.`r`nEs wird ein automatischer Versuch unternommen die VM wieder zu starten." -Credential $cred -Encoding ([System.Text.Encoding]::UTF8)
$VM_status = Get-VM ownCloud
if($VM_status.State -like "Running*")
{
Restart-VM ownCloud -Force
}
elseif($VM_status.State -like "Paused*")
{
Resume-VM ownCloud
}
elseif($VM_status.State -like "Off*")
{
Start-VM ownCloud
}
elseif($VM_status.State -like "Saved*")
{
Start-VM ownCloud
}
}

There's a switch construct for that.

This might be the case but I just recently discovered poweshell for myself.

There will be the point in time I'll be able to use varios methods.

For now. This is the method that works for me.

But thank you for the hint

The fucking command names and syntax is fucking trash that's it. If you don't mind that it's quite useful. Oh yeah i almost forgot, setting up a ad in powers hell is fucking hell.

Just note about the switch construct is that each comparison falls through. To stop execution at the correct comparison use 'break'. In C# 'break' is forced. Powershell is more lax.

switch ( $VM_status.State ) {
{ $_ -like "Running*" } { Restart-VM ownCloud -Force; break }
{ $_ -like "Paused*" } { Resume-VM ownCloud; break }
{ $_ -like "Off*" } { Start-VM ownCloud; break }
{ $_ -like "Saved*" } { Start-VM ownCloud; break }
}

Thanks mate.

>I love powershell
Jesus dude I kek'd so fucking hard that my fucking pacman update almost fucked my xorg.conf!

Switch also has additional parameters to simplify comparisons. One of them is -Wildcard that allows to interpret wildcard characters.

switch -Wildcard ( $VM_status.State ) {
"Running*" { Restart-VM ownCloud -Force; break }
"Paused*" { Resume-VM ownCloud; break }
"Off*" { Start-VM ownCloud; break }
"Saved*" { Start-VM ownCloud; break }
}

>powershell
More like powershellcode lmao

No ansi or posix compliance.

Ms basically just forgot that unix existed and said well we'll just redo that. Nope that's not how it works.

There is one true os and it's name is gnu, and among it's kernels are linux.

>CuckShell
>PowerCuck CuckShell
>microsoftpenis
>wincuck

I'm not even trolling.

...

Personally, I fucking hate the fact that the terminal window behaves so weirdly. Can't select text and copy paste normally.

Because the unix shell is already superior ,exactly

Holy shit user, Win+X.

It's all right if you need to administer Windows servers and use the provided IDE, but Unix shells and environment are superior.

win+x only shows powershell on my machine

Shows command prompt for me.

>unreliable piping text shit vs proper serialization and objects
wew

...

Yeah adding random word to a program name is not really trolling.

>Unix Shell
>Unreliable compared to Windows message passing

It's more brittle and should be more problem prone, yet many years of production use regails its sturdiness.

So it's a setting, not the default.

Down PSReadline. The default configuration lets the CLI behave exactly like a text editor. The behaviour can be changed on top of it.
Install-Module -Name PSReadline

it's turned on by default

No it's not, not for me at least.

It seems to be just you. Definitely was for me and several others.

You're probably on an old build because the CU made it default.

Not for me too

if you upgraded from an older build it stays with CMD, if you do a fresh install or a reset it defaults to powershell.

I have the creator's update.
That would be it then, I installed W10 on release.

PSReadLine is a godsend, too bad I'm not allowed to set it up on our preprod and prod servers.

I've had to use it for werk, but bash is better in every way imaginable.

What is that number [87] for?

Number of files in the current folder.
My desktop is a clusterfuck and in dire need of cleaning up.

Oh and what about remoting? Remoting should still allow to use it while having access to the servers.

I asked, but my higher ups don't want me to enable and set remoting up "for security reasons".

Literally useless outside MS laden ecosystem.

You can limit what a remote session is allowed to do on the target machine using remoting profile that's hosted on the target machine.

You could limit the interaction down to only allowing resources to be retrieved rather than edited or written.

Is there a Powershell-tan?