Skip to content

Instantly share code, notes, and snippets.

@Meligy
Last active December 4, 2018 17:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Meligy/5948142 to your computer and use it in GitHub Desktop.
Save Meligy/5948142 to your computer and use it in GitHub Desktop.
if((Get-WebConfiguration -Filter /system.webServer/isapiFilters/filter |
Where-Object -Property path -EQ $isapiDllPath) `
-eq $null) {
Add-WebConfiguration -Filter /system.webServer/isapiFilters `
-Value @{
name = $isapiName;
path = $isapiDllPath;
preCondition = $preConditionIfAny
} `
-PSPath 'IIS:\';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment