sc [ServerName] config [ServiceName] [type= {own|share|kernel|filesys|rec|adapt|interact type= {own|share}}] [start= {boot|system|auto|demand|disabled}] [error= {normal|severe|critical|ignore}] [binpath= BinaryPathName] [group= LoadOrderGroup] [tag= {yes|no}] [depend= dependencies] ...
sccreate MyServicebinPath="C:\Path\To\MyService.exe"scconfigMyService start= auto obj= LocalSystemDisplayName="My Service"type= own error=normaldepend= +Netman start= auto error=normalDisplayName="My Service"obj=".\LocalSystem" 中级应用: 创建服务并设置服务启动顺序: 使用sc create命令创建一个服...
Sc [ServerName] config [ServiceName] [type= {own | share | kernel | filesys | rec | adapt | interacttype= {own | share}}] [start= {boot | system | auto | demand | disabled}] [error= {normal | severe | critical | ignore}] [binpath= BinaryPathName] [group= LoadOrderGroup] [...
Sc [ServerName] config [ServiceName] [type= {own | share | kernel | filesys | rec | adapt | interacttype= {own | share}}] [start= {boot | system | auto | demand | disabled}] [error= {normal | severe | critical | ignore}] [binpath= BinaryPathName] [group= LoadOrderGroup] [...
New-SCPhysicalComputerNetworkAdapterConfig New-SCPhysicalComputerNetworkAdapterProfile New-SCPhysicalComputerProfile New-SCPortACL New-SCPortACLRule New-SCPortClassification New-SCReplicationGroup New-SCRunAsAccount New-SCScriptCommandSetting New-SCService New-SCServiceConfiguration New-SCServiceTemplate New-SC...
sc config%serviceName% start=auto REM 添加服务描述 sc description%serviceName% %serviceDescription%REM 启动服务 sc start%serviceName%pause netsh命令 1. 查看网络配置 netsh interface ip show { address | config | dns | icmp | interface | ipaddress | ipnet |ipstats | joins | offload | tcpcon...
New-SCPhysicalComputerNetworkAdapterConfig New-SCPhysicalComputerNetworkAdapterProfile New-SCPhysicalComputerProfile New-SCPortACL New-SCPortACLRule New-SCPortClassification New-SCReplicationGroup New-SCRunAsAccount New-SCScriptCommandSetting New-SCService New-SCServiceConfiguration New-SCServiceTemplate New-SC...
Set-SCVirtualNetworkAdapter [-IPv4AddressType <EthernetAddressType>] [-IPv6AddressType <EthernetAddressType>] [-EnableMACAddressSpoofing <Boolean>] [-EnableGuestIPNetworkVirtualizationUpdates <Boolean>] [-EnableVMNetworkOptimization <Boolean>] [-VMNetwork <VMNetwork>] [-VMNetworkServiceSetting <String...
sc [ServerName] config [ServiceName] [type= {own|share|kernel|filesys|rec|adapt|interact type= {own|share}}] [start= {boot|system|auto|demand|disabled}] [error= {normal|severe|critical|ignore}] [binpath= BinaryPathName] [group= LoadOrderGroup] [tag= {yes|no}] [depend= dependencies] ...