使用"mstsc/admin"登录到远程带密码 [英] login to remote using "mstsc /admin" with password

查看:94
本文介绍了使用"mstsc/admin"登录到远程带密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 mstsc/admin 静默登录到服务器.我的批处理文件将代码读取为

I want to use mstsc /admin to login to a server silently. My batch file reads the code as

mstsc /v:xxx.xxx.xxx.xxx /admin

但是它要求我输入密码.有人可以帮我跳过此步骤吗?

But it ask me to enter password. Can anyone help me to skip this step?

我继续使用Google,发现此站点.但是我对这些东西(脚本)很陌生,无法理解如何处理给定的代码.它是 vbscript 文件吗?我可以对批处理文件执行相同的操作吗?请详细说明,我请您喂汤.这不是我的竞技场,但我仍然被迫没有武器战斗.

I went on to Google and found this site. But I am very new to this stuff (scripting) and could not understand what to do with given code. Is it a vbscript file? Can I do the same thing with a batch file. Please elaborate and I request you to spoon feed. This is not my arena but still I am pushed to fight without weapons.

我的基本需求是从远程桌面启动除我以外的所有用户,以执行一些可维护的工作.谢谢.

My basic need is to kick off all users from a remote desktop except mine to perform some maintainable work. Thanks.

推荐答案

它成为一个流行的问题,并收到了通知.对不起,我忘了回答之前应该做的事情.我早就解决了.

It became a popular question and I got a notification. I am sorry, I forgot to answer before which I should have done. I solved it long back.

net use \\10.100.110.120\C$ MyPassword /user:domain\username /persistent:Yes

在批处理文件中运行它,您应该得到想要的东西.

Run it in a batch file and you should get what you are looking for.

这篇关于使用"mstsc/admin"登录到远程带密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆