Set-SharedPSProfile

SYNOPSIS

Redirects PowerShell and WindowsPowerShell profile folder to another path.

SYNTAX

Current (Default)

Set-SharedPSProfile [-CurrentUser] [-SharedProfilePath <DirectoryInfo>] [<CommonParameters>]

Other

Set-SharedPSProfile [-OtherUser] [-ProfilePath <String>] [-SharedProfilePath <DirectoryInfo>]
 [<CommonParameters>]

DESCRIPTION

Redirects PowerShell and WindowsPowerShell profile folder to another path.

EXAMPLES

EXAMPLE 1

Set-SharedPSProfile -CurrentUser -SharedProfilePath "\\nas01\profile"

PARAMETERS

-CurrentUser

Will change the currently logged on user's folders.

Type: SwitchParameter
Parameter Sets: Current
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-OtherUser

Will change another user's folders.

Type: SwitchParameter
Parameter Sets: Other
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProfilePath

The Other Users' Profile Path.

Type: String
Parameter Sets: Other
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SharedProfilePath

Path to new folder. Folders PowerShell and WindowsPowerShell will be created if it doesn't exists.

Type: DirectoryInfo
Parameter Sets: (All)
Aliases:

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

OUTPUTS

NOTES

General notes