EvotecIT / Testimo

Testimo is a PowerShell module for running health checks for Active Directory against a bunch of different tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service Status fails on value "Auto"

decopaper opened this issue · comments

The Service Status START TYPE checks appear to be finding the value Auto, while expecting the value Automatic. This appears to have started 2020-10-19, as the same test performed the day previous (2020-10-18) did not fail.

The tests are run on a remote VM against two domain controller VMs. All three OSes are Server 2016. One DC was rebooted after this behavior started with no change.

[i][<domain>][<controller>] Service Status [Informative]
   [t][<domain>][<controller>] Service Status [Pass] [Data is available.]
   [t][<domain>][<controller>] ADWS Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] ADWS Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] DNS Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] DNS Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] DFS Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] DFS Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] DFSR Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] DFSR Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] Eventlog Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] Eventlog Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] EventSystem Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] EventSystem Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] KDC Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] KDC Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] LanManWorkstation Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] LanManWorkstation Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] LanManServer Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] LanManServer Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] NetLogon Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] NetLogon Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] NTDS Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] NTDS Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] RPCSS Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] RPCSS Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] SAMSS Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] SAMSS Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] Spooler Service is STOPPED [Pass] [Expected value (Equal): Stopped]
   [t][<domain>][<controller>] Spooler Service START TYPE is DISABLED [Pass] [Expected value (Equal): Disabled]
   [t][<domain>][<controller>] W32Time Service is RUNNING [Pass] [Expected value (Equal): Running]
   [t][<domain>][<controller>] W32Time Service START TYPE is Automatic [Fail] [Expected value (Equal): Automatic, Found value: Auto]
   [t][<domain>][<controller>] XblAuthManager Service is STOPPED [Pass] [Expected value (Either Value): Stopped or N/A]
   [t][<domain>][<controller>] XblAuthManager Service START TYPE is Disabled [Pass] [Expected value (Either Value): Disabled or N/A]
   [t][<domain>][<controller>] XblGameSave Service is STOPPED [Pass] [Expected value (Either Value): Stopped or N/A]
   [t][<domain>][<controller>] XblGameSave Service START TYPE is Disabled [Pass] [Expected value (Either Value): Disabled or N/A]

I believe the update comes from my change in PSSharedGoods where I've rewritten Get-PSService cmdlet because of issues. For now force PSSharedGoods earlier version and I'll check if more things are broken with recent changes.

I had to change the way code tested services because in certain cases it would never terminate and was sluggish.

To reproduce:

Get-PSService | ft