Skip to main content
Version: 2.2.1-preview

Resolve-MtSysvolRelativePath

SYNOPSIS​

Validates and normalizes a path below a GPO's SYSVOL directory.

SYNTAX​

Resolve-MtSysvolRelativePath [[-Path] <String>] [-AllowEmpty] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION​

Rejects rooted paths, parent traversal, alternate data streams, control characters, and SMB command delimiters before returning a slash-normalized relative path.

EXAMPLES​

EXAMPLE 1​

Resolve-MtSysvolRelativePath -Path 'Machine/Preferences/Groups/Groups.xml'

PARAMETERS​

-Path​

Relative path below the selected GPO directory.

Type: String
Parameter Sets: (All)
Aliases:

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

-AllowEmpty​

Allows an empty path for operations that address the GPO root.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-ProgressAction​

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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​

System.String​

NOTES​