0

执行以下命令时出现错误。

命令:

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"

有人可以帮我解决这个问题吗?

4

1 回答 1

0

您没有具有 New-EventLog cmdlet 的 PowerShell 版本。运行以下命令以获取可用的命令列表。

get-command
于 2013-10-17T19:23:26.893 回答