How do I install PCSX Powershell module?

前端 未结 5 2038
忘掉有多难
忘掉有多难 2021-02-13 11:28

I\'m running Windows 7 with PowerShell 2 installed.

I\'ve downloaded version 2.1 from here - http://pscx.codeplex.com/releases

The Release notes say

    <
相关标签:
5条回答
  • 2021-02-13 12:08

    After spending lot of time searching here and there, i found this blog has very clear steps to solve. try it may helps u ..

    http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/18/install-the-pscx-and-80-new-cmdlets-to-ease-powershell-use.aspx

    0 讨论(0)
  • 2021-02-13 12:12

    I hadn't actually completed the last step of my above question completely which turned out to be the answer.

    Here is that answer for completeness

    • Unblock the zip file you have downloaded
    • extract the zip file - this will likely give a folder structure of Pscx-2.1.0/Pscx-2.1.0/{lots of files}
    • rename the child folder to Pscx - ie - Pscx-2.1.0/Pscx/{lots of files}
    • In Powershell prompt run (Get-ChildItem Env:\PSModulePath).Value and note the modules folder location.
    • Copy the child Pscx folder to the Modules folder location given above.
    • In Powershell prompt run Get-Module -ListAvailable to see the Pscx module available.
    0 讨论(0)
  • 2021-02-13 12:17

    In PowerShell 5.0, you can do:

    Find-Package pscx | ? ProviderName -eq PSModule | Install-Package -Force
    

    The -Force parameter will cause it to upgrade if an older version is already installed.

    In PowerShell 5.1, you'll need:

    Find-Package pscx | ? ProviderName -eq PowerShellGet | Install-Package -Force
    

    or

    Find-Package pscx -ProviderName PowerShellGet | Install-Package -Force
    

    or just

    Install-Package pscx -Force
    
    0 讨论(0)
  • 2021-02-13 12:18

    You can also use PsGet to easily search and install PowerShell modules.

    You can check which modules have been added to PsGet by browsing for all modules:

    > Get-PsGetModuleInfo *
    

    Or locate this one specfically:

    > Get-PsGetModuleInfo pscx
    

    Then you can install based on that information:

    > Install-Module pscx
    
    0 讨论(0)
  • 2021-02-13 12:21

    Just run

    choco install pscx
    

    See chocolatey.org for a one-liner to get the choco command.

    Keep in mind you may still have to call this in your scripts before running their commands:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser #allows scripts to run from the interwebs, such as pcsx
    
    0 讨论(0)
提交回复
热议问题