Solved

give sysadmin previledge back to BUILTIN\Administrators

Posted on 2010-09-17
4
469 Views
Last Modified: 2012-05-10
If sysadmin role was removed from BUILTIN\Administrators a while back,and needed to give it back, how can it be done?

0
Comment
Question by:anushahanna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Cboudroz
ID: 33704016
You need to be sysadmin and run:

-- Run this if User has been drop from Server Login
CREATE LOGIN [BUILTIN\Administrators] FROM WINDOWS WITH DEFAULT_DATABASE=[master]

-- Run this to add it back to sysadmin roles
EXEC master..sp_addsrvrolemember @loginame = N'BUILTIN\Administrators', @rolename = N'sysadmin'
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33704062
can this done through the OS?
0
 
LVL 7

Accepted Solution

by:
Cboudroz earned 500 total points
ID: 33704315
it's a SQL security so you need to connect to SQL server and run these command.  

You can used sqlcmd Utility to run the command if you don't want to use  management studio.

http://msdn.microsoft.com/en-us/library/ms162773.aspx


but make sure you connect as sysadmin.



 
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33704328
thanks.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question