Created
July 30, 2020 19:01
-
-
Save michaellwest/30fba06b6f92cb643eece9d407c695c1 to your computer and use it in GitHub Desktop.
Unlock the Sitecore Admin account.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Function -Name Invoke-SqlCommand | |
$connection = [Sitecore.Configuration.Settings]::GetConnectionString("core") | |
$query = @" | |
SELECT TOP (10) * | |
FROM [dbo].[aspnet_Membership] | |
WHERE [IsLockedOut] = '1' | |
"@ | |
Invoke-SqlCommand -Connection $connection -Query $query |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment