Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

give sysadmin previledge back to BUILTIN\Administrators

Posted on 2010-09-17
4
Medium Priority
?
474 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 2000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

916 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