2013-10-17 61 views
0

我在執行下面的命令時出錯。Powershell新事件日誌錯誤

命令:

New-EventLog –LogName "Windows PowerShell" –Source "Powershell PO Instance" 

錯誤:

The term 'New-EventLog' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. 
At line:1 char:13 
+ New-EventLog <<<< -LogName "Windows PowerShell" -Source "Powershell PO Instance" 

有人可以幫我解決這個?

+0

您使用的是什麼版本的PowerShell? –

+0

版本:1.0.0.0 – user2638021

回答

0

您沒有具有New-EventLog cmdlet的PowerShell版本。 運行以下命令以獲取可用的命令列表。

get-command