Geoff Varosky's Blog

SharePoint, Office 365, Azure, and Other Musings…

  • Home
  • About
  • Blog Links
  • Calendar
Posts Comments
  • SharePoint
  • SharePoint 2010
  • Events
    • SharePoint Saturday
    • User Groups
      • BASPUG
  • Office 365
  • PowerShell
  • SharePoint Online
  • SharePoint 2013

Resetting SQL Server Account Passwords

March 16, 2018 Leave a comment

Recently ran into an issue where I needed to reset the SQL sa account password. The problem is, no one had administrative access to the SQL instance. However, we did have local administrator access. As of SQL Server 2008, being the local admin, or, being part of the local administrators group does not automatically give you sysadmin access to SQL.

I tried a few methods out there, but nothing seemed to work… finally stumbled across this post on MSSQLTips https://www.mssqltips.com/sqlservertip/2682/recover-access-to-a-sql-server-instance/

The article explains that launching SQL Server Management Studio using PsExec, launches it as NT AUTHORITY\SYSTEM, which does have access to SQL Server by default. Was able to pop into SQL, and reset the sa account password.

.\PsExec -s -i "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"

image

image

It took longer to download and extract the Sysinternals tools than to actually do the work. Saved me a lot of time!

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on X (Opens in new window) X
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print
Like Loading...

Filed under SQL Tagged with password, password recovery, password reset, recover, recovery, reset password, root, sa account, SQL, SQL Server 2008 R2, sysadmin, sysadmin account

Categories

Archives

Top Posts

  • SharePoint Site Collection backup failed–site left locked.
  • System.UnauthorizedAccessException: Filename: redirection.config
  • SharePoint 2016 Web Template List
  • Upgrading to an Enterprise License in SharePoint 20XX
  • Creating an Azure Run As Account

Twitter Feed (@gvaro)

Tweets by gvaro

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 87 other subscribers
All content copyright 2007-2017 Geoff Varosky. All rights reserved.

Blog at WordPress.com.

  • Subscribe Subscribed
    • Geoff Varosky's Blog
    • Join 87 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Geoff Varosky's Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d