commonparameters

About this tag
The commonparameters tag on WindowsForum.com covers discussions about PowerShell's Common Parameters, which are parameters that Windows PowerShell adds automatically to all cmdlets and advanced functions. These include parameters like -Verbose, -Debug, -ErrorAction, -WarningAction, -ErrorVariable, -WarningVariable, -OutVariable, -OutBuffer, and -PipelineVariable. In the tagged content, a user asks whether a specific parameter in a Get-EventLog syntax is a Common Parameter, highlighting confusion between parameter types. The tag is useful for those learning PowerShell syntax and understanding how Common Parameters differ from mandatory, optional, or switch parameters.
  1. Psilocelium

    PowerShell Syntax Question

    I just took a quiz that asked what type of parameter <String> is. Could you tell me if it is a mandatory parameter? For some reason I was thinking <String> would be defined as a value, not a parameter. Syntax Get-EventLog [-LogName] <String> [[-InstanceId] <Int64[]>] [-After <DateTime>]...
Back
Top