none
Isn't there a language reference for PowerShell? RRS feed

  • Question

  • Is there an actual PowerShell language reference anywhere on the Microsoft site? I sure haven't found one, just blogs and notes and hints, and then Google takes you over to stackoverflow and such places. I decided to try to do a small hack in PowerShell, and it has many cute features, but everything is just slightly wonky - and there is no reference manual at all? SQL Server has an excellent tradition in "Books On Line" (BOL). I realize that other Microsoft products don't always, but Microsoft keeps talking up PowerShell, have been for ten years or more - and in all that time, they never wrote and published a reference manual? Is that possible? Is that somehow a virtue?  More fun for the developers, more exclusive, more resume enhancing?

    Or have I just missed a simple URL? :)

    Thanks,

    Josh

    Tuesday, January 17, 2017 1:49 AM

Answers

  • Good recommendation above.

    Use these as well.

    Links:

    https://powershell.org/

    https://msdn.microsoft.com/powershell

    http://www.powershellgallery.com/

    https://mva.microsoft.com/training-topics/powershell

    Books:

    https://blogs.msdn.microsoft.com/microsoft_press/2015/10/15/new-book-windows-powershell-step-by-step-third-edition/



    Regards,

    Satyajit

    Please “Vote As Helpful” if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:06 PM
    Tuesday, January 17, 2017 9:43 AM
  • PowerShell reference material linked here:

    https://technet.microsoft.com/en-us/library/bb978526.aspx

    Also some online training here:

    https://mva.microsoft.com/en-us/training-courses/getting-started-with-powershell-3-0-jump-start-8276?l=r54IrOWy_2304984382


    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:06 PM
    Tuesday, January 17, 2017 9:55 AM
  • Powershellmagazine made one thats uploaded to technet. It is short but VERY useful :-)

    It also refers to sites with code repositories, examples and more.

    http://download.microsoft.com/download/4/3/1/43113f44-548b-4dea-b471-0c2c8578fbf8/powershell_langref_v4.pdf

    The linked one is their powershell 4.0 lang ref. Works nicely.


    All the best, Jesper Hassing - MCTS SCCM 2012 - MCSA 2012 Server - MCP

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:06 PM
    Tuesday, January 17, 2017 10:02 AM
  • Hello,

    the whole help for PowerShell can be found with the Get-Help Cmdlet. All of the topics shown there are also online available, here for example:

    https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/export-csv

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:07 PM
    Tuesday, January 17, 2017 7:41 AM

All replies

  • Hello,

    the whole help for PowerShell can be found with the Get-Help Cmdlet. All of the topics shown there are also online available, here for example:

    https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/export-csv

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:07 PM
    Tuesday, January 17, 2017 7:41 AM
  • Good recommendation above.

    Use these as well.

    Links:

    https://powershell.org/

    https://msdn.microsoft.com/powershell

    http://www.powershellgallery.com/

    https://mva.microsoft.com/training-topics/powershell

    Books:

    https://blogs.msdn.microsoft.com/microsoft_press/2015/10/15/new-book-windows-powershell-step-by-step-third-edition/



    Regards,

    Satyajit

    Please “Vote As Helpful” if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:06 PM
    Tuesday, January 17, 2017 9:43 AM
  • PowerShell reference material linked here:

    https://technet.microsoft.com/en-us/library/bb978526.aspx

    Also some online training here:

    https://mva.microsoft.com/en-us/training-courses/getting-started-with-powershell-3-0-jump-start-8276?l=r54IrOWy_2304984382


    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:06 PM
    Tuesday, January 17, 2017 9:55 AM
  • Powershellmagazine made one thats uploaded to technet. It is short but VERY useful :-)

    It also refers to sites with code repositories, examples and more.

    http://download.microsoft.com/download/4/3/1/43113f44-548b-4dea-b471-0c2c8578fbf8/powershell_langref_v4.pdf

    The linked one is their powershell 4.0 lang ref. Works nicely.


    All the best, Jesper Hassing - MCTS SCCM 2012 - MCSA 2012 Server - MCP

    • Marked as answer by JRStern Tuesday, January 17, 2017 10:06 PM
    Tuesday, January 17, 2017 10:02 AM
  • All useful, thanks, though none of them seems an actual language reference.

    But I guess they're all answers even if the answer is negative.

    Online help is nice, but typically a reference takes a little more space and works through a few more examples and also has chapters that document overall rules, designs, and conventions.

    Thanks,

    Josh

    Tuesday, January 17, 2017 10:06 PM
  • There don't appear to be any conditional statements like IF, or looping statements, except foreach.
    Thursday, September 14, 2017 1:03 AM
  • Hi Dave,

    Please start new post with a reference or example. Post the link back here if you want to.

    <object data-extension-version="0.5.0.161" data-install-updates-user-configuration="true" data-supports-flavor-configuration="true" id="__symantecPKIClientMessenger" style="display:none;"></object>

    Regards,

    Satyajit

    Please “Vote As Helpful” if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

    Friday, September 15, 2017 6:41 PM
  • That doesn't qualify as a language reference. It's all helpful material, but not a language reference. A language reference will discuss things like how to declare variables, scope of variables, how to create functions in a script, what loop and conditional constructs are available, etc.
    Thursday, March 14, 2019 9:45 PM
  • Here's an actual language reference, but it is out of date. However, if you're just getting started, I'm betting that there haven't been huge, fundamental changes between 3.0 and current. But I could be wrong. At any rate, I did find this, and it is a reference:

    https://www.microsoft.com/en-us/download/details.aspx?id=36389

    • Proposed as answer by tsul Thursday, March 28, 2019 9:53 AM
    Thursday, March 14, 2019 10:19 PM
  • The documentation you are probably looking for is under the about_ pages of the built-in docs. It contains topics discussing the various concepts like functions, variables and scope.

    You can find the online version here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/?view=powershell-6


    • Edited by Rhys Parry Tuesday, May 28, 2019 9:19 AM Linkified
    • Proposed as answer by Rhys Parry Tuesday, May 28, 2019 9:19 AM
    Tuesday, May 28, 2019 1:39 AM