Search-Guid¶
SYNOPSIS¶
Extracts a GUID from a given string.
SYNTAX¶
Search-Guid [-String] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION¶
This function searches for a GUID within the provided string and returns it. The function accepts input from the pipeline and processes each string to extract GUIDs.
EXAMPLES¶
EXAMPLE 1¶
'The ID is 550e8400-e29b-41d4-a716-446655440000' | Search-Guid
Extracts and returns the GUID 550e8400-e29b-41d4-a716-446655440000
from the input string.
EXAMPLE 2¶
Search-Guid -String 'GUID: 123e4567-e89b-12d3-a456-426614174000'
Returns the extracted GUID 123e4567-e89b-12d3-a456-426614174000
.
PARAMETERS¶
-String¶
The string containing a potential GUID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
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.