< Back
Initialize-PhpSwitcher
Post
NAME Initialize-PhpSwitcher
SYNOPSIS
Initializes the PHP Switcher.
SYNTAX
Initialize-PhpSwitcher [-Alias] <String> [[-Scope] <String>] [-Force] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Alias <String>
The path where PHP will be visible when switching to a PHP version.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Scope <String>
Initialize the PHP Switcher for the current user only ('CurrentUser' - default), or for any user ('AllUsers').
Required? false
Position? 100
Default value CurrentUser
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Force the creation of a PHP Switcher even if there's already an existing switcher.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Initialize-PhpSwitcher C:\\PHP
Add-PhpToSwitcher 5.6 C:\\PHP5.6
Add-PhpToSwitcher 7.2 C:\\PHP7.2
Switch-Php 5.6
RELATED LINKS
SYNOPSIS
Initializes the PHP Switcher.
SYNTAX
Initialize-PhpSwitcher [-Alias] <String> [[-Scope] <String>] [-Force] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Alias <String>
The path where PHP will be visible when switching to a PHP version.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Scope <String>
Initialize the PHP Switcher for the current user only ('CurrentUser' - default), or for any user ('AllUsers').
Required? false
Position? 100
Default value CurrentUser
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Force the creation of a PHP Switcher even if there's already an existing switcher.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Initialize-PhpSwitcher C:\\PHP
Add-PhpToSwitcher 5.6 C:\\PHP5.6
Add-PhpToSwitcher 7.2 C:\\PHP7.2
Switch-Php 5.6
RELATED LINKS