When using Set-User -Identity "sitecore\TestUser" or Set-User -Identity "sitecore\TestUser" -Enabled:$false I would expect the user to be disabled.
Actual Behavior
User is not disabled and I'm unable to disable a user using Set-User with the Enabled switch parameter set to false or not specified. Although I can enable a user using Set-User -Identity "sitecore\TestUser" -Enabled if that user has been disabled using the Sitecore User Manager.
Steps to Reproduce the Problem
Create test user "sitecore\TestUser" using Sitecore User Manager
Run Set-User -Identity "sitecore\TestUser" -Enabled:$false
Check to see if user is disabled either in Sitecore user manager or using Get-User -Identity "sitecore\TestUser"
Expected Behavior
When using
Set-User -Identity "sitecore\TestUser"
orSet-User -Identity "sitecore\TestUser" -Enabled:$false
I would expect the user to be disabled.Actual Behavior
User is not disabled and I'm unable to disable a user using Set-User with the Enabled switch parameter set to false or not specified. Although I can enable a user using
Set-User -Identity "sitecore\TestUser" -Enabled
if that user has been disabled using the Sitecore User Manager.Steps to Reproduce the Problem
Set-User -Identity "sitecore\TestUser" -Enabled:$false
Get-User -Identity "sitecore\TestUser"
Sitecore PowerShell Extensions 4.7.0.25828 Sitecore 8.2 Update 5 Windows PowerShell 5.1
Thanks.