透過cmd刷新windows服務

透過cmd刷新windows服務

我正在嘗試刷新 Windows Server 2003 上特定服務的狀態。

我嘗試使用refresh <service instance>,但如果我運行它,我會收到此錯誤:

'refresh' is not recognized as an internal or external command

你們能幫我看看如何在cmd中執行這個指令嗎?

答案1

使用Services.exe為了這。

 services refresh <service instance>

更新

您可以使用Sc效用(來自視窗)。

與服務控制器和已安裝的服務進行通訊。 SC.exe 程式提供的功能與控制台中的服務中提供的功能類似。

適用於:

Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista

相關內容