[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>/g/ hates Powershell now What happened?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 75
Thread images: 8

File: Powershell[1].png (2KB, 350x150px) Image search: [Google]
Powershell[1].png
2KB, 350x150px
>/g/ hates Powershell now

What happened?
>>
we've always hated it
>>
>>60511192

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.
>>
>>60511209
>and Microsoft put it as the default console after Creators Update
No it didn't.
>>
>>60511209
>slow

Stop using Windows 7.
>>
>>60511192
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.
>>
>>60511225
>is slow
Even if you like it or not
>>
>>60511192
I love it, far better scripting language than the shells you get on *nix/linux.

>/g/ hates
Nobody with a job gives a shit what /g/ thinks.
>>
>>60511192
>samefag reposts the same shit
https://warosu.org/g/?task=search&ghost=&search_text=%2Fg%2F+hates+Powershell+now

wath happened
>>
>>60511306
I don't have anyone to talk about 'Shelly ;_;
>>
forced bullshit
>>
>>60511282
Nobody cares what wojacks like either.
>>
>>60511349
It integrates into Windows better than any other scripting environment. No one's forcing you to use it over Python though.
>>
>>60511282
But it is possible to use Powershell on Loonix.
>>
wtf i like powerschell too
https://tipstrickshack.blogspot.hu/2013/08/bypass-av-using-powershell-method-using.html
>>
File: Screenshot (21).png (31KB, 458x940px) Image search: [Google]
Screenshot (21).png
31KB, 458x940px
>>60511372
>But it is possible to use Powershell on Loonix.

Yeah but you can't do fuck all with it, like literally nothing of value.
>>
>>60511216
They absolutely did you ass munching piece of fuckholster
>>
>>60511192
/g/ never liked anything microsoft
>>
>>60511282
>simple scripts: bash/zsh
>complex scripts: python
powershell is largely useless
>>
>>60511411
>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.
>>
>>60511431
>Python has to be installed
>unlikely to interface well with Microsoft software
>>
>>60511441
>implying it's hard
>>
>>60511431
>useless
A word I would use to describe your brain.
>>
>>60511441
W10 made much easier to find mitm targets with its telemetry.
>>
>go for devops interview
>"anon do you know scripting languages?"
>i know bash
>"we want someone who knows powershell, goodbye"

well, fuck, that was a good opportunity
>>
>>60511470
Maybe you are too retarded the description of the job.
>>
File: 960076.png (41KB, 562x703px) Image search: [Google]
960076.png
41KB, 562x703px
>>60511470
Should've told 'em the bash commands are the same as in powershell and then recited some aliases like curl, ls, and pushd.
>>
>>60511489
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
>>
>>60511448
>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
>>
>>60511511
>I always thought powershell is a laughing language

...and it is that attitude/atism which will continue to keep you unemployed.
>>
>>60511511
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.
>>
>>60511539
>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.
>>
>>60511192
I don't care what /g/ 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
}
}
>>
>>60511694
There's a switch construct for that.
>>
>>60511738
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
>>
File: i-am-not-a-manlet-1050335.png (141KB, 500x557px) Image search: [Google]
i-am-not-a-manlet-1050335.png
141KB, 500x557px
>>60511192
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.
>>
>>60511760
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 }
}
>>
>>60511819
Thanks mate.
>>
File: 1488983644850.jpg (617KB, 1920x1200px) Image search: [Google]
1488983644850.jpg
617KB, 1920x1200px
>>60511623
>I love powershell
Jesus dude I kek'd so fucking hard that my fucking pacman update almost fucked my xorg.conf!
>>
>>60511835
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 }
}
>>
>>60511192
>powershell
More like powershellcode lmao
>>
>>60511192
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.
>>
File: Untitled.jpg (37KB, 389x477px) Image search: [Google]
Untitled.jpg
37KB, 389x477px
>>60511421
>>
Personally, I fucking hate the fact that the terminal window behaves so weirdly. Can't select text and copy paste normally.
>>
>>60511412
Because the unix shell is already superior ,exactly
>>
>>60512715
Holy shit anon, Win+X.
>>
>>60511192
It's all right if you need to administer Windows servers and use the provided IDE, but Unix shells and environment are superior.
>>
>>60512833
win+x only shows powershell on my machine
>>
>>60512833
>>60513798
Shows command prompt for me.
>>
>>60513717
>unreliable piping text shit vs proper serialization and objects
wew
>>
File: Untitled.png (12KB, 512x255px) Image search: [Google]
Untitled.png
12KB, 512x255px
>>60514161
>>60513798
>>60512833
>>
>>60512587
Yeah adding random word to a program name is not really trolling.
>>
>>60514807
>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.
>>
>>60514872
So it's a setting, not the default.
>>
>>60512809
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 
>>
>>60515199
it's turned on by default
>>
>>60516283
No it's not, not for me at least.
>>
>>60516295
It seems to be just you. Definitely was for me and several others.
>>
>>60516295
You're probably on an old build because the CU made it default.
>>
>>60516314
Not for me too
>>
>>60516333
>>60516295
>>60516316
>>60516314

if you upgraded from an older build it stays with CMD, if you do a fresh install or a reset it defaults to powershell.
>>
>>60516316
I have the creator's update.
>>60516371
That would be it then, I installed W10 on release.
>>
>>60515895
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.
>>
>>60516429
What is that number [87] for?
>>
>>60516504
Number of files in the current folder.
My desktop is a clusterfuck and in dire need of cleaning up.
>>
>>60516429
Oh and what about remoting? Remoting should still allow to use it while having access to the servers.
>>
>>60516529
I asked, but my higher ups don't want me to enable and set remoting up "for security reasons".
>>
>>60511192
Literally useless outside MS laden ecosystem.
>>
>>60516554
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?
Thread posts: 75
Thread images: 8


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.