Support Center > Search Results > SecureKnowledge Details
AD Query permissions script from sk43874 might produce error messages when running in Preview mode
Symptoms
  • AD Query permissions script from sk43874 might produce error messages when running in Preview mode:
    • wevtutil gl

      Required argument(s) is/are not specified. The parameter is incorrect.

    • wevtutil gl wevtutil el

      Failed to read configuration for log wevtutil el. The specified channel could not be found. Check channel configuration.
Cause

In the script, in functions returning values, PowerShell takes those values and instead of printing them, adds them to the return value.


Solution

Use 'Write-Host' command explicitly when printing anything in a function that returns values.

 

Related solutions:

This solution is about products that are no longer supported and it will not be updated
Applies To:
  • 01179534

Give us Feedback
Please rate this document
[1=Worst,5=Best]
Comment