Quote:
Originally Posted by webtracer
Anyone here have much experience with Powershell on Linux?
Most specifically, running Powershell on Linux against Windows 2016 servers?
My issue:
I have a current working set of Powershell of scripts that run from Windows to Windows I have been asked to port them to run from Linux instead ... having some issues with this ...
If anyone has experience with this, I can flesh this out way more (I know it's kind of vague sorry)
:Edit: I am a Citrix Admin, basic Linux skills ... so I'm definitely learning as I go, but Powershell and Windows are definitely things I know
|
Powershell is for Windows. While you can install it on Linux (
https://docs.microsoft.com/en-us/pow...w=powershell-7), I'd strongly recommend you don't. Linux has a FAR more robust set of tools available to you than powershell will, so you would be having a short-term benefit of being able to run (with some changes) powershell scripts on Linux, at the expense of long-term gains. Which would be a more robust, powerful set of scripts. Powershell was written to try to bring SOME of the power of *nix to Windows, but it still lacks greatly. The only way to truly do this is to determine what the script does and find the equivalent Linux commands to perform the same operations.
Past that, you need to read the "Question Guidelines" link in my posting signature; before we can help we need details, like version/distro of Linux, what you mean by "running Powershell scripts on Linux against Windows 2016 servers), and what the actual issues are. Seeing the scripts would help too.