我有一个问题。当我运行以下命令时:
会出现错误:powershell -command "gc C:\Program Files\Microsoft SQLServer\MSSQL.1\MSSQL\LOG\ERRORLOG -totalcount 5
你能帮我解决这个问题吗?"Get-Content : 无法找到可接受参数“Files\Microsoft”的位置参数。 在行:1 字符:3 + gc <<<< C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG –to talcount 5 + CategoryInfo : InvalidArgument: (:) [Get-Content], ParameterBindingException + FullyQualifiedErrorId: PositionalParameterNotFound, Microsoft.PowerShell.Commands.GetContentCommand"