|
putao
初级用户
 
积分 80
发帖 41
注册 2007-10-5
状态 离线
|
『楼 主』:
[求助]用runas命令如何自动输入密码?
使用 LLM 解释/回答一下
我想在users组的用户,利用runas打开administrators组中的iis
我用的这么一条命令:runas /user:admin cmd
然后再打开.
不过要提示输入密码 ,我想要自动输入密码,能行吗?
Last edited by lxmxn on 2007-10-21 at 10:53 PM ]
I want to use runas in the users group to open IIS in the administrators group.
I used this command: runas /user:admin cmd
Then open it.
But it prompts for a password. I want to input the password automatically. Can it be done?
Last edited by lxmxn on 2007-10-21 at 10:53 PM ]
|

http://user.qzone.qq.com/182365808 |
|
2007-10-20 11:28 |
|
|
putao
初级用户
 
积分 80
发帖 41
注册 2007-10-5
状态 离线
|
『第 2 楼』:
[求助]请教高手help.help.help.help.help.help.
使用 LLM 解释/回答一下
help.help.help.help.help.help.help.help.help.help.help.help.help.
Please provide the specific content in Chinese that needs to be translated so that I can assist you. Just the repeated "help" alone doesn't have the Chinese content to translate.
此帖被 -8 点积分 点击查看详情 评分人:【 lxmxn 】 | 分数: -4 | 时间:2007-10-20 13:46 | 评分人:【 knoppix7 】 | 分数: -4 | 时间:2007-10-20 14:19 |
|
|

http://user.qzone.qq.com/182365808 |
|
2007-10-20 12:23 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
不要灌水,另外你的问题可以搜索一下,论坛早就有讨论啦。
Don't post non-substantive messages. Also, your question can be searched; there have already been discussions in the forum.
|
|
2007-10-20 13:46 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
什么时候学会搜索了,什么时候就学会学习了: )
方法一:使用VBS的SendKeys来输入密码
echo set pws=WScript.CreateObject("WScript.Shell")>%temp%\pws.vbs
echo pws.SendKeys "1{ENTER}">>%temp%\pws.vbs
wscript %temp%\pws.vbs&runas /u:test1 cmd.exe
方法二:使用/savecred参数
独立用户执行程序时第一次需要建立凭据,其间输入密码是不会回显的,你看不到,输了后回车即可。
以后在运行就不需要输入密码了。
runas /u:test1 cmd.exe 输入密码并回车
runas /savecred /u:test1 explorer 不用输密码了
方法三:用PsTools工具中的PsExec来替代Runas
When you learn to search, you learn to study: )
Method 1: Use VBS's SendKeys to enter the password
echo set pws=WScript.CreateObject("WScript.Shell")>%temp%\pws.vbs
echo pws.SendKeys "1{ENTER}">>%temp%\pws.vbs
wscript %temp%\pws.vbs&runas /u:test1 cmd.exe
Method 2: Use the /savecred parameter
When an independent user executes the program for the first time, a credential needs to be established. During this time, the password input will not be echoed, you can't see it, just enter and press Enter after inputting.
There is no need to enter the password when running later.
runas /u:test1 cmd.exe Enter the password and press Enter
runas /savecred /u:test1 explorer No need to enter the password
Method 3: Use PsExec from PsTools tool to replace Runas
|
|
2007-10-21 04:29 |
|
|
putao
初级用户
 
积分 80
发帖 41
注册 2007-10-5
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
谢谢,可是好象都要第一次输了解后才可以不用输呀,我想要做的是,把密码放在bat里面打开bat就可以打开有权限的iis,不用我去输密码,再做下加密,给别人用的,我是机房管理员!
哪位高手能帮忙写一下吗?
Thanks, but it seems that you need to enter it for the first time and then you don't need to enter it. What I want to do is put the password in a bat file, open the bat file to open the authorized IIS without me entering the password, and then encrypt it for others to use. I'm a computer room administrator!
Which expert can help write it?
|

http://user.qzone.qq.com/182365808 |
|
2007-10-21 10:57 |
|
|
putao
初级用户
 
积分 80
发帖 41
注册 2007-10-5
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
好象都要第一次输了解后才可以不用输呀,哪位高手能帮忙写一下吗
It seems that you all need to enter the password for the first time, and then you don't need to enter it later. Which expert can help write it?
|

http://user.qzone.qq.com/182365808 |
|
2007-10-22 12:11 |
|
|
StarWorld
初级用户
 
积分 21
发帖 7
注册 2005-9-14
状态 离线
|
『第 7 楼』:
有类似的工具,但是
使用 LLM 解释/回答一下
我发现都不太可靠
类似的makemeadmin,runasspc等
I find they are all not very reliable
Similar to makemeadmin, runasspc, etc.
|
|
2007-10-22 16:43 |
|
|
awera
初级用户
 
积分 94
发帖 36
注册 2005-9-19
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
系统自动的命令行都无法实现此功能(个人研究到目前为止如此)
只能借助第三方软件。
详情请看这里 http://awera.tianya.cn 里的相关文章。
问题解决!
The system's automatic command line cannot achieve this function (so far as my personal research goes)
Only third-party software can be relied on.
For details, please refer to the relevant articles in http://awera.tianya.cn
Problem solved!
|
|
2007-10-25 19:14 |
|