Solved

give sysadmin previledge back to BUILTIN\Administrators

Posted on 2010-09-17
4
463 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
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now