2013-10-17 30 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