Set-IISShares
SYNOPSIS
Configure and manage IIS shared folders.
SYNTAX
DESCRIPTION
This function configures and manages IIS shared folders on specified servers. It creates or updates shares, sets NTFS permissions, and ensures proper Active Directory group assignments. It also supports removing specific shares like "Logs" if required.
EXAMPLES
EXAMPLE 1
Configures IIS shared folders on the servers "SRVIIS01" and "SRVIIS02" using the specified application and log drives.
EXAMPLE 2
Configures IIS shared folders on the server "SRVIIS01" and removes the "Logs" share if it exists.
PARAMETERS
-server
An array of server names where the IIS shared folders will be configured.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-appDrive
The drive letter to use for application data (default: 'M').
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: M
Accept pipeline input: False
Accept wildcard characters: False
-logDrive
The drive letter to use for logging (default: 'L').
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: L
Accept pipeline input: False
Accept wildcard characters: False
-removelogs
A switch to indicate whether the "Logs" share should be removed.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False