简体   繁体   English

从Powershell启动telnet

[英]start telnet from powershell

After installed telnet server on win7, using powershell I try to start it: 在win7上安装telnet服务器之后,使用powershell尝试启动它:

sc config tlntsvr start= demand

(this because telnet server is disabled) and then: (这是因为禁用了telnet服务器),然后:

sc config tlntsvr start= auto

I've this error: 我有这个错误:

Set-Content : A positional parameter cannot be found that accepts argument 'start='.
At line:1 char:3
+ sc <<<<  config TlntSvr start= demand
    + CategoryInfo          : InvalidArgument: (:) [Set-Content], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetContentCommand

此命令使用Windows命令外壳程序,因为PowerShell会将sc解释为Set-Content cmdlet,而sc不在cmd中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM