LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2020, 09:13 AM   #1
webtracer
LQ Newbie
 
Registered: Feb 2020
Posts: 1

Rep: Reputation: Disabled
Question Powershell for Linux


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

Last edited by webtracer; 02-10-2020 at 09:15 AM. Reason: Added a note
 
Old 02-10-2020, 10:27 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by webtracer View Post
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.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 25 Years of Slackware, PowerShell Snap, REAPER on Linux, Linux Geek Bundle | This Week in Linux 33 LXer Syndicated Linux News 0 07-27-2018 12:41 AM
LXer: Microsoft open-sources PowerShell for Linux, Macs. Repeat, Microsoft open-sources PowerShell for Linux LXer Syndicated Linux News 0 08-19-2016 03:50 AM
Linux PDA/tablet running Wine/PowerShell kevinyeandel Linux - Mobile 3 10-24-2012 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration