Skip to content

Commit dc2ac33

Browse files
Update OMCertCheck.ps1
1 parent 0a08825 commit dc2ac33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Powershell/OMCertCheck.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function SCOM-CertCheck
119119
if ($server -ne $env:COMPUTERNAME)
120120
{
121121
Invoke-Command -ComputerName $server {
122+
$All = $using:All
122123
Function Time-Stamp
123124
{
124125

@@ -154,7 +155,7 @@ $time : Starting Script
154155
Write-Host $text3
155156
foreach ($cert in $certs)
156157
{
157-
if (!$using:All)
158+
if (!$All)
158159
{
159160
$certSerial = $cert.SerialNumber
160161
$certSerialReversed = [System.String]("")

0 commit comments

Comments
 (0)