摘要: [system.Reflection.Assembly]::LoadWithPartialName("System.ServiceProcess")|out-NullfunctionGet-ServiceStartupMode{param([string]$servicename,[string]$serverName)$startMode=gwmiwin32_service-filter"NAME='$servicename'"-computername$serverName|Select-PropertyStartMode$start 阅读全文
posted @ 2011-03-25 18:08 chunchill 阅读(423) 评论(0) 推荐(0) 编辑