Upgrade powershell from Version 2 to version 5.1 on windows server 2008 R2 and Server 2012.

Question

Dear All,

Need you support in remotely upgrading powershell from version 2 to version 5.1 on all windows 2008R2 and Serve 2012 R2.

 

Please share procedure.

solved 0
imtiyaz patel 4 months 5 Answers 90 views Beginner 0

Answers ( 5 )

  1. No Dear, I don’t have a script. I cannot run Psexec because it is blocked in my environment. I learned that powershell 5.1 has a dependency of .net version 4.5 or above. So basically I am looking for a script which will check the dependencies and if required it will install the supplied .net package and then proceed with powershell upgrade. Any suggestions ?

  2. You can deploy the script through sccm ..isn’t it?

    Do you already have a script?

  3. Thanks for your response Anoop. I am looking for a procedure to upgrade ps through SCCM.

  4. But what is the trouble you are getting here?

    Can you try the following on the test machine using PsExec or do you want to try this using SCCM?

    You can try this forum
    https://powershell.org/forums/topic/remote-deploy-update-powershell-version/

    or

    PsExec.exe \computername -u domainusername -p password cmd /c “echo . | powershell Set-ExecutionPolicy RemoteSigned

    PsExec.exe \computername -u queensburyusername -p password cmd /c “echo . | powershell \yourcomputerb$temppowershell_Deployment.ps1″‚Äč

    You can try the following script http://newdelhipowershellusergroup.blogspot.com/2012/02/automate-server-administration-tools.html

Leave an answer

Sorry, you do not have a permission to answer to this question .