IISHelper
Description
PowerShell module for managing and automating tasks related to IIS servers.
Link to the Code
Features
- Manage IIS sites, application pools, and bindings.
- Automate the creation, configuration, and removal of IIS resources.
- Backup and restore NTFS and share permissions for IIS servers.
- Configure IIS logging, authentication, and shared folders.
- Replace SSL certificates and manage URL rewrite rules.
- Bulk migrate or remove IIS sites across farms or standalone servers.
- Generate reports and logs for IIS configurations.
Functions
Site Management
Add-IISWebsite: Creates a new IIS website and application pool.Remove-IISWebsite: Removes an IIS website and associated resources.Get-IISWebsite: Retrieves IIS site information from local or remote servers.Invoke-IISWebsiteBulk: Bulk migrate or remove IIS sites.
Application Pool Management
Rename-AppPool: Renames an IIS application pool and updates associated sites.Set-AppPoolItemProperty: Configures properties for IIS application pools.
Binding and Certificate Management
Invoke-IISSwapBindings: Swaps bindings between two application pools (Blue/Green deployments).Invoke-IISCertificateReplacement: Replaces wildcard certificates on IIS servers.
Shared Folder Management
Set-IISShares: Configures and manages IIS shared folders.Backup-IISSharedFolderAccess: Backs up NTFS and share permissions for IIS servers.Restore-IISSharedFolderAccess: Restores NTFS and share permissions from a backup.
URL Rewrite Management
Add-IISURLRewriteRule: Creates URL rewrite rules for IIS sites.
Utilities
Get-IISShares: Retrieves and verifies IIS shared folder configurations.Get-IISFolderSecurityGroupExceptions: Identifies NTFS ACL exceptions for IIS folders.Clear-IISSharedFolderAccess: Adjusts NTFS and share permissions based on policy.Invoke-IISServerConfig: Configures a new IIS server with required features and settings.