5 ms·
One benefit you get with powershell to powershell remoting is that the output of the commands come back as objects rather than text. You can even use "implicit
by 13of40 8y ago
One benefit you get with powershell to powershell remoting is that the output of the commands come back as objects rather than text. You can even use "implicit remoting" (not sure if that's the marketing term) to make the remoting part of it transparent to your automation - see Import-PSSession.
- reificator 8y agoThat's a pretty cool feature, but I don't often remote into machines and then want to do the processing locally. Maybe that's because I don't have this feature, but I've never felt like I wanted to. Usually I just treat the client like a dumb terminal. I'd bet a project like Ansible could use something like that to great effect though.
- tcbawo 8y agoFrom what I understand, PowerShell has been open-sourced and ported to Linux. Are non-Windows users adopting it? It's probably facing a long climb. Having 30+ years of productivity hacks is tough to compete with.
- reificator 8y agoPart of it has, yeah. Personally I use it fairly frequently for scripting tasks on Windows, but have yet to have the urge to install it on anything else.
- 3rdAccount 8y agoI use PowerShell on Windows because CMD is atrocious and some things just aren't great in Windows for Python. C# is also not efficient for those people used to the efficiency that comes with a Linux terminal and how to use it. When I'm on Linux, I have tons of commands, bash, python, perl, Awk, sed...etc etc. All of those tools work perfectly with text which the Unix style OS embraces. Windows on the other hand is all objects and this can be painful in PowerShell at times. Tldr; PowerShell is alright on Windows as it is the only real viable option for a power user. However, Linux is far better with what it already has and PowerShell would be a step backwards in functionality and efficiency.
- tcbawo 8y agoImagine if Microsoft focused on IronPython and added a high level of integration with PowerShell and/or Python-extensible utilities. Running/executing PowerShell from within a Python REPL would really be something.
- voltagex_ 8y agoIt's interesting - I get to a certain point with Powershell and then jump into Visual Studio to accomplish whatever I'm trying to do in C# instead. I think it'd be better if there was a fully supported way to debug Powershell inside Visual Studio - the IDE is a step backwards.
- davvolun 8y agoWSL (Windows Subsystem for Linux) is doing a pretty great job of making those *nix commands easily available on Windows. I don't know if it's ready for say DevOps day-to-day professional usage, but just being able to find, grep, awk on Windows works great for me.
- 3rdAccount 8y agoSadly I'm still on Windows7. I'll start the fight with IT over access (I assume configuring it requires admin) as soon as I'm on Windows10.
- 13of40 8y agoIIRC, the main scenario for implicit remoting was where you were exposing a management interface for a service in no-language mode (i.e. the server will only run a whitelisted set of commands and no other scripting, for security) and any complex scripting needs to be done client side. So you'd open a console, import the commands from the remote machine, and now you can interact with it to do things scoped to your role, like diagnostics or restarting a service, etc.
- reificator 8y agoThat makes sense...
- hobs 8y agoIts pretty cool actually, called Just Enough Administration, and its well supported. https://docs.microsoft.com/en-us/powershell/jea/overview https://docs.microsoft.com/en-us/powershell/jea/overview
- cryptonector 8y agoOTOH there is no online streaming, right?