Skip to content

Instantly share code, notes, and snippets.

@michaellwest
Created July 30, 2020 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellwest/30fba06b6f92cb643eece9d407c695c1 to your computer and use it in GitHub Desktop.
Save michaellwest/30fba06b6f92cb643eece9d407c695c1 to your computer and use it in GitHub Desktop.
Unlock the Sitecore Admin account.
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