diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs index c5d4f0395..94488506e 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestConnectionCommand.cs @@ -179,7 +179,7 @@ namespace Microsoft.PowerShell.Commands /// With this switch, standard ping and -Traceroute returns only true / false, and -MtuSize returns an integer. /// [Parameter] - public SwitchParameter Quiet; + public SwitchParameter Quiet { get; set; } /// /// Gets or sets the timeout value for an individual ping in seconds. diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs index 4516568cc..86aa1759c 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetDateCommand.cs @@ -44,7 +44,7 @@ namespace Microsoft.PowerShell.Commands /// Gets or sets whether to treat a numeric input as ticks, or unix time. /// [Parameter] - public SwitchParameter FromUnixTime; + public SwitchParameter FromUnixTime { get; set; } private DateTime _date; private bool _dateSpecified;