Set-FolderCustomIcon

SYNOPSIS

Will change the icon of a folder to a custom selected icon

SYNTAX

Set-FolderCustomIcon [[-FolderPath] <DirectoryInfo>] [[-CustomIconPath] <String>] [[-Index] <Int32>]
 [<CommonParameters>]

DESCRIPTION

Will change the icon of a folder to a custom selected icon

EXAMPLES

EXAMPLE 1

Set-FolderCustomIcon -FolderPath C:\temp -CustomIconPath C:\WINDOWS\System32\SHELL32.dll -Index 27

PARAMETERS

-FolderPath

Path to the folder to be changed.

Type: DirectoryInfo
Parameter Sets: (All)
Aliases:

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

-CustomIconPath

Path to the .ico, .exe, .icl or .dll file, containing the icon.

Type: String
Parameter Sets: (All)
Aliases:

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

-Index

The index of the icon in the file.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 0
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.Object[]

NOTES

General notes