Skip to content

Latest commit

 

History

History
180 lines (126 loc) · 3.66 KB

Install-PSPreview.md

File metadata and controls

180 lines (126 loc) · 3.66 KB
external help file Module Name online version schema
PSReleaseTools-help.xml
PSReleaseTools
2.0.0

Install-PSPreview

SYNOPSIS

Install the latest PowerShell Preview on Windows.

SYNTAX

Install-PSPreview [[-Path] <String>] [[-Mode] <String>] [-EnableRemoting] [-EnableContextMenu]
 [-EnableRunContext] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

This command is intended to make it easy to download and install the latest PowerShell preview 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. If you have previous PowerShell preview versions installed, they will be either removed or overwritten.

This command will only work on Windows platforms. Non-Windows platforms have native installation tools.

EXAMPLES

Example 1

PS C:\> Install-PSPreview -mode Passive -EnableRemoting

Download and install using the passive mode which will only display a progress bar. PowerShell remoting will also be enabled.

PARAMETERS

-Path

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

-Mode

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

-EnableContextMenu

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

-EnableRemoting

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

-EnableRunContext

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

-WhatIf

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

-Confirm

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

None

NOTES

Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/

RELATED LINKS

Save-PSReleaseAsset

Install-PowerShell