external help file | Module Name | online version | schema |
---|---|---|---|
PSReleaseTools-help.xml |
PSReleaseTools |
2.0.0 |
Install the latest PowerShell 7.x version on Windows.
Install-PowerShell [[-Path] <String>] [-EnableRemoting] [-EnableContextMenu]
[-EnableRunContext] [[-Mode] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
This command is intended to make it easy to download and install the latest PowerShell (7.x) stable release on Windows platforms. The command will download the 64bit MSI package and initiate the installation process. You can control how much of the installation you want to interact with. The default is the full, interactive installer. Previous versions will either be removed or overwritten based on the MSI package. You also have options to enable PowerShell remoting over WSMan as well as enable a context menu in Windows Explorer to open the current location in a PowerShell session.
This command will only work on Windows platforms. Non-Windows platforms have better native installation tools.
This command has an alias of Install-PSCore for backward compatibility.
PS C:\> Install-PowerShell -mode Passive -EnableRemoting -EnableContextMenu -EnableRunContext
Download and install using the passive mode which will only display a progress bar. PowerShell remoting will be enabled as well as the "Open in PowerShell" context menu in Windows Explorer.
Specify the path to the download folder.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: $env:\temp
Accept pipeline input: False
Accept wildcard characters: False
Specify what kind of installation you want.
- Quiet is no interaction at all.
- Passive will display a progress bar.
- Full is the complete interactive experience.
The default is a full interactive install.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Full, Quiet, Passive
Required: False
Position: 1
Default value: Full
Accept pipeline input: False
Accept wildcard characters: False
Enable the PowerShell context menu in Windows Explorer.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Enable PowerShell Remoting over WSMan.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Add 'Run with PowerShell 7' context menu for PowerShell files.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/