Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I remove the Builtin\Administrators group with TSQL?

Status
Not open for further replies.

laker42

Programmer
Feb 11, 2003
60
0
0
US
I am creating a script that will perform a bunch of steps to lock down any new servers that we create. One of the steps is to remove the builtin\Administrators group. I have tried using sp_dropgroup and sp_droprole but neither of them work. Is there a way to drop this group via TSQL?

Thanks!
John
 
This is a login not a group (as far as sql server is concerned)

look at sp_droplogin

HTH

 
When I run sp_droplogin 'BUILTIN\Administrators' it comes back and says the login does not exist. If you go into EM, it is right there. Any other ideas?

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top