ticketmaster / poshspec

Infrastructure Testing DSL running in Pester
MIT License
183 stars 32 forks source link

Additional Test: LocalUser #33

Closed michaeltlombardi closed 8 years ago

michaeltlombardi commented 8 years ago

It would be useful to test for the existence/settings of local user accounts, such as Guest. We already have the ability to test for whether or not Local Groups exist.

Example

LocalUser Guest { Should Not BeNullOrEmpty } # Guest account should exist
LocalUser Guest Disabled { Should Be $True }    # And should be disabled.