You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good day chrisdee,
Running your script produces this error:
PS C:\Automation> C:\Test\CD-HealthChecks.ps1 -domainName xxxxx.org.uk -ReportFile
..domain name specified on cmdline
..testing domain xxxxx.org.uk
..testing domain controller (1 of 1) server01.xxxxx.org.uk
Remove-Variable : Cannot find a variable with the name 'fsmoRoleHTML'.
At C:\Automation\DC-HealthChecks.ps1:493 char:13
For those that are using this script and run in the error, update the fsmoRoleHTML entries on line 490 and 493 by adding a $. So rather than this:
if (Test-Path variable:fsmoRoleHTML)
{
Remove-Variable fsmoRoleHTML
}
You'd have this:
if (Test-Path variable:$fsmoRoleHTML)
Good day chrisdee,
Running your script produces this error:
PS C:\Automation> C:\Test\CD-HealthChecks.ps1 -domainName xxxxx.org.uk -ReportFile
..domain name specified on cmdline
..testing domain xxxxx.org.uk
..testing domain controller (1 of 1) server01.xxxxx.org.uk
Remove-Variable : Cannot find a variable with the name 'fsmoRoleHTML'.
At C:\Automation\DC-HealthChecks.ps1:493 char:13
Running on PS 5.1 Server 2012
please help :)
The text was updated successfully, but these errors were encountered: