@@ -24,12 +24,8 @@ Show-EventLog [[-ComputerName] <String>] [<CommonParameters>]
2424The ` Show-EventLog ` cmdlet opens Event Viewer on the local computer and displays in it all of the
2525classic event logs on the local computer or a remote computer.
2626
27- To open Event Viewer on Windows Vista and later versions of the Windows operating system, the
28- current user must be a member of the Administrators group on the local computer.
29-
30- The cmdlets that contain the ** EventLog** noun (the ** EventLog** cmdlets) work only on classic event
31- logs. To get events from logs that use the Windows Event Log technology in Windows Vista and later
32- versions of the Windows operating system, use the ` Get-WinEvent ` cmdlet.
27+ The cmdlets that contain the ** EventLog** noun work only on classic event logs. To get events from
28+ logs that use the Windows Event Log technology, use the ` Get-WinEvent ` cmdlet.
3329
3430## EXAMPLES
3531
@@ -54,12 +50,13 @@ This command opens Event Viewer and displays in it the classic event logs on the
5450### -ComputerName
5551
5652Specifies a remote computer. ` Show-EventLog ` displays the event logs from the specified computer in
57- Event Viewer on the local computer. The default is the local computer.
58-
59- Type the NetBIOS name, an IP address, or a fully qualified domain name of a remote computer.
53+ Event Viewer on the local computer. The default is the local computer. When you use this parameter,
54+ the command runs ` eventvwr.exe ` and passes the value of this parameter.
6055
61- This parameter does not rely on Windows PowerShell remoting. You can use the ** ComputerName**
62- parameter even if your computer is not configured to run remote commands.
56+ > [ !IMPORTANT]
57+ > Using this parameter with untrusted data is a security risk. Only use trusted data with this
58+ > parameter. For more information, see
59+ > [ Validate All Inputs] ( https://top10proactive.owasp.org/archive/2024/the-top-10/c3-validate-input-and-handle-exceptions/ ) .
6360
6461``` yaml
6562Type : System.String
@@ -77,26 +74,27 @@ Accept wildcard characters: False
7774
7875This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
7976-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
80- -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
77+ -WarningAction, and -WarningVariable. For more information, see
78+ [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
8179
8280## INPUTS
8381
8482### None
8583
86- You cannot pipe input to this cmdlet.
84+ You can't pipe input to this cmdlet.
8785
8886## OUTPUTS
8987
9088### None
9189
92- This cmdlet does not generate any output.
90+ This cmdlet doesn't generate any output.
9391
9492## NOTES
9593
9694- The Windows PowerShell command prompt returns as soon as Event Viewer opens. You can work in the
9795 current session while Event Viewer is open.
9896
99- Because this cmdlet requires a user interface, it does not work on Server Core installations of
97+ Because this cmdlet requires a user interface, it doesn't work on Server Core installations of
10098 Windows Server.
10199
102100## RELATED LINKS
0 commit comments