[英]login to remote windows machine through batch file from another windows machine
My remote windows server restarts at fixed time , i need to login daily after restart , since i have scheduled few tasks in the server and they run only when loged in , please help me to automate the login process , can we do this through batch files ? 我的远程Windows服务器在固定时间重新启动,重新启动后我需要每天登录,因为我在服务器中安排了一些任务,并且仅在登录时才运行,请帮助我自动执行登录过程,我们可以通过批处理文件来完成此操作吗? ? like we can do the restart 就像我们可以重新启动
If you have Windows 2008 or above you can use Task Scheduler. 如果您使用的是Windows 2008或更高版本,则可以使用任务计划程序。 Open Control Panel and run the Task Scheduler. 打开控制面板并运行任务计划程序。 Right click on Action menu and run Create Task. 右键单击“操作”菜单,然后运行“创建任务”。 Create the task as usual select "Run whether user is logged on or not" and (if need) select the "Run with hightest privileges" checkbox. 照常创建任务,选择“运行是否登录用户”,然后(如果需要)选择“以最高特权运行”复选框。 Then go to Triggers tab and click the "New" button. 然后转到“触发器”选项卡,然后单击“新建”按钮。 There are many conditions for run this task. 运行此任务的条件很多。 Select "At stratup" and click OK. 选择“分层”,然后单击“确定”。 Then in the Action tab select the "New" button. 然后在“操作”选项卡中选择“新建”按钮。 There select in Action "Start a program". 在操作中选择“启动程序”。 Click Browse button and select your script or batch file. 单击浏览按钮,然后选择脚本或批处理文件。 Click OK. 单击确定。 Repeat as necessary. 根据需要重复。 Click OK again and create the new Task. 再次单击确定并创建新的任务。
Good luck. 祝好运。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.