标题: 查找 并启动服务
[打印本页]
作者: QOIQoc
时间: 2009-3-14 11:04
标题: 查找 并启动服务
net start| findstr /i "Application Layer Gateway"|| (sc config alg start= auto&&net start alg)
alg 即:Application Layer Gateway Service 服务
当服务如下时,得到 :
C:\Documents and Settings\Administrator>net start| findstr /i "Application Layer
Gateway"||sc config alg start= auto&&net start alg
Local System Application
命令没运行成功,有什么解决办法吗?
好像findstr 不能全字匹配
C:\Documents and Settings\Administrator>net start
已经启动以下 Windows 服务:
COM+ Event System
Cryptographic Services
DCOM Server Process Launcher
DHCP Client
Distributed Link Tracking Client
DNS Client
Event Log
Fast User Switching Compatibility
Help and Support
IPSEC Services
Local System Application
Logical Disk Manager
Network Connections
Network Location Awareness (NLA)
Plug and Play
Print Spooler
Protected Storage
Remote Access Connection Manager
Remote Procedure Call (RPC)
Secondary Logon
Security Accounts Manager
Server
SSDP Discovery Service
System Event Notification
Task Scheduler
TCP/IP NetBIOS Helper
Telephony
Terminal Services
Themes
VMware Tools Service
WebClient
Windows Audio
Windows Firewall/Internet Connection Sharing (ICS)
Windows Management Instrumentation
Windows Time
Wireless Zero Configuration
Workstation
命令成功完成。
[
Last edited by QOIQoc on 2009-3-14 at 11:06 ]
作者: yishanju
时间: 2009-3-14 11:45
C:\Documents and Settings\Administrator>net start| findstr /i /c:"Application Layer Gateway"|| (sc config alg start= auto&&net start alg)
[SC] ChangeServiceConfig 成功
Application Layer Gateway Service 服务正在启动 .
Application Layer Gateway Service 服务已经启动成功。
作者: yishanju
时间: 2009-3-14 11:46
net start| find /i "Application Layer Gateway"|| (sc config alg start= auto&&net start alg)
作者: QOIQoc
时间: 2009-3-14 22:48
net start| findstr /i /c:"Application Layer Gateway"|| (sc config alg start= auto&&net start alg)
这个好用! 谢谢了!
作者: Jneny
时间: 2009-3-17 23:03
sc query alg | find /i "running" ||(sc config alg start= auto&&net start alg)
作者: yuan53770
时间: 2010-9-23 15:10
虽然不大看得懂,先收藏一个