Run PowerShell options and best practices?

What are my options to allow a PowerShell script to run on a domain joined computer?
What are my options to allow a PowerShell script to run on a non-domain joined computer?
I have been directed to https://technet.microsoft.com/en-us/library/hh847748.aspx
I want to learn about best practices to implement PowerShell script execution.
Steven HelmsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pjamCommented:
PowerShell is very powerful, that said proceed with caution.
You can probably do more with the newer versions of PowerShell on servers (more than one at a time) and computers than you can with all the GUI Apps available.
What Server OS do you have?  this determines what version of PowerShell is installed.
Version 5 is coming out, but 3 or 4 is probably sufficient for now.
For starters I would recommend watching the PowerShell 3 Jumpstart series put on by the PS engineer himself, Jeffrey Snover at:
https://channel9.msdn.com/Series/GetStartedPowerShell3/01
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pjamCommented:
Then take a week long class in PowerShell 3 or 4.  I just completed Microsoft Official course 10961B and my head is swirling at the possibilities.
0
Will SzymkowskiSenior Solution ArchitectCommented:
Take a look at the link below by Ed Wilson (Powershell MVP) which outlines the top 10 best practices when it comes to powershell.
http://blogs.technet.com/b/heyscriptingguy/archive/2012/06/18/the-top-ten-powershell-best-practices-for-it-pros.aspx

Will.
0
McKnifeCommented:
Hi.
To allow a PowerShell script to run on a domain joined computer, you will need to change the default execution policy to allow remote-signed scripts. This can be done via GPO, see http://www.techrepublic.com/blog/the-enterprise-cloud/set-the-powershell-execution-policy-via-group-policy/ for a howto.
On a non-domain joined computer, you can set it only manually using the command (in powershell)
Set-ExecutionPolicy RemoteSigned

Open in new window


Best practices? This will need more explanation from you. What are you trying to do?
0
Steven HelmsAuthor Commented:
Thank you for starters.  The videos with Jeffrey Snover are great.  I recognize the object constructs from my Delphi programming.   I will continue my education.  Thank you for the specifics on how to make the scripts execute.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.