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:

  • Share on Facebook (Opens in new window) Facebook
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on X (Opens in new window) X
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Email a link to a friend (Opens in new window) Email
  • 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

  • Remote Desktop Connection Manager
  • Creating a Chat Bot with Microsoft's QnA Maker and Azure Bot Service
  • Creating Runbooks in Azure and Calling Them from SharePoint Using Webhooks and Flow
  • Registration open for Boston Area SharePoint Users Group on 11/10/10
  • Converting new lines into line breaks in C#

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