Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9258921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:31:44+00:00 2026-06-18T12:31:44+00:00

After renaming the computer, SQL server windows authentication fails, saying OldPC\user1 couldn’t be authenticated.

  • 0

After renaming the computer, SQL server windows authentication fails, saying OldPC\user1 couldn’t be authenticated. Rather it should look for NewPC\user1. How to resolve the issue ?

I read this SO quest. The accepted solution suggested here, say to stop SQL server instance as below –

enter image description here

But for me Sql server Configuration displays this error –

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:31:45+00:00Added an answer on June 18, 2026 at 12:31 pm

    An alternative that doesn’t require restarting the service, starting in single user mode, etc. is to use PSExec from SysInternals (well, Microsoft now). You can run this to launch SSMS:

    PsExec -s -i "C:\Program Files (x86)\...\ssms.exe"
    --------^ s = "system"
    

    You will be prompted to connect. The authentication method will be Windows auth, and the username will be hard-coded to NT AUTHORITY\SYSTEM. Once connected, you will be able to go into security and fix the sa password, add yourself as admin, add other admins, etc.

    The following article has more details and several caveats you should read before trying this. You may also want to review the comments at the bottom:

    • Recover access to a SQL Server instance

    Of course after you’ve changed the underlying server name you probably want to restart anyway, after issuing the following:

    EXEC sp_dropserver N'OldPC';
    GO
    EXEC sp_addserver N'NewPC', LOCAL;
    GO
    

    Also, if you’ve hard-coded the SQL Server service to start as a local user, say OldPC\user1, and you’ve renamed the server, you’ll also want to fix that in the properties of the service. Right-click in SQL Server Configuration Manager, hit Properties, move to the Log On tab, fix the user name / password, hit Apply, say yes to the prompt about restarting the service, and restart the service.

    enter image description here

    But you shouldn’t need to use single-user mode, which essentially requires you to restart twice.


    One way to avoid this problem: leave your machine name as OldPC. Or decide on the final name of the server before installing SQL Server and everything else…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a strange one. After renaming a class, one of my forms began giving
After deploying WCF server (svc) on my Server, I have got this message when
After a system upgrade i am no longer able to start my tomcat5 server.
I had my form processes working perfectly but after renaming the form action to
My web project was working perfectly, it includes: spring3 and hibernate3 . After renaming
My web project was working perfectly, it includes: spring3 and hibernate3 . After renaming
In the following code, how much does renaming fields after a join hurt the
After file upload, I am renaming with this code (in CI) rename ( ./upload/temp/{$data1['upload_data']['client_name']},
after renaming my main class to Main and my main xml to main i
After renaming my heroku app from the heroku website, whenever I cd to its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.