< Back
Show-DriveLetter
Post
NAME Show-DriveLetter
SYNOPSIS
Sets the drive letter to be visible to Windows Explorer.
SYNTAX
Show-DriveLetter [[-DriveLetter] <String[]>] [<CommonParameters>]
DESCRIPTION
Makes sure a drive letter is visible to Windows Explorer. Windows Explorer must be restarted for all changes to
take effect.
PARAMETERS
-DriveLetter <String[]>
The drive letter to show.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByValue)
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
System.String[]
OUTPUTS
System.Object
NOTES
Example 1
C:\\> Show-DriveLetter -DriveLetter C -Verbose
VERBOSE: Showing Drive Letter [C]
VERBOSE: Please restart explorer for changes to take effect
PS C:\\> Stop-Process -Name explorer -Verbose -Force
VERBOSE: Performing the operation "Stop-Process" on target "explorer (xxxx)".
This example enables the "C" drive to be visible to Explorer and then restarts explorer to show the changes
immediately.
RELATED LINKS
Github https://github.com/dchristian3188/HideW ... orerDrives
SYNOPSIS
Sets the drive letter to be visible to Windows Explorer.
SYNTAX
Show-DriveLetter [[-DriveLetter] <String[]>] [<CommonParameters>]
DESCRIPTION
Makes sure a drive letter is visible to Windows Explorer. Windows Explorer must be restarted for all changes to
take effect.
PARAMETERS
-DriveLetter <String[]>
The drive letter to show.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByValue)
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
System.String[]
OUTPUTS
System.Object
NOTES
Example 1
C:\\> Show-DriveLetter -DriveLetter C -Verbose
VERBOSE: Showing Drive Letter [C]
VERBOSE: Please restart explorer for changes to take effect
PS C:\\> Stop-Process -Name explorer -Verbose -Force
VERBOSE: Performing the operation "Stop-Process" on target "explorer (xxxx)".
This example enables the "C" drive to be visible to Explorer and then restarts explorer to show the changes
immediately.
RELATED LINKS
Github https://github.com/dchristian3188/HideW ... orerDrives