Skip to content

Commit

Permalink
Only conditionally import WebAdministration module
Browse files Browse the repository at this point in the history
  • Loading branch information
brianary committed Jun 29, 2018
1 parent 56afea5 commit e0768e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Grant-CertificateAccess.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
#Requires -Version 3
#TODO: require admin formally once everything is > PowerShell 3
#-Requires -RunAsAdministrator
#Requires -Module WebAdministration
# WebAdministration is conditionally imported below, since it's only needed for AppPools.
#-Requires -Module WebAdministration
[CmdletBinding(ConfirmImpact='Medium',SupportsShouldProcess=$true)] Param(
[Parameter(Position=0,Mandatory=$true,ParameterSetName='AppPool')]
[string]$AppPool,
Expand Down

0 comments on commit e0768e2

Please sign in to comment.