Skip to content

Instantly share code, notes, and snippets.

@RosenPetrov
RosenPetrov / Configure-AppPoolAccessToPerformanceMonitoring.ps1
Created June 22, 2018 06:47
PowerShell script for configuring Performance Counters access in Sitecore 9
function IISReset {
[CmdletBinding(SupportsShouldProcess = $true)]
Param
(
[string]$Reason,
[int]$TryNumber = 0,
[switch]$Force
)
if ($Force -or $PSCmdlet.ShouldProcess("IIS", $Reason)) {