Upgrade-PowerShell
1.0
The script will upgrade the powershell version to whatever is supplied as
the 'version' on the host. The current versions can be set as the target
'version':
- 3.0
- 4.0
- 5.1 (default if -Version not set)
This script can be run on the following OS'
Windows Server 2008 (with SP2) - only supported version 3.0
Windows Server 2008 R2 (with SP1)
W
the 'version' on the host. The current versions can be set as the target
'version':
- 3.0
- 4.0
- 5.1 (default if -Version not set)
This script can be run on the following OS'
Windows Server 2008 (with SP2) - only supported version 3.0
Windows Server 2008 R2 (with SP1)
W
The script will upgrade the powershell version to whatever is supplied as
the 'version' on the host. The current versions can be set as the target
'version':
- 3.0
- 4.0
- 5.1 (default if -Version not set)
This script can be run on the following OS'
Windows Server 2008 (with SP2) - only supported version 3.0
Windows Server 2008 R2 (with SP1)
Windows Server 2012
Windows Server 2012 R2
Windows Server 2016
Windows 7 (with SP1)
Windows 8.1
Windows 10
All OS' can be upgraded to 5.1 except for Windows Server 2008. If running
on Powershell 1.0 then this script will first upgrade the version to 2.0
before running the checks. This is because a lot of the upgrade paths need
this version installed as a baseline. If the .NET Framework version
installed is less than 4.5.2, it will be upgraded to 4.5.2 as this is
supported on all hosts and is required for v5.0.
As multiple packages can be installed in this process, multiple reboots may
be required to continue with the install. If a reboot is required the
script will detect if the 'username' and 'password' parameters have been
supplied. If they have been supplied it will automatically reboot and login
to continue the install process until it is all complete. If these
parameters are not set then it will prompt the user for a reboot and
require the user to log back in manually after the reboot before
continuing.
A log of this process is created in
$env:SystemDrive\temp\upgrade_powershell.log which is usually C:\temp\. This
log can used to see how the script faired after an automatic reboot.
See https://github.com/jborean93/ansible-windows/tree/master/scripts for more
details.
Show more
the 'version' on the host. The current versions can be set as the target
'version':
- 3.0
- 4.0
- 5.1 (default if -Version not set)
This script can be run on the following OS'
Windows Server 2008 (with SP2) - only supported version 3.0
Windows Server 2008 R2 (with SP1)
Windows Server 2012
Windows Server 2012 R2
Windows Server 2016
Windows 7 (with SP1)
Windows 8.1
Windows 10
All OS' can be upgraded to 5.1 except for Windows Server 2008. If running
on Powershell 1.0 then this script will first upgrade the version to 2.0
before running the checks. This is because a lot of the upgrade paths need
this version installed as a baseline. If the .NET Framework version
installed is less than 4.5.2, it will be upgraded to 4.5.2 as this is
supported on all hosts and is required for v5.0.
As multiple packages can be installed in this process, multiple reboots may
be required to continue with the install. If a reboot is required the
script will detect if the 'username' and 'password' parameters have been
supplied. If they have been supplied it will automatically reboot and login
to continue the install process until it is all complete. If these
parameters are not set then it will prompt the user for a reboot and
require the user to log back in manually after the reboot before
continuing.
A log of this process is created in
$env:SystemDrive\temp\upgrade_powershell.log which is usually C:\temp\. This
log can used to see how the script faired after an automatic reboot.
See https://github.com/jborean93/ansible-windows/tree/master/scripts for more
details.
Installation Options
Owners
Copyright
Jordan Borean 2017
Package Details
Author(s)
- Jordan Borean <jborean93@gmail.com>
Tags
Functions
Write-Log Reboot-AndResume Run-Process Download-File Clear-AutoLogon Download-Wmf5Server2008
Dependencies
This script has no dependencies.
Release Notes
Version 1.0: 2017-09-27
Initial script created
FileList
- Upgrade-PowerShell.nuspec
- Upgrade-PowerShell.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.0 (current version) | 1,209 | 10/5/2017 |