Can anyone shed light on the following, running the below command to try and start scripting a tool to check our servers
get-wmiobject win32_ntlogevent -filter ("Type='Error'")
Or also tried the following as a test
get-wmiobject win32_ntlogevent -filter ("EventCode='1030'") >> test.txt
And the output is
Category : 0
Category String :
Event Code :
Event Identifier :
Type Event :
Insertion Strings :
Log File :
Message : Windows cannot query for the list of Group Policy objects. Check the event log for possible message
s previously logged by the policy engine that describes the reason for this.
Record Number :
Source Name :
Time Generated :
Time Written :
Type : Error
User Name :
Basically need to know why the fields are blank as this needs to be populated, and the version of PowerShell is 1 and this cannot be upgraded.
Thanks in advance
get-wmiobject win32_ntlogevent -filter ("Type='Error'")
Or also tried the following as a test
get-wmiobject win32_ntlogevent -filter ("EventCode='1030'") >> test.txt
And the output is
Category : 0
Category String :
Event Code :
Event Identifier :
Type Event :
Insertion Strings :
Log File :
Message : Windows cannot query for the list of Group Policy objects. Check the event log for possible message
s previously logged by the policy engine that describes the reason for this.
Record Number :
Source Name :
Time Generated :
Time Written :
Type : Error
User Name :
Basically need to know why the fields are blank as this needs to be populated, and the version of PowerShell is 1 and this cannot be upgraded.
Thanks in advance