From 02b5f357a20e6dee9f8e60e3adb9025be3c94490 Mon Sep 17 00:00:00 2001 From: Jason Shirk Date: Mon, 16 Jan 2017 13:31:14 -0800 Subject: [PATCH] Remove trailing whitespace (#3001) --- build.psm1 | 64 +- demos/Apache/Apache/Apache.psm1 | 2 +- demos/Azure/Azure-Demo.ps1 | 14 +- demos/DSC/dsc-demo.ps1 | 10 +- demos/crontab/CronTab/CronTab.ps1xml | 2 +- demos/crontab/CronTab/CronTab.psm1 | 18 +- demos/dsc.ps1 | 2 +- demos/powershellget/PowerShellGet.ps1 | 2 +- .../CimAsyncOperation.cs | 2 +- .../CimBaseAction.cs | 2 +- .../CimCmdletModuleInitialize.cs | 2 +- .../CimCommandBase.cs | 8 +- .../CimGetAssociatedInstance.cs | 2 +- .../CimGetCimClass.cs | 2 +- .../CimGetInstance.cs | 8 +- .../CimIndicationWatcher.cs | 2 +- .../CimInvokeCimMethod.cs | 10 +- .../CimNewCimInstance.cs | 16 +- .../CimPromptUser.cs | 16 +- .../CimRegisterCimIndication.cs | 2 +- .../CimRemoveCimInstance.cs | 2 +- .../CimResultObserver.cs | 2 +- .../CimSessionOperations.cs | 8 +- .../CimSessionProxy.cs | 16 +- .../CimSetCimInstance.cs | 2 +- .../CimWriteError.cs | 2 +- .../CimWriteMessage.cs | 4 +- .../CimWriteProgress.cs | 2 +- .../CimWriteResultObject.cs | 2 +- .../CmdletOperation.cs | 6 +- .../GetCimAssociatedInstanceCommand.cs | 18 +- .../GetCimClassCommand.cs | 12 +- .../GetCimInstanceCommand.cs | 70 +- .../GetCimSessionCommand.cs | 22 +- .../InvokeCimMethodCommand.cs | 56 +- .../NewCimInstanceCommand.cs | 54 +- .../NewCimSessionCommand.cs | 16 +- .../NewCimSessionOptionCommand.cs | 50 +- .../RegisterCimIndicationCommand.cs | 12 +- .../RemoveCimInstanceCommand.cs | 14 +- .../RemoveCimSessionCommand.cs | 8 +- .../SetCimInstanceCommand.cs | 14 +- .../Utils.cs | 8 +- .../GetCimAssociatedInstanceActivity.cs | 8 +- .../Activities/GetCimClassActivity.cs | 4 +- .../Activities/GetCimInstanceActivity.cs | 6 +- .../Activities/GetPSWorkflowData.cs | 74 +- .../Activities/InvokeCimMethodActivity.cs | 4 +- .../Activities/NewCimInstanceActivity.cs | 6 +- .../Activities/NewCimSessionActivity.cs | 2 +- .../Activities/NewCimSessionOptionActivity.cs | 4 +- .../Activities/PowerShellValue.cs | 6 +- .../Activities/RemoveCimInstanceActivity.cs | 2 +- .../Activities/SetCimInstanceActivity.cs | 4 +- .../Activities/SetHostValue.cs | 4 +- .../Activities/ThrottledParallelForeach.cs | 4 +- .../Activities/WmiActivities.cs | 2 +- .../Activities/WorkflowJobConverter.cs | 104 +- .../Xamls/InlineScriptDesigner.xaml | 18 +- .../Xamls/PipelineDesigner.xaml | 2 +- .../CoreCLR/Stubs.cs | 6 +- .../CounterFileInfo.cs | 2 +- .../CounterSample.cs | 2 +- .../CounterSet.cs | 2 +- .../ExportCounterCommand.cs | 2 +- .../GetEventCommand.cs | 50 +- .../GetEventSnapin.cs | 8 +- .../ImportCounterCommand.cs | 2 +- .../NewWinEventCommand.cs | 6 +- .../PdhHelper.cs | 82 +- .../cim/TerminatingErrorTracker.cs | 4 +- .../cmdletization/cim/cimChildJobBase.cs | 6 +- .../cmdletization/cim/cimConverter.cs | 2 +- .../cimSupport/cmdletization/cim/cimQuery.cs | 4 +- .../cmdletization/cim/cimWrapper.cs | 6 +- .../cmdletization/cim/clientSideQuery.cs | 2 +- .../commands/management/AddContentCommand.cs | 14 +- .../management/ClearContentCommand.cs | 6 +- .../management/ClearPropertyCommand.cs | 6 +- .../management/ClearRecycleBinCommand.cs | 22 +- .../commands/management/CombinePathCommand.cs | 2 +- .../commands/management/Computer.cs | 188 ++-- .../commands/management/ContentCommandBase.cs | 58 +- .../management/ControlPanelItemCommand.cs | 12 +- .../commands/management/ConvertPathCommand.cs | 2 +- .../management/CopyPropertyCommand.cs | 8 +- .../commands/management/Eventlog.cs | 50 +- .../commands/management/GetChildrenCommand.cs | 28 +- .../management/GetClipboardCommand.cs | 16 +- .../management/GetComputerInfoCommand.cs | 32 +- .../commands/management/GetContentCommand.cs | 10 +- .../commands/management/GetPropertyCommand.cs | 12 +- .../commands/management/Hotfix.cs | 2 +- .../management/InvokeWMIMethodCommand.cs | 2 +- .../management/MovePropertyCommand.cs | 8 +- .../commands/management/Navigation.cs | 136 +-- .../commands/management/NewPropertyCommand.cs | 10 +- .../commands/management/ParsePathCommand.cs | 10 +- .../PassThroughContentCommandBase.cs | 4 +- .../PassThroughPropertyCommandBase.cs | 4 +- .../commands/management/PingPathCommand.cs | 6 +- .../management/RemovePropertyCommand.cs | 6 +- .../management/RemoveWMIObjectCommand.cs | 2 +- .../management/RenamePropertyCommand.cs | 6 +- .../commands/management/Service.cs | 50 +- .../management/SetClipboardCommand.cs | 78 +- .../commands/management/SetContentCommand.cs | 12 +- .../commands/management/SetPropertyCommand.cs | 6 +- .../management/SetWMIInstanceCommand.cs | 2 +- .../commands/management/TimeZoneCommands.cs | 6 +- .../commands/management/WMIHelper.cs | 16 +- .../commands/management/WebServiceProxy.cs | 8 +- .../management/WriteContentCommandBase.cs | 30 +- .../installer/MshManagementMshSnapin.cs | 24 +- .../commands/utility/AddMember.cs | 8 +- .../commands/utility/AddType.cs | 24 +- .../commands/utility/CSVCommands.cs | 48 +- .../commands/utility/ConsoleColorCmdlet.cs | 10 +- .../utility/ConvertFrom-StringData.cs | 2 +- .../commands/utility/Csv.cs | 4 +- .../commands/utility/CustomSerialization.cs | 32 +- .../utility/CustomSerializationStrings.cs | 4 +- .../commands/utility/DebugRunspaceCommand.cs | 2 +- .../commands/utility/Disable-PSBreakpoint.cs | 2 +- .../commands/utility/Enable-PSBreakpoint.cs | 6 +- .../EnableDisableRunspaceDebugCommand.cs | 14 +- .../commands/utility/ExportAliasCommand.cs | 14 +- .../OutGridView/OutGridViewCommand.cs | 10 +- .../FormatAndOutput/OutGridView/TableView.cs | 2 +- .../common/WriteFormatDataCommand.cs | 2 +- .../format-object/format-object.cs | 2 +- .../FormatAndOutput/out-file/Out-File.cs | 18 +- .../out-printer/PrinterLineOutput.cs | 8 +- .../commands/utility/Get-PSBreakpoint.cs | 2 +- .../commands/utility/GetAliasCommand.cs | 12 +- .../commands/utility/GetDateCommand.cs | 14 +- .../commands/utility/GetHostCmdlet.cs | 8 +- .../commands/utility/GetMember.cs | 4 +- .../commands/utility/GetRandomCommand.cs | 16 +- .../commands/utility/GetUnique.cs | 6 +- .../commands/utility/GetUptime.cs | 4 +- .../commands/utility/GetVerbCommand.cs | 8 +- .../utility/ImplicitRemotingCommands.cs | 46 +- .../commands/utility/Import-LocalizedData.cs | 12 +- .../commands/utility/ImportAliasCommand.cs | 14 +- .../commands/utility/InvokeCommandCmdlet.cs | 2 +- .../commands/utility/MatchString.cs | 24 +- .../commands/utility/Measure-Object.cs | 76 +- .../commands/utility/NewAliasCommand.cs | 4 +- .../commands/utility/NewGuidCommand.cs | 8 +- .../commands/utility/NewTimeSpanCommand.cs | 8 +- .../commands/utility/ObjectCommandComparer.cs | 6 +- .../commands/utility/OrderObjectBase.cs | 14 +- .../commands/utility/ReadConsoleCmdlet.cs | 4 +- .../commands/utility/Remove-PSBreakpoint.cs | 2 +- .../commands/utility/Send-MailMessage.cs | 32 +- .../commands/utility/Set-PSBreakpoint.cs | 4 +- .../commands/utility/SetAliasCommand.cs | 4 +- .../commands/utility/SetDateCommand.cs | 8 +- .../utility/ShowCommand/ShowCommand.cs | 6 +- .../ShowCommand/ShowCommandCommandInfo.cs | 6 +- .../ShowCommandParameterSetInfo.cs | 4 +- .../ShowCommand/ShowCommandParameterType.cs | 4 +- .../utility/ShowCommand/ShowCommandProxy.cs | 2 +- .../commands/utility/StartSleepCommand.cs | 4 +- .../commands/utility/TimeExpressionCommand.cs | 2 +- .../commands/utility/UnblockFile.cs | 8 +- .../commands/utility/Update-Data.cs | 2 +- .../commands/utility/Update-TypeData.cs | 10 +- .../commands/utility/UtilityCommon.cs | 2 +- .../commands/utility/Var.cs | 60 +- .../commands/utility/WaitEventCommand.cs | 2 +- .../BasicHtmlWebResponseObject.Common.cs | 2 +- .../Common/HtmlWebResponseObject.Common.cs | 4 +- .../Common/InvokeRestMethodCommand.Common.cs | 6 +- .../Common/WebRequestPSCmdlet.Common.cs | 4 +- .../WebCmdlet/ConvertFromJsonCommand.cs | 4 +- .../utility/WebCmdlet/ConvertToJsonCommand.cs | 22 +- .../WebCmdlet/CoreCLR/HttpKnownHeaderNames.cs | 126 +-- .../InvokeRestMethodCommand.CoreClr.cs | 10 +- .../InvokeWebRequestCommand.CoreClr.cs | 6 +- .../CoreCLR/WebRequestPSCmdlet.CoreClr.cs | 10 +- .../FullClr/HtmlWebResponseObject.FullClr.cs | 2 +- .../InvokeRestMethodCommand.FullClr.cs | 10 +- .../InvokeWebRequestCommand.FullClr.cs | 4 +- .../FullClr/WebRequestPSCmdlet.FullClr.cs | 10 +- .../utility/WebCmdlet/StreamHelper.cs | 54 +- .../commands/utility/Write-Object.cs | 2 +- .../commands/utility/WriteAliasCommandBase.cs | 18 +- .../commands/utility/WriteConsoleCmdlet.cs | 4 +- .../commands/utility/WriteProgressCmdlet.cs | 44 +- .../commands/utility/XmlCommands.cs | 32 +- .../commands/utility/compare-object.cs | 22 +- .../commands/utility/convert-HTML.cs | 14 +- .../commands/utility/group-object.cs | 12 +- .../commands/utility/select-object.cs | 24 +- .../commands/utility/sort-object.cs | 6 +- .../commands/utility/tee-object.cs | 6 +- .../utility/trace/MshHostTraceListener.cs | 8 +- .../utility/trace/SetTracerCommand.cs | 8 +- .../utility/trace/TraceCommandBase.cs | 18 +- .../utility/trace/TraceExpressionCommand.cs | 16 +- .../utility/trace/TraceListenerCommandBase.cs | 14 +- .../commands/utility/update-list.cs | 16 +- .../commands/utility/write.cs | 8 +- .../installer/MshUtilityMshSnapin.cs | 24 +- .../host/msh/CommandLineParameterParser.cs | 20 +- .../host/msh/ConsoleControl.cs | 328 +++--- .../host/msh/ConsoleHost.cs | 246 ++--- .../host/msh/ConsoleHostRawUserInterface.cs | 298 +++--- .../host/msh/ConsoleHostTranscript.cs | 4 +- .../host/msh/ConsoleHostUserInterface.cs | 336 +++--- .../msh/ConsoleHostUserInterfaceProgress.cs | 10 +- .../msh/ConsoleHostUserInterfacePrompt.cs | 32 +- ...ConsoleHostUserInterfacePromptForChoice.cs | 28 +- .../msh/ConsoleHostUserInterfaceSecurity.cs | 28 +- .../host/msh/ConsoleShell.cs | 14 +- .../host/msh/ConsoleTextWriter.cs | 2 +- .../host/msh/Executor.cs | 160 +-- .../host/msh/ManagedEntrance.cs | 4 +- .../host/msh/PendingProgress.cs | 300 +++--- .../host/msh/ProgressNode.cs | 148 +-- .../host/msh/ProgressPane.cs | 50 +- .../host/msh/Serialization.cs | 24 +- .../host/msh/StartTranscriptCmdlet.cs | 16 +- .../host/msh/StopTranscriptCmdlet.cs | 6 +- .../singleshell/installer/EngineInstaller.cs | 32 +- .../singleshell/installer/MshHostMshSnapin.cs | 26 +- .../Generated/DisablePSRemotingActivity.cs | 10 +- .../DisablePSSessionConfigurationActivity.cs | 10 +- .../Generated/EnablePSRemotingActivity.cs | 10 +- .../EnablePSSessionConfigurationActivity.cs | 10 +- .../Generated/ForEachObjectActivity.cs | 10 +- .../Generated/GetCommandActivity.cs | 10 +- .../Generated/GetHelpActivity.cs | 10 +- .../Generated/GetJobActivity.cs | 10 +- .../Generated/GetModuleActivity.cs | 10 +- .../Generated/GetPSSessionActivity.cs | 10 +- .../GetPSSessionConfigurationActivity.cs | 10 +- .../Generated/NewModuleManifestActivity.cs | 10 +- .../Generated/NewPSTransportOptionActivity.cs | 10 +- .../Generated/ReceiveJobActivity.cs | 12 +- .../RegisterPSSessionConfigurationActivity.cs | 10 +- .../Generated/RemoveJobActivity.cs | 10 +- .../Generated/RemovePSSessionActivity.cs | 10 +- .../Generated/ResumeJobActivity.cs | 10 +- .../Generated/SaveHelpActivity.cs | 10 +- .../SetPSSessionConfigurationActivity.cs | 10 +- .../Generated/StartJobActivity.cs | 10 +- .../Generated/StopJobActivity.cs | 10 +- .../Generated/SuspendJobActivity.cs | 10 +- .../Generated/TestModuleManifestActivity.cs | 10 +- .../TestPSSessionConfigurationFileActivity.cs | 10 +- ...nregisterPSSessionConfigurationActivity.cs | 10 +- .../Generated/UpdateHelpActivity.cs | 10 +- .../Generated/WaitJobActivity.cs | 10 +- .../Generated/WhereObjectActivity.cs | 10 +- .../CoreCLR/CorePsAssemblyLoadContext.cs | 16 +- .../DotNetCode/Eventing/EventProvider.cs | 46 +- .../Eventing/EventProviderTraceListener.cs | 20 +- .../Eventing/Reader/CoTaskMemSafeHandle.cs | 4 +- .../Reader/CoTaskMemUnicodeSafeHandle.cs | 4 +- .../Eventing/Reader/EventBookmark.cs | 16 +- .../Eventing/Reader/EventKeyword.cs | 10 +- .../DotNetCode/Eventing/Reader/EventLevel.cs | 12 +- .../Eventing/Reader/EventLogConfiguration.cs | 8 +- .../Eventing/Reader/EventLogException.cs | 16 +- .../Eventing/Reader/EventLogHandle.cs | 6 +- .../Eventing/Reader/EventLogInformation.cs | 8 +- .../Eventing/Reader/EventLogLink.cs | 8 +- .../Reader/EventLogPropertySelector.cs | 12 +- .../Eventing/Reader/EventLogQuery.cs | 16 +- .../Eventing/Reader/EventLogReader.cs | 14 +- .../Eventing/Reader/EventLogRecord.cs | 4 +- .../Eventing/Reader/EventLogSession.cs | 8 +- .../Eventing/Reader/EventLogStatus.cs | 16 +- .../Eventing/Reader/EventMetadata.cs | 18 +- .../DotNetCode/Eventing/Reader/EventOpcode.cs | 10 +- .../Eventing/Reader/EventProperty.cs | 6 +- .../Eventing/Reader/EventPropertyContext.cs | 4 +- .../DotNetCode/Eventing/Reader/EventRecord.cs | 8 +- .../DotNetCode/Eventing/Reader/EventTask.cs | 10 +- .../Eventing/Reader/NativeWrapper.cs | 28 +- .../Eventing/Reader/ProviderMetadata.cs | 14 +- .../ProviderMetadataCachedInformation.cs | 14 +- .../DotNetCode/Eventing/Reader/Winmeta.cs | 14 +- .../Eventing/UnsafeNativeMethods.cs | 24 +- .../Generated/ExportCounterActivity.cs | 10 +- .../Generated/GetCounterActivity.cs | 12 +- .../Generated/GetWinEventActivity.cs | 12 +- .../Generated/ImportCounterActivity.cs | 10 +- .../Generated/NewWinEventActivity.cs | 10 +- .../HelpWindow/HelpParagraphBuilder.cs | 30 +- .../HelpWindow/HelpWindow.xaml.cs | 10 +- .../HelpWindow/ParagraphBuilder.cs | 16 +- .../HelpWindow/ParagraphSearcher.cs | 6 +- .../Common/CustomTypeComparer.cs | 4 +- .../Common/DataRoutedEventArgs.cs | 2 +- .../Common/DateTimeApproximationComparer.cs | 4 +- .../Common/DismissiblePopup.Generated.cs | 66 +- .../ManagementList/Common/DismissiblePopup.cs | 4 +- .../ManagementList/Common/IAsyncProgress.cs | 2 +- .../Common/InverseBooleanConverter.cs | 2 +- .../Common/ListOrganizer.Generated.cs | 124 +-- .../Common/ListOrganizerItem.Generated.cs | 40 +- .../Common/ListOrganizerItem.cs | 6 +- .../Common/MessageTextBox.Generated.cs | 34 +- .../ManagementList/Common/MessageTextBox.cs | 6 +- .../Common/PickerBase.Generated.cs | 72 +- .../Common/PopupControlButton.Generated.cs | 16 +- .../Common/PopupControlButton.cs | 4 +- .../ReadOnlyObservableAsyncCollection.cs | 6 +- .../Common/ScalableImage.Generated.cs | 18 +- .../ManagementList/Common/ScalableImage.cs | 2 +- .../Common/ScalableImageSource.Generated.cs | 52 +- .../Common/StringFormatConverter.cs | 2 +- .../Common/TextBlockService.Generated.cs | 42 +- .../ManagementList/Common/TextBlockService.cs | 2 +- .../ManagementList/Common/WpfHelp.cs | 4 +- .../ExpanderButton.Generated.cs | 4 +- .../CommonControls/Resizer.Generated.cs | 110 +- .../ResizerGripThicknessConverter.cs | 4 +- .../UIElementAdorner.Generated.cs | 16 +- .../CommonControls/UIElementAdorner.cs | 4 +- .../FilterCore/FilterEvaluator.cs | 6 +- .../FilterExpressionAndOperatorNode.cs | 2 +- .../FilterExpressionNode.cs | 4 +- .../FilterExpressionOperandNode.cs | 2 +- .../FilterExpressionOrOperatorNode.cs | 2 +- .../FilterRuleCustomizationFactory.cs | 4 +- .../FilterRules/ComparableValueFilterRule.cs | 2 +- .../FilterRules/DoesNotEqualFilterRule.cs | 2 +- .../FilterRules/EqualsFilterRule.cs | 2 +- .../FilterCore/FilterRules/FilterRule.cs | 2 +- .../FilterRules/IsBetweenFilterRule.cs | 4 +- .../FilterRules/IsEmptyFilterRule.cs | 8 +- .../FilterRules/IsGreaterThanFilterRule.cs | 2 +- .../FilterRules/IsLessThanFilterRule.cs | 2 +- .../FilterRules/IsNotEmptyFilterRule.cs | 6 +- .../PropertyValueSelectorFilterRule.cs | 10 +- .../SingleValueComparableValueFilterRule.cs | 4 +- .../FilterRules/TextContainsFilterRule.cs | 2 +- .../TextDoesNotContainFilterRule.cs | 2 +- .../FilterRules/TextDoesNotEqualFilterRule.cs | 2 +- .../FilterRules/TextEndsWithFilterRule.cs | 2 +- .../FilterRules/TextEqualsFilterRule.cs | 2 +- .../FilterRules/TextStartsWithFilterRule.cs | 2 +- .../FilterCore/IFilterExpressionProvider.cs | 10 +- .../FilterCore/ValidatingSelectorValue.cs | 16 +- .../FilterCore/ValidatingValue.cs | 8 +- .../FilterCore/ValidatingValueBase.cs | 12 +- .../DataErrorInfoValidationResult.cs | 2 +- .../DataErrorInfoValidationRule.cs | 2 +- .../AddFilterRulePicker.Generated.cs | 66 +- .../AddFilterRulePickerItem.cs | 2 +- .../FilterRulePanel.Generated.cs | 26 +- .../FilterProviders/FilterRulePanel.cs | 4 +- .../FilterRulePanelController.cs | 8 +- .../FilterProviders/FilterRulePanelItem.cs | 4 +- .../FilterRulePanelItemType.cs | 6 +- .../FilterRuleTemplateSelector.cs | 6 +- .../FilterProviders/SearchBox.Generated.cs | 48 +- ...tingSelectorValueToDisplayNameConverter.cs | 2 +- ...ingValueToGenericParameterTypeConverter.cs | 2 +- .../ManagementList/DefaultStringConverter.cs | 2 +- .../ManagementList/InnerList.Generated.cs | 56 +- .../InnerListColumn.Generated.cs | 46 +- .../ManagementList/InnerListGridView.cs | 8 +- .../ManagementList/Innerlist.cs | 8 +- .../ManagementList.Generated.cs | 212 ++-- .../ManagementListTitle.Generated.cs | 60 +- .../ManagementList/PropertyValueComparer.cs | 4 +- .../ManagementList/ManagementList/WaitRing.cs | 2 +- .../ManagementList/managementlist.cs | 2 +- .../Controls/AllModulesControl.xaml.cs | 2 +- .../Controls/ImageButton/ImageButton.xaml.cs | 2 +- .../ImageButtonTooltipConverter.cs | 2 +- .../Controls/ParameterSetControl.xaml.cs | 2 +- .../Controls/ShowModuleControl.xaml.cs | 10 +- .../ShowCommandSettings.Designer.cs | 28 +- .../ViewModel/AllModulesViewModel.cs | 10 +- .../ShowCommand/ViewModel/CommandViewModel.cs | 22 +- .../ShowCommand/ViewModel/ModuleViewModel.cs | 8 +- .../ViewModel/ParameterSetViewModel.cs | 8 +- .../ViewModel/ParameterViewModel.cs | 12 +- .../Windows/ShowAllModulesWindow.xaml.cs | 10 +- .../commandHelpers/ShowCommandHelper.cs | 34 +- .../commandHelpers/outgridview.cs | 44 +- .../xamls/AllModulesControl.xaml | 8 +- .../xamls/ColumnPicker.xaml | 24 +- .../xamls/HelpWindow.xaml | 4 +- .../xamls/ImageButton.xaml | 4 +- .../xamls/ImageButtonCommon.xaml | 4 +- .../xamls/ImageToggleButton.xaml | 6 +- .../xamls/MultipleSelectionControl.xaml | 4 +- .../xamls/MultipleSelectionDialog.xaml | 6 +- .../xamls/NotImportedCmdletControl.xaml | 8 +- .../xamls/ParameterSetControl.xaml | 6 +- .../xamls/SettingsDialog.xaml | 2 +- .../xamls/ShowAllModulesWindow.xaml | 4 +- .../xamls/ShowModuleControl.xaml | 6 +- .../Commands/AddLocalGroupMemberCommand.cs | 12 +- .../Commands/DisableLocalUserCommand.cs | 12 +- .../Commands/EnableLocalUserCommand.cs | 20 +- .../Commands/GetLocalGroupCommand.cs | 6 +- .../Commands/GetLocalGroupMemberCommand.cs | 8 +- .../Commands/GetLocalUserCommand.cs | 10 +- .../Commands/NewLocalGroupCommand.cs | 10 +- .../Commands/NewLocalUserCommand.cs | 22 +- .../Commands/RemoveLocalGroupCommand.cs | 8 +- .../Commands/RemoveLocalGroupMemberCommand.cs | 12 +- .../Commands/RemoveLocalUserCommand.cs | 12 +- .../Commands/RenameLocalGroupCommand.cs | 16 +- .../Commands/RenameLocalUserCommand.cs | 18 +- .../Commands/SetLocalGroupCommand.cs | 18 +- .../Commands/SetLocalUserCommand.cs | 32 +- .../LocalAccounts/Extensions.cs | 2 +- .../LocalAccounts/Native.cs | 26 +- .../LocalAccounts/NtStatus.cs | 6 +- .../LocalAccounts/PInvokeDllNames.cs | 4 +- .../LocalAccounts/Properties/AssemblyInfo.cs | 2 +- .../LocalAccounts/Sam.cs | 12 +- .../LocalAccounts/SamApi.cs | 2 +- .../Generated/AddComputerActivity.cs | 12 +- .../Generated/AddContentActivity.cs | 10 +- .../Generated/CheckpointComputerActivity.cs | 10 +- .../Generated/ClearContentActivity.cs | 10 +- .../Generated/ClearEventLogActivity.cs | 12 +- .../Generated/ClearItemActivity.cs | 10 +- .../Generated/ClearItemPropertyActivity.cs | 10 +- .../Generated/ClearRecycleBinActivity.cs | 10 +- .../Generated/ConvertPathActivity.cs | 10 +- .../Generated/CopyItemActivity.cs | 10 +- .../Generated/CopyItemPropertyActivity.cs | 10 +- .../DisableComputerRestoreActivity.cs | 10 +- .../EnableComputerRestoreActivity.cs | 10 +- .../Generated/GetChildItemActivity.cs | 10 +- .../GetComputerRestorePointActivity.cs | 10 +- .../Generated/GetContentActivity.cs | 10 +- .../Generated/GetEventLogActivity.cs | 12 +- .../Generated/GetHotFixActivity.cs | 12 +- .../Generated/GetItemActivity.cs | 10 +- .../Generated/GetItemPropertyActivity.cs | 10 +- .../Generated/GetItemPropertyValueActivity.cs | 10 +- .../Generated/GetLocationActivity.cs | 10 +- .../Generated/GetPSDriveActivity.cs | 10 +- .../Generated/GetPSProviderActivity.cs | 10 +- .../Generated/GetProcessActivity.cs | 12 +- .../Generated/GetServiceActivity.cs | 12 +- .../Generated/InvokeItemActivity.cs | 10 +- .../Generated/JoinPathActivity.cs | 10 +- .../Generated/LimitEventLogActivity.cs | 12 +- .../Generated/MoveItemActivity.cs | 10 +- .../Generated/MoveItemPropertyActivity.cs | 10 +- .../Generated/NewEventLogActivity.cs | 12 +- .../Generated/NewItemActivity.cs | 10 +- .../Generated/NewItemPropertyActivity.cs | 10 +- .../Generated/NewServiceActivity.cs | 10 +- .../Generated/NewWebServiceProxyActivity.cs | 10 +- .../Generated/RegisterWmiEventActivity.cs | 10 +- .../Generated/RemoveComputerActivity.cs | 12 +- .../Generated/RemoveEventLogActivity.cs | 12 +- .../Generated/RemoveItemActivity.cs | 10 +- .../Generated/RemoveItemPropertyActivity.cs | 10 +- .../Generated/RemoveWmiObjectActivity.cs | 10 +- .../Generated/RenameComputerActivity.cs | 12 +- .../Generated/RenameItemActivity.cs | 10 +- .../Generated/RenameItemPropertyActivity.cs | 10 +- .../ResetComputerMachinePasswordActivity.cs | 10 +- .../Generated/ResolvePathActivity.cs | 10 +- .../Generated/RestartServiceActivity.cs | 10 +- .../Generated/RestoreComputerActivity.cs | 10 +- .../Generated/ResumeServiceActivity.cs | 10 +- .../Generated/SetContentActivity.cs | 10 +- .../Generated/SetItemActivity.cs | 10 +- .../Generated/SetItemPropertyActivity.cs | 10 +- .../Generated/SetServiceActivity.cs | 12 +- .../Generated/SetWmiInstanceActivity.cs | 10 +- .../Generated/SplitPathActivity.cs | 10 +- .../Generated/StartProcessActivity.cs | 10 +- .../Generated/StartServiceActivity.cs | 10 +- .../Generated/StopComputerActivity.cs | 12 +- .../Generated/StopProcessActivity.cs | 10 +- .../Generated/StopServiceActivity.cs | 10 +- .../Generated/SuspendServiceActivity.cs | 10 +- .../TestComputerSecureChannelActivity.cs | 10 +- .../Generated/TestConnectionActivity.cs | 10 +- .../Generated/TestPathActivity.cs | 10 +- .../Generated/WaitProcessActivity.cs | 10 +- .../Generated/WriteEventLogActivity.cs | 12 +- .../RestartComputerActivity.cs | 2 +- .../AssemblyInfo.cs | 10 +- .../BasicEditing.cs | 2 +- .../Completion.cs | 4 +- .../ConsoleKeyChordConverter.cs | 2 +- .../ConsoleLib.cs | 4 +- .../HistoryQueue.cs | 2 +- .../KeyBindings.cs | 2 +- src/Microsoft.PowerShell.PSReadLine/Keys.cs | 2 +- .../KillYank.cs | 8 +- .../Movement.cs | 4 +- .../Options.cs | 2 +- .../PSReadLineResources.Designer.cs | 406 +++---- .../ReadLine.cs | 4 +- .../ReadLine.vi.cs | 4 +- src/Microsoft.PowerShell.PSReadLine/Render.cs | 4 +- .../Replace.vi.cs | 2 +- .../SamplePSReadlineProfile.ps1 | 6 +- .../Words.vi.cs | 2 +- .../ScheduledJob.cs | 6 +- .../ScheduledJobDefinition.cs | 56 +- .../ScheduledJobSourceAdapter.cs | 24 +- .../ScheduledJobStore.cs | 18 +- .../ScheduledJobTrigger.cs | 10 +- .../ScheduledJobWTS.cs | 10 +- .../commands/AddJobTrigger.cs | 14 +- .../commands/DisableJobDefinitionBase.cs | 6 +- .../commands/EnableDisableCmdletBase.cs | 4 +- .../commands/GetJobDefinition.cs | 8 +- .../commands/GetJobTrigger.cs | 6 +- .../commands/GetScheduledJobOption.cs | 2 +- .../commands/NewJobTrigger.cs | 16 +- .../commands/RegisterJobDefinition.cs | 10 +- .../commands/RemoveJobTrigger.cs | 6 +- .../commands/SchedJobCmdletBase.cs | 10 +- .../commands/ScheduledJobOptionCmdletBase.cs | 2 +- .../commands/SetJobDefinition.cs | 10 +- .../commands/SetJobTrigger.cs | 2 +- .../commands/SetScheduledJobOption.cs | 2 +- .../commands/UnregisterJobDefinition.cs | 4 +- .../security/AclCommands.cs | 32 +- .../security/CatalogCommands.cs | 44 +- .../security/CertificateProvider.cs | 236 ++--- .../security/CmsCommands.cs | 6 +- .../security/CredentialCommands.cs | 6 +- .../security/ExecutionPolicyCommands.cs | 10 +- .../security/SecureStringCommands.cs | 28 +- .../security/SignatureCommands.cs | 12 +- .../security/Utils.cs | 8 +- .../security/certificateproviderexceptions.cs | 10 +- .../installer/MshSecurityMshSnapin.cs | 24 +- .../Generated/AddMemberActivity.cs | 10 +- .../Generated/AddTypeActivity.cs | 10 +- .../Generated/CompareObjectActivity.cs | 10 +- .../Generated/ConvertFromCsvActivity.cs | 10 +- .../Generated/ConvertFromJsonActivity.cs | 10 +- .../Generated/ConvertFromStringActivity.cs | 10 +- .../ConvertFromStringDataActivity.cs | 10 +- .../Generated/ConvertToCsvActivity.cs | 10 +- .../Generated/ConvertToHtmlActivity.cs | 10 +- .../Generated/ConvertToJsonActivity.cs | 10 +- .../Generated/ConvertToXmlActivity.cs | 10 +- .../Generated/ExportClixmlActivity.cs | 10 +- .../Generated/ExportCsvActivity.cs | 10 +- .../Generated/ExportFormatDataActivity.cs | 10 +- .../Generated/GetCultureActivity.cs | 10 +- .../Generated/GetDateActivity.cs | 10 +- .../Generated/GetEventActivity.cs | 10 +- .../Generated/GetEventSubscriberActivity.cs | 10 +- .../Generated/GetHostActivity.cs | 10 +- .../Generated/GetMemberActivity.cs | 10 +- .../Generated/GetRandomActivity.cs | 10 +- .../Generated/GetTraceSourceActivity.cs | 10 +- .../Generated/GetTypeDataActivity.cs | 10 +- .../Generated/GetUICultureActivity.cs | 10 +- .../Generated/GetUniqueActivity.cs | 10 +- .../Generated/GroupObjectActivity.cs | 10 +- .../Generated/ImportClixmlActivity.cs | 10 +- .../Generated/ImportCsvActivity.cs | 10 +- .../Generated/InvokeExpressionActivity.cs | 10 +- .../Generated/InvokeRestMethodActivity.cs | 10 +- .../Generated/InvokeWebRequestActivity.cs | 10 +- .../Generated/MeasureCommandActivity.cs | 10 +- .../Generated/MeasureObjectActivity.cs | 10 +- .../Generated/NewEventActivity.cs | 10 +- .../Generated/NewTimeSpanActivity.cs | 10 +- .../Generated/OutFileActivity.cs | 10 +- .../Generated/OutPrinterActivity.cs | 10 +- .../Generated/OutStringActivity.cs | 10 +- .../Generated/RegisterEngineEventActivity.cs | 10 +- .../Generated/RegisterObjectEventActivity.cs | 10 +- .../Generated/RemoveEventActivity.cs | 10 +- .../Generated/SelectObjectActivity.cs | 10 +- .../Generated/SelectStringActivity.cs | 10 +- .../Generated/SelectXmlActivity.cs | 10 +- .../Generated/SendMailMessageActivity.cs | 10 +- .../Generated/SetDateActivity.cs | 10 +- .../Generated/SetTraceSourceActivity.cs | 10 +- .../Generated/SortObjectActivity.cs | 10 +- .../Generated/StartSleepActivity.cs | 10 +- .../Generated/TeeObjectActivity.cs | 10 +- .../Generated/UnblockFileActivity.cs | 10 +- .../Generated/UnregisterEventActivity.cs | 10 +- .../Generated/UpdateListActivity.cs | 10 +- .../Generated/WaitEventActivity.cs | 10 +- .../Generated/WriteDebugActivity.cs | 10 +- .../Generated/WriteErrorActivity.cs | 10 +- .../Generated/WriteInformationActivity.cs | 10 +- .../Generated/WriteOutputActivity.cs | 10 +- .../Generated/WriteProgressActivity.cs | 10 +- .../Generated/WriteVerboseActivity.cs | 10 +- .../Generated/WriteWarningActivity.cs | 10 +- .../ImportLocalizedDataActivity.cs | 8 +- .../WorkflowCore/ActivityCategories.cs | 2 +- .../WorkflowCore/ActivityHostManager.cs | 34 +- .../WorkflowCore/ActivityHostProcess.cs | 48 +- .../WorkflowCore/ConnectionManager.cs | 74 +- .../DefaultWorkflowSessionConfiguration.cs | 6 +- .../FileInstanceStore/AsyncResult.cs | 2 +- .../InstanceStoreCryptography.cs | 2 +- .../InstanceStorePermission.cs | 12 +- .../WorkflowAdditionalStores.cs | 26 +- .../WorkflowCore/GlobalConfiguration.cs | 22 +- .../WorkflowCore/LocalRunspaceProvider.cs | 14 +- .../WorkflowCore/PSActivityBase.cs | 232 ++-- .../WorkflowCore/PSActivityHostManager.cs | 6 +- .../WorkflowCore/PSCleanupActivity.cs | 4 +- .../WorkflowCore/PSRemotingActivitiesBase.cs | 8 +- .../PSSelfRemotingActivitiesBase.cs | 84 +- .../WorkflowCore/PSWorkflowHost.cs | 8 +- .../WorkflowCore/PowerShellWorkflowHost.cs | 2 +- .../ServiceCore/WorkflowCore/RuntimeBase.cs | 18 +- .../WorkflowCore/TimeBasedCache.cs | 10 +- .../WorkflowCore/WorkflowDebugger.cs | 30 +- .../WorkflowCore/WorkflowInstance.cs | 120 +-- .../ServiceCore/WorkflowCore/WorkflowJob2.cs | 24 +- .../WorkflowCore/WorkflowJobSourceAdapter.cs | 24 +- .../WorkflowCore/WorkflowManager.cs | 32 +- .../WorkflowCore/WorkflowMetadatas.cs | 4 +- .../WorkflowPerformanceCounterSetInfo.cs | 2 +- .../WorkflowCore/WorkflowStatusEventArgs.cs | 4 +- .../WorkflowCore/WorkflowTimers.cs | 4 +- .../WorkflowTrackingParticipant.cs | 2 +- .../ServiceCore/WorkflowCore/WorkflowUtils.cs | 22 +- .../WorkflowCore/WorkflowValidation.cs | 10 +- .../Generated/ConnectWSManActivity.cs | 16 +- .../Generated/DisableWSManCredSSPActivity.cs | 10 +- .../Generated/DisconnectWSManActivity.cs | 18 +- .../Generated/EnableWSManCredSSPActivity.cs | 10 +- .../Generated/GetWSManCredSSPActivity.cs | 10 +- .../Generated/GetWSManInstanceActivity.cs | 14 +- .../Generated/InvokeWSManActionActivity.cs | 16 +- .../Generated/NewWSManInstanceActivity.cs | 18 +- .../NewWSManSessionOptionActivity.cs | 10 +- .../Generated/RemoveWSManInstanceActivity.cs | 18 +- .../Generated/SetWSManInstanceActivity.cs | 18 +- .../Generated/SetWSManQuickConfigActivity.cs | 10 +- .../Generated/TestWSManActivity.cs | 16 +- .../ConfigProvider.cs | 210 ++-- src/Microsoft.WSMan.Management/CredSSP.cs | 76 +- .../CurrentConfigurations.cs | 8 +- src/Microsoft.WSMan.Management/Interop.cs | 46 +- .../InvokeWSManAction.cs | 38 +- .../NewWSManSession.cs | 32 +- src/Microsoft.WSMan.Management/PingWSMan.cs | 30 +- .../Set-QuickConfig.cs | 8 +- .../WSManConnections.cs | 58 +- .../WSManInstance.cs | 150 +-- src/Microsoft.WSMan.Management/WsManHelper.cs | 34 +- src/Microsoft.WSMan.Management/WsManSnapin.cs | 10 +- .../WSManSessionOption.cs | 54 +- .../Microsoft.PowerShell.Archive.psm1 | 250 ++--- .../Microsoft.PowerShell.Utility.psd1 | 2 +- .../WSMan.format.ps1xml | 14 +- .../PSDiagnostics/PSDiagnostics.psm1 | 94 +- .../Diagnostics.format.ps1xml | 12 +- .../Event.format.ps1xml | 4 +- .../GetEvent.types.ps1xml | 26 +- .../Microsoft.PowerShell.Utility.psd1 | 2 +- .../Diagnostics.format.ps1xml | 12 +- .../Event.format.ps1xml | 4 +- .../GetEvent.types.ps1xml | 26 +- .../Microsoft.PowerShell.ODataAdapter.ps1 | 348 +++--- .../Microsoft.PowerShell.ODataUtils.psm1 | 30 +- .../Microsoft.PowerShell.ODataUtilsHelper.ps1 | 112 +- .../Microsoft.PowerShell.ODataV4Adapter.ps1 | 338 +++--- .../PSScheduledJob.types.ps1xml | 16 +- .../Windows-Full/PSWorkflow/PSWorkflow.psm1 | 4 +- .../PSWorkflow/PSWorkflow.types.ps1xml | 16 +- .../PSWorkflowUtility/PSWorkflowUtility.psm1 | 4 +- src/ResGen/Program.cs | 2 +- .../CoreCLR/CorePsExtensions.cs | 26 +- .../CoreCLR/CorePsPlatform.cs | 6 +- .../CoreCLR/CorePsStub.cs | 112 +- .../DscSupport/CimDSCParser.cs | 54 +- .../cmdletization/ObjectModelWrapper.cs | 2 +- .../cimSupport/cmdletization/QueryBuilder.cs | 20 +- .../cimSupport/cmdletization/ScriptWriter.cs | 18 +- .../cim/WildcardPatternToCimQueryParser.cs | 4 +- ...mdlets-over-objects.objectModel.autogen.cs | 4 +- ...lets-over-objects.xmlSerializer.autogen.cs | 6 +- ...mdlets-over-objects.objectModel.autogen.cs | 8 +- ...lets-over-objects.xmlSerializer.autogen.cs | 4 +- .../other/ciminstancetypeadapter.cs | 18 +- .../FormatAndOutput/common/BaseCommand.cs | 2 +- .../common/BaseFormattingCommand.cs | 12 +- .../common/BaseFormattingCommandParameters.cs | 2 +- .../common/BaseOutputtingCommand.cs | 8 +- .../common/ColumnWidthManager.cs | 2 +- .../FileSystem_format_ps1xml.cs | 2 +- .../DefaultFormatters/HelpV3_format_ps1xml.cs | 2 +- .../DefaultFormatters/Help_format_ps1xml.cs | 2 +- .../PowerShellCore_format_ps1xml.cs | 14 +- .../common/DisplayDatabase/XmlLoaderBase.cs | 8 +- .../DisplayDatabase/displayDescriptionData.cs | 8 +- .../displayDescriptionData_Table.cs | 2 +- .../common/DisplayDatabase/typeDataManager.cs | 4 +- .../DisplayDatabase/typeDataXmlLoader.cs | 4 +- .../typeDataXmlLoader_Complex.cs | 2 +- .../typeDataXmlLoader_Table.cs | 2 +- .../typeDataXmlLoader_Views.cs | 2 +- .../common/FormatGroupManager.cs | 6 +- .../common/FormatMsgCtxManager.cs | 10 +- .../common/FormatViewGenerator_Complex.cs | 6 +- .../common/FormatViewGenerator_List.cs | 4 +- .../common/FormatViewGenerator_Table.cs | 4 +- .../common/FormatViewManager.cs | 10 +- .../common/FormattingObjects.cs | 10 +- .../common/FormattingObjectsDeserializer.cs | 8 +- .../FormatAndOutput/common/ILineOutput.cs | 18 +- .../FormatAndOutput/common/ListWriter.cs | 4 +- .../FormatAndOutput/common/OutputManager.cs | 12 +- .../FormatAndOutput/common/OutputQueue.cs | 2 +- .../FormatAndOutput/common/TableWriter.cs | 6 +- .../common/Utilities/MshObjectUtil.cs | 2 +- .../common/Utilities/MshParameter.cs | 6 +- .../Utilities/MshParameterAssociation.cs | 4 +- .../out-console/ConsoleLineOutput.cs | 8 +- .../FormatAndOutput/out-console/OutConsole.cs | 2 +- .../out-textInterface/OutTextInterface.cs | 2 +- .../engine/AliasInfo.cs | 50 +- .../engine/ApplicationInfo.cs | 10 +- .../engine/ArgumentTypeConverterAttribute.cs | 4 +- .../engine/Attributes.cs | 66 +- .../engine/AutomationEngine.cs | 4 +- .../engine/COM/ComAdapter.cs | 2 +- .../engine/COM/ComInvoker.cs | 8 +- .../engine/COM/ComProperty.cs | 2 +- .../engine/COM/ComTypeInfo.cs | 6 +- .../engine/COM/ComUtil.cs | 6 +- .../ChildrenCmdletProviderInterfaces.cs | 212 ++-- .../engine/CmdletFamilyProviderInterfaces.cs | 6 +- .../engine/CmdletInfo.cs | 30 +- .../engine/CmdletParameterBinderController.cs | 266 ++--- .../engine/CodeMethods.cs | 2 +- .../engine/ComInterop/ArgBuilder.cs | 4 +- .../engine/ComInterop/ComBinder.cs | 4 +- .../engine/ComInterop/ComEventSink.cs | 18 +- .../engine/ComInterop/ComEventSinkProxy.cs | 18 +- .../ComInterop/ComEventSinksContainer.cs | 2 +- .../engine/ComInterop/ComInvokeAction.cs | 2 +- .../engine/ComInterop/ComParamDesc.cs | 2 +- .../engine/ComInterop/ComRuntimeHelpers.cs | 28 +- .../engine/ComInterop/ComTypeDesc.cs | 2 +- .../engine/ComInterop/ComTypeLibDesc.cs | 2 +- .../engine/ComInterop/IDispatchComObject.cs | 60 +- .../engine/ComInterop/NullArgBuilder.cs | 2 +- .../engine/ComInterop/VarEnumSelector.cs | 18 +- .../engine/ComInterop/Variant.cs | 4 +- .../engine/ComInterop/VariantBuilder.cs | 2 +- .../engine/CommandBase.cs | 20 +- .../CommandCompletion/CommandCompletion.cs | 20 +- .../CommandCompletion/CompletionAnalysis.cs | 6 +- .../CommandCompletion/CompletionCompleters.cs | 40 +- .../CompletionExecutionHelper.cs | 2 +- .../CommandCompletion/CompletionResult.cs | 6 +- .../CommandCompletion/ExtensibleCompletion.cs | 12 +- .../PseudoParameterBinder.cs | 24 +- .../engine/CommandDiscovery.cs | 156 +-- .../engine/CommandFactory.cs | 2 +- .../engine/CommandInfo.cs | 68 +- .../engine/CommandMetadata.cs | 106 +- .../engine/CommandPathSearch.cs | 32 +- .../engine/CommandProcessor.cs | 88 +- .../engine/CommandProcessorBase.cs | 76 +- .../engine/CommandSearcher.cs | 108 +- .../engine/CommonCommandParameters.cs | 40 +- .../engine/CompiledCommandParameter.cs | 80 +- .../engine/ConfigurationInfo.cs | 66 +- .../engine/ContentCmdletProviderInterfaces.cs | 154 +-- .../engine/Credential.cs | 20 +- .../engine/CultureVariable.cs | 8 +- .../engine/DataStoreAdapter.cs | 134 +-- .../engine/DataStoreAdapterProvider.cs | 84 +- .../engine/DriveInterfaces.cs | 48 +- .../engine/DscResourceInfo.cs | 4 +- .../engine/DscResourceSearcher.cs | 4 +- .../engine/EngineIntrinsics.cs | 2 +- .../engine/EnumExpressionEvaluator.cs | 22 +- .../engine/EnumMinimumDisambiguation.cs | 8 +- .../engine/ErrorPackage.cs | 98 +- .../engine/EventManager.cs | 88 +- .../engine/ExecutionContext.cs | 32 +- .../engine/ExtendedTypeSystemException.cs | 18 +- .../engine/ExternalScriptInfo.cs | 28 +- .../engine/ExtraAdapter.cs | 14 +- .../engine/FilterInfo.cs | 48 +- .../engine/FunctionInfo.cs | 72 +- .../engine/GetCommandCommand.cs | 68 +- .../engine/GetEvent_Types_Ps1Xml.generated.cs | 6 +- .../engine/ICommandRuntime.cs | 66 +- .../engine/InformationRecord.cs | 14 +- .../engine/InitialSessionState.cs | 34 +- .../engine/InvocationInfo.cs | 26 +- .../engine/ItemCmdletProviderInterfaces.cs | 514 ++++----- .../engine/LanguagePrimitives.cs | 140 +-- .../engine/ManagementObjectAdapter.cs | 34 +- .../engine/MergedCommandParameterMetadata.cs | 80 +- .../MinishellParameterBinderController.cs | 28 +- .../engine/Modules/AnalysisCache.cs | 8 +- .../engine/Modules/GetModuleCommand.cs | 4 +- .../engine/Modules/ImportModuleCommand.cs | 18 +- .../engine/Modules/ModuleCmdletBase.cs | 86 +- .../engine/Modules/ModuleIntrinsics.cs | 24 +- .../engine/Modules/ModuleSpecification.cs | 4 +- .../engine/Modules/ModuleUtils.cs | 8 +- .../engine/Modules/PSModuleInfo.cs | 20 +- .../engine/Modules/RemoveModuleCommand.cs | 10 +- .../engine/MshCmdlet.cs | 20 +- .../engine/MshCommandRuntime.cs | 134 +-- .../engine/MshMemberInfo.cs | 72 +- .../engine/MshObject.cs | 58 +- .../engine/MshObjectTypeDescriptor.cs | 44 +- .../engine/MshReference.cs | 22 +- .../engine/MshSnapinQualifiedName.cs | 18 +- .../engine/NativeCommandParameterBinder.cs | 8 +- .../NativeCommandParameterBinderController.cs | 20 +- .../engine/NativeCommandProcessor.cs | 100 +- .../engine/NullString.cs | 2 +- .../engine/PSClassInfo.cs | 2 +- .../engine/PSClassSearcher.cs | 2 +- .../engine/PSMI/PSPowerShellPipeline.cs | 18 +- .../Serialization/InternalMISerializer.cs | 20 +- .../engine/PSMI/Serialization/KnownMITypes.cs | 8 +- .../Serialization/MITypeSerializationInfo.cs | 2 +- .../engine/PSVersionInfo.cs | 22 +- .../engine/ParameterBinderBase.cs | 130 +-- .../engine/ParameterBinderController.cs | 104 +- .../engine/ParameterInfo.cs | 12 +- .../engine/ParameterSetInfo.cs | 22 +- .../engine/ParameterSetPromptingData.cs | 6 +- .../engine/ParameterSetSpecificMetadata.cs | 20 +- .../engine/PathInterfaces.cs | 310 +++--- .../engine/Pipe.cs | 4 +- .../engine/PositionalCommandParameter.cs | 2 +- .../engine/ProgressRecord.cs | 110 +- .../engine/PropertyAccessor.cs | 50 +- .../PropertyCmdletProviderInterfaces.cs | 450 ++++---- .../engine/ProviderInterfaces.cs | 20 +- .../engine/ProviderNames.cs | 2 +- .../engine/ProxyCommand.cs | 6 +- .../engine/PseudoParameterBinder.cs | 18 +- .../engine/PseudoParameters.cs | 32 +- .../engine/QuestionMarkVariable.cs | 6 +- .../engine/ReflectionParameterBinder.cs | 24 +- .../engine/ScopedItemSearcher.cs | 86 +- .../engine/ScriptCommandProcessor.cs | 104 +- .../engine/ScriptInfo.cs | 10 +- ...urityDescriptorCmdletProviderInterfaces.cs | 8 +- .../engine/SecurityManagerBase.cs | 28 +- .../engine/SerializationStrings.cs | 48 +- .../engine/SessionState.cs | 58 +- .../engine/SessionStateAliasAPIs.cs | 164 +-- .../engine/SessionStateCmdletAPIs.cs | 66 +- .../engine/SessionStateContainer.cs | 988 +++++++++--------- .../engine/SessionStateContent.cs | 262 ++--- .../engine/SessionStateDriveAPIs.cs | 154 +-- .../engine/SessionStateDynamicProperty.cs | 500 ++++----- .../engine/SessionStateFunctionAPIs.cs | 226 ++-- .../engine/SessionStateItem.cs | 354 +++---- .../engine/SessionStateLocationAPIs.cs | 100 +- .../engine/SessionStateNavigation.cs | 402 +++---- .../engine/SessionStateProperty.cs | 290 ++--- .../engine/SessionStateProviderAPIs.cs | 270 ++--- .../engine/SessionStatePublic.cs | 6 +- .../engine/SessionStateScope.cs | 188 ++-- .../engine/SessionStateScopeAPIs.cs | 38 +- .../engine/SessionStateScopeEnumerator.cs | 12 +- ...SessionStateSecurityDescriptorInterface.cs | 82 +- .../engine/SessionStateStrings.cs | 12 +- .../engine/SessionStateUtils.cs | 38 +- .../engine/SessionStateVariableAPIs.cs | 494 ++++----- .../engine/ShellVariable.cs | 102 +- .../engine/SpecialVariables.cs | 2 +- .../engine/TypeMetadata.cs | 118 +-- .../engine/TypeTable.cs | 26 +- .../engine/Types_Ps1Xml.generated.cs | 2 +- .../engine/UserFeedbackParameters.cs | 10 +- .../engine/Utils.cs | 38 +- .../engine/VariableAttributeCollection.cs | 30 +- .../engine/VariableInterfaces.cs | 88 +- .../engine/VariablePath.cs | 4 +- .../engine/WinRT/IInspectable.cs | 8 +- .../engine/WorkflowInfo.cs | 76 +- .../engine/cmdlet.cs | 94 +- .../engine/debugger/Breakpoint.cs | 2 +- .../engine/debugger/debugger.cs | 60 +- .../engine/hostifaces/AsyncResult.cs | 2 +- .../engine/hostifaces/ChoiceDescription.cs | 56 +- .../engine/hostifaces/Command.cs | 24 +- .../engine/hostifaces/ConnectionBase.cs | 90 +- .../engine/hostifaces/ConnectionFactory.cs | 88 +- .../engine/hostifaces/DefaultHost.cs | 28 +- .../engine/hostifaces/FieldDescription.cs | 130 +-- .../engine/hostifaces/History.cs | 104 +- .../engine/hostifaces/HostUtilities.cs | 14 +- .../engine/hostifaces/InformationalRecord.cs | 16 +- .../engine/hostifaces/InternalHost.cs | 116 +- .../InternalHostRawUserInterface.cs | 80 +- .../hostifaces/InternalHostUserInterface.cs | 120 +-- .../engine/hostifaces/ListModifier.cs | 4 +- .../engine/hostifaces/LocalConnection.cs | 58 +- .../engine/hostifaces/LocalPipeline.cs | 36 +- .../engine/hostifaces/MshHost.cs | 220 ++-- .../hostifaces/MshHostRawUserInterface.cs | 876 ++++++++-------- .../engine/hostifaces/MshHostUserInterface.cs | 40 +- .../hostifaces/NativeCultureResolver.cs | 52 +- .../engine/hostifaces/PSCommand.cs | 34 +- .../engine/hostifaces/PSDataCollection.cs | 142 +-- .../engine/hostifaces/Parameter.cs | 6 +- .../engine/hostifaces/Pipeline.cs | 72 +- .../engine/hostifaces/PowerShell.cs | 314 +++--- .../hostifaces/PowerShellProcessInstance.cs | 28 +- .../engine/hostifaces/RunspaceInvoke.cs | 10 +- .../engine/hostifaces/RunspacePool.cs | 88 +- .../engine/hostifaces/RunspacePoolInternal.cs | 86 +- .../internalHostuserInterfacesecurity.cs | 12 +- .../engine/hostifaces/pipelinebase.cs | 84 +- .../engine/interpreter/AddInstruction.cs | 10 +- .../engine/interpreter/ArrayOperations.cs | 10 +- .../engine/interpreter/BranchLabel.cs | 12 +- .../interpreter/CallInstruction.Generated.cs | 16 +- .../engine/interpreter/CallInstruction.cs | 18 +- .../engine/interpreter/DivInstruction.cs | 10 +- .../engine/interpreter/DynamicInstructionN.cs | 10 +- .../DynamicInstructions.Generated.cs | 14 +- .../interpreter/DynamicSplatInstruction.cs | 10 +- .../engine/interpreter/EqualInstruction.cs | 10 +- .../engine/interpreter/FieldOperations.cs | 10 +- .../interpreter/GreaterThanInstruction.cs | 10 +- .../interpreter/ILightCallSiteBinder.cs | 10 +- .../engine/interpreter/Instruction.cs | 10 +- .../engine/interpreter/InstructionFactory.cs | 12 +- .../engine/interpreter/InstructionList.cs | 10 +- .../engine/interpreter/InterpretedFrame.cs | 10 +- .../engine/interpreter/Interpreter.cs | 20 +- .../engine/interpreter/LabelInfo.cs | 12 +- .../engine/interpreter/LessThanInstruction.cs | 10 +- .../engine/interpreter/LightCompiler.cs | 16 +- .../interpreter/LightDelegateCreator.cs | 10 +- .../interpreter/LightLambda.Generated.cs | 10 +- .../engine/interpreter/LightLambda.cs | 10 +- .../interpreter/LightLambdaClosureVisitor.cs | 12 +- .../engine/interpreter/LocalAccess.cs | 10 +- .../engine/interpreter/LocalVariables.cs | 10 +- .../engine/interpreter/LoopCompiler.cs | 20 +- .../engine/interpreter/MulInstruction.cs | 10 +- .../engine/interpreter/NotEqualInstruction.cs | 10 +- .../interpreter/NumericConvertInstruction.cs | 10 +- .../interpreter/PowerShellInstructions.cs | 10 +- .../engine/interpreter/RuntimeVariables.cs | 10 +- .../engine/interpreter/StackOperations.cs | 10 +- .../engine/interpreter/SubInstruction.cs | 10 +- .../engine/interpreter/TypeOperations.cs | 10 +- .../engine/interpreter/Utilities.cs | 10 +- .../engine/lang/codegen.cs | 2 +- .../engine/lang/interface/PSParseError.cs | 10 +- .../engine/lang/interface/PSParser.cs | 62 +- .../engine/lang/interface/PSToken.cs | 166 +-- .../engine/lang/parserutils.cs | 20 +- .../engine/lang/scriptblock.cs | 98 +- .../engine/parser/AstVisitor.cs | 2 +- .../engine/parser/CharTraits.cs | 6 +- .../engine/parser/Compiler.cs | 18 +- .../engine/parser/DebugViewWriter.cs | 16 +- .../engine/parser/FusionAssemblyIdentity.cs | 4 +- .../engine/parser/GlobalAssemblyCache.cs | 2 +- .../engine/parser/PSType.cs | 8 +- .../engine/parser/Parser.cs | 28 +- .../engine/parser/Position.cs | 2 +- .../engine/parser/SafeValues.cs | 30 +- .../engine/parser/SemanticChecks.cs | 6 +- .../engine/parser/SymbolResolver.cs | 2 +- .../engine/parser/TypeResolver.cs | 22 +- .../engine/parser/VariableAnalysis.cs | 10 +- .../engine/parser/ast.cs | 30 +- .../engine/parser/token.cs | 4 +- .../engine/parser/tokenizer.cs | 52 +- .../engine/pipeline.cs | 6 +- .../engine/regex.cs | 68 +- .../remoting/client/ClientRemotePowerShell.cs | 42 +- .../engine/remoting/client/Job.cs | 152 +-- .../engine/remoting/client/Job2.cs | 58 +- .../engine/remoting/client/JobManager.cs | 8 +- .../remoting/client/JobSourceAdapter.cs | 32 +- .../engine/remoting/client/PSProxyJob.cs | 28 +- .../remoting/client/PowerShellStreams.cs | 2 +- .../client/RemoteRunspacePoolInternal.cs | 60 +- .../remoting/client/RemotingErrorRecord.cs | 8 +- .../remoting/client/RemotingProtocol2.cs | 60 +- .../engine/remoting/client/RunspaceRef.cs | 2 +- .../engine/remoting/client/ThrottlingJob.cs | 18 +- .../remoting/client/clientremotesession.cs | 14 +- ...clientremotesessionprotocolstatemachine.cs | 44 +- .../engine/remoting/client/remotepipeline.cs | 64 +- .../engine/remoting/client/remoterunspace.cs | 180 ++-- .../remoting/client/remoterunspaceinfo.cs | 10 +- .../client/remotingprotocolimplementation.cs | 20 +- .../remoting/commands/ConnectPSSession.cs | 46 +- .../remoting/commands/CustomShellCommands.cs | 224 ++-- .../engine/remoting/commands/DebugJob.cs | 12 +- .../remoting/commands/DisconnectPSSession.cs | 24 +- .../commands/EnterPSHostProcessCommand.cs | 6 +- .../engine/remoting/commands/GetJob.cs | 6 +- .../remoting/commands/InvokeCommandCommand.cs | 156 +-- .../engine/remoting/commands/JobRepository.cs | 2 +- .../commands/NewPSSessionConfigurationFile.cs | 8 +- .../remoting/commands/PSRemotingCmdlet.cs | 128 +-- .../remoting/commands/PushRunspaceCommand.cs | 14 +- .../engine/remoting/commands/ReceiveJob.cs | 82 +- .../remoting/commands/ReceivePSSession.cs | 54 +- .../engine/remoting/commands/RemoveJob.cs | 40 +- .../engine/remoting/commands/ResumeJob.cs | 8 +- .../engine/remoting/commands/StartJob.cs | 14 +- .../engine/remoting/commands/StopJob.cs | 8 +- .../engine/remoting/commands/SuspendJob.cs | 12 +- .../TestPSSessionConfigurationFile.cs | 4 +- .../engine/remoting/commands/WaitJob.cs | 4 +- .../remoting/commands/getrunspacecommand.cs | 32 +- .../remoting/commands/newrunspacecommand.cs | 76 +- .../remoting/commands/remotingcommandutil.cs | 8 +- .../commands/removerunspacecommand.cs | 6 +- .../PSSessionConfigurationTypeOption.cs | 4 +- .../common/RemoteSessionHyperVSocket.cs | 22 +- .../remoting/common/RemoteSessionNamedPipe.cs | 4 +- .../common/WireDataFormat/EncodeAndDecode.cs | 88 +- .../common/WireDataFormat/RemoteHost.cs | 16 +- .../WireDataFormat/RemoteHostEncoder.cs | 2 +- .../WireDataFormat/RemoteSessionCapability.cs | 2 +- .../WireDataFormat/RemotingDataObject.cs | 6 +- .../engine/remoting/common/fragmentor.cs | 46 +- .../engine/remoting/common/misc.cs | 22 +- .../engine/remoting/common/psstreamobject.cs | 42 +- .../remoting/common/remotingexceptions.cs | 6 +- .../engine/remoting/common/throttlemanager.cs | 84 +- .../remoting/fanin/BaseTransportManager.cs | 58 +- .../fanin/InitialSessionStateProvider.cs | 58 +- .../fanin/OutOfProcTransportManager.cs | 18 +- .../engine/remoting/fanin/PSPrincipal.cs | 12 +- .../fanin/PSSessionConfigurationData.cs | 6 +- .../remoting/fanin/PriorityCollection.cs | 50 +- .../engine/remoting/fanin/WSManNativeAPI.cs | 194 ++-- .../engine/remoting/fanin/WSManPlugin.cs | 16 +- .../remoting/fanin/WSManPluginFacade.cs | 70 +- .../remoting/fanin/WSManPluginShellSession.cs | 64 +- .../fanin/WSManPluginTransportManager.cs | 14 +- .../remoting/fanin/WSManTransportManager.cs | 80 +- .../server/OutOfProcServerMediator.cs | 20 +- .../remoting/server/ServerMethodExecutor.cs | 2 +- .../remoting/server/ServerPowerShellDriver.cs | 46 +- .../remoting/server/ServerRemoteHost.cs | 4 +- .../server/ServerRemotingProtocol2.cs | 24 +- .../server/ServerRunspacePoolDriver.cs | 40 +- .../server/ServerSteppablePipelineDriver.cs | 16 +- .../remoting/server/serverremotesession.cs | 62 +- .../server/serverremotesessionstatemachine.cs | 60 +- .../remoting/server/serverremotingprotocol.cs | 6 +- .../serverremotingprotocolimplementation.cs | 8 +- .../engine/runtime/Binding/Binders.cs | 36 +- .../engine/runtime/CompiledScriptBlock.cs | 8 +- .../engine/runtime/MutableTuple.cs | 20 +- .../engine/runtime/Operations/ClassOps.cs | 12 +- .../engine/runtime/Operations/MiscOps.cs | 32 +- .../engine/runtime/Operations/StringOps.cs | 2 +- .../engine/runtime/Operations/VariableOps.cs | 2 +- .../engine/runtime/ScriptBlockToPowerShell.cs | 10 +- .../engine/scriptparameterbinder.cs | 18 +- .../engine/scriptparameterbindercontroller.cs | 26 +- .../engine/serialization.cs | 128 +-- .../help/AliasHelpInfo.cs | 10 +- .../help/AliasHelpProvider.cs | 32 +- .../help/DefaultCommandHelpObjectBuilder.cs | 6 +- .../help/DefaultHelpProvider.cs | 12 +- .../help/DscResourceHelpProvider.cs | 24 +- .../help/FaqHelpInfo.cs | 14 +- .../help/FaqHelpProvider.cs | 20 +- .../help/GeneralHelpInfo.cs | 12 +- .../help/GeneralHelpProvider.cs | 18 +- .../help/GlossaryHelpInfo.cs | 12 +- .../help/GlossaryHelpProvider.cs | 38 +- .../help/HelpCategoryInvalidException.cs | 6 +- .../help/HelpCommands.cs | 34 +- .../help/HelpCommentsParser.cs | 2 +- .../help/HelpErrorTracer.cs | 52 +- .../help/HelpFileHelpInfo.cs | 10 +- .../help/HelpFileHelpProvider.cs | 22 +- .../help/HelpInfo.cs | 52 +- .../help/HelpNotFoundException.cs | 6 +- .../help/HelpProvider.cs | 64 +- .../help/HelpProviderWithCache.cs | 48 +- .../help/HelpProviderWithFullCache.cs | 36 +- .../help/HelpRequest.cs | 34 +- .../help/HelpSystem.cs | 140 +-- .../help/MUIFileSearcher.cs | 30 +- .../help/MamlClassHelpInfo.cs | 8 +- .../help/MamlCommandHelpInfo.cs | 32 +- .../help/MamlNode.cs | 174 +-- .../help/PSClassHelpProvider.cs | 24 +- .../help/ProviderCommandHelpInfo.cs | 2 +- .../help/ProviderHelpInfo.cs | 16 +- .../help/ProviderHelpProvider.cs | 30 +- .../help/RemoteHelpInfo.cs | 6 +- .../help/ScriptCommandHelpProvider.cs | 2 +- .../help/SyntaxHelpInfo.cs | 6 +- .../help/UpdatableHelpCommandBase.cs | 10 +- .../help/UpdatableHelpSystem.cs | 8 +- .../logging/LogContext.cs | 16 +- .../logging/LogProvider.cs | 52 +- .../logging/MshLog.cs | 176 ++-- .../logging/eventlog/EventLogLogProvider.cs | 38 +- .../minishell/api/FormatAndTypeDataHelper.cs | 2 +- .../minishell/api/RunspaceConfiguration.cs | 142 +-- ...RunspaceConfigurationAttributeException.cs | 22 +- .../api/RunspaceConfigurationEntry.cs | 22 +- .../RunspaceConfigurationEntryCollection.cs | 30 +- .../api/RunspaceConfigurationHelper.cs | 6 +- .../api/RunspaceConfigurationTypeAttribute.cs | 4 +- .../api/RunspaceConfigurationTypeException.cs | 14 +- .../namespaces/AliasProvider.cs | 58 +- .../namespaces/Buffer.cs | 32 +- .../namespaces/ContainerProviderBase.cs | 406 +++---- .../namespaces/CoreCommandContext.cs | 174 +-- .../namespaces/DriveProviderBase.cs | 74 +- .../namespaces/EnvironmentProvider.cs | 32 +- .../namespaces/FileSystemContentStream.cs | 138 +-- .../namespaces/FileSystemProvider.cs | 518 ++++----- .../namespaces/FileSystemSecurity.cs | 40 +- .../namespaces/FunctionProvider.cs | 58 +- .../namespaces/IContentProvider.cs | 64 +- .../namespaces/IContentReader.cs | 22 +- .../namespaces/IContentWriter.cs | 26 +- .../namespaces/IDynamicPropertyProvider.cs | 114 +- .../namespaces/IPermissionProvider.cs | 52 +- .../namespaces/IPropertiesProvider.cs | 88 +- .../namespaces/ItemProviderBase.cs | 266 ++--- .../namespaces/LocationGlobber.cs | 736 ++++++------- .../namespaces/NavigationProviderBase.cs | 198 ++-- .../namespaces/PathInfo.cs | 10 +- .../namespaces/ProviderBase.cs | 438 ++++---- .../namespaces/ProviderBaseSecurity.cs | 20 +- .../ProviderDeclarationAttribute.cs | 14 +- .../namespaces/RegistryProvider.cs | 378 +++---- .../namespaces/RegistrySecurity.cs | 18 +- .../namespaces/RegistryWrapper.cs | 2 +- .../namespaces/SafeRegistryHandle.cs | 4 +- .../namespaces/SessionStateProviderBase.cs | 132 +-- .../namespaces/StackInfo.cs | 8 +- .../namespaces/TransactedRegistry.cs | 10 +- .../namespaces/TransactedRegistryKey.cs | 54 +- .../namespaces/TransactedRegistrySecurity.cs | 34 +- .../namespaces/VariableProvider.cs | 38 +- .../namespaces/Win32Native.cs | 12 +- .../security/Authenticode.cs | 50 +- .../security/CatalogHelper.cs | 192 ++-- .../security/CredentialParameter.cs | 6 +- .../security/MshSignature.cs | 4 +- .../security/SecureStringHelper.cs | 6 +- .../security/SecurityManager.cs | 26 +- .../security/SecuritySupport.cs | 26 +- .../security/nativeMethods.cs | 16 +- .../security/wldpNativeMethods.cs | 2 +- .../singleshell/Commands/ConsoleCommands.cs | 14 +- .../singleshell/Commands/MshSnapinCommands.cs | 14 +- .../singleshell/config/MshConsoleInfo.cs | 30 +- .../config/MshConsoleLoadException.cs | 18 +- .../config/MshSnapinLoadException.cs | 20 +- .../config/RegistryStringResourceIndirect.cs | 128 +-- .../config/RunspaceConfigForSingleShell.cs | 44 +- .../singleshell/installer/CustomMshSnapin.cs | 40 +- .../singleshell/installer/MshCoreMshSnapin.cs | 26 +- .../singleshell/installer/MshInstaller.cs | 50 +- .../singleshell/installer/MshSnapin.cs | 24 +- .../installer/MshSnapinInstaller.cs | 68 +- .../utils/ClrFacade.cs | 24 +- .../utils/CommandDiscoveryExceptions.cs | 110 +- .../utils/CryptoUtils.cs | 56 +- .../utils/ExecutionExceptions.cs | 6 +- .../utils/ExtensionMethods.cs | 2 +- .../utils/GraphicalHostReflectionWrapper.cs | 10 +- .../utils/HostInterfacesExceptions.cs | 108 +- .../utils/IObjectReader.cs | 6 +- .../utils/MetadataExceptions.cs | 12 +- .../utils/MshTraceSource.cs | 40 +- .../utils/ObjectReader.cs | 18 +- .../utils/ObjectStream.cs | 134 +-- .../utils/ObjectWriter.cs | 8 +- .../utils/PInvokeDllNames.cs | 8 +- .../utils/PSTelemetryWrapper.cs | 22 +- .../utils/ParameterBinderExceptions.cs | 358 +++---- .../utils/PathUtils.cs | 4 +- .../utils/PlatformInvokes.cs | 72 +- .../utils/PowerShellETWTracer.cs | 44 +- .../utils/PsUtils.cs | 34 +- .../utils/ResourceManagerCache.cs | 30 +- .../utils/RuntimeException.cs | 2 +- .../utils/SessionStateExceptions.cs | 148 +-- .../utils/StringUtil.cs | 2 +- .../utils/StructuredTraceSource.cs | 170 +-- .../utils/Verbs.cs | 54 +- .../perfCounters/CounterSetInstanceBase.cs | 20 +- .../perfCounters/CounterSetRegistrarBase.cs | 6 +- .../utils/perfCounters/PSPerfCountersMgr.cs | 24 +- .../utils/tracing/EtwActivity.cs | 2 +- .../utils/tracing/PSEtwLog.cs | 10 +- .../utils/tracing/PSEtwLogProvider.cs | 16 +- src/TypeCatalogGen/TypeCatalogGen.cs | 2 +- test/PSReadLine/AssemblyInfo.cs | 10 +- test/csharp/test_FileSystemProvider.cs | 26 +- test/csharp/test_Runspace.cs | 2 +- test/fullclr/PowerShellGithubDev.Tests.ps1 | 10 +- test/powershell/Common/Test.Helpers.psm1 | 12 +- test/powershell/Common/TestHostCS.psm1 | 2 +- test/powershell/Common/TestRemoting.psm1 | 2 +- test/powershell/Host/ConsoleHost.Tests.ps1 | 18 +- test/powershell/Host/HostUtilities.Tests.ps1 | 2 +- .../Host/TabCompletion/BugFix.Tests.ps1 | 2 +- .../Scripting.Classes.Attributes.Tests.ps1 | 58 +- .../Scripting.Classes.BasicParsing.Tests.ps1 | 114 +- .../Classes/Scripting.Classes.Break.Tests.ps1 | 28 +- .../Scripting.Classes.Exceptions.Tests.ps1 | 94 +- .../Scripting.Classes.MiscOps.Tests.ps1 | 24 +- .../Scripting.Classes.Modules.Tests.ps1 | 12 +- .../scripting.Classes.NestedModules.tests.ps1 | 18 +- .../scripting.Classes.inheritance.tests.ps1 | 150 +-- .../Classes/scripting.Classes.using.tests.ps1 | 58 +- .../Language/CompletionTestSupport.psm1 | 14 +- .../Language/LanguageTestSupport.psm1 | 28 +- .../Operators/ComparisonOperator.Tests.ps1 | 4 +- test/powershell/Language/Parser/Ast.Tests.ps1 | 4 +- .../Language/Parser/BNotOperator.Tests.ps1 | 2 +- .../Language/Parser/Conversions.Tests.ps1 | 2 +- .../Parser/ExtensibleCompletion.Tests.ps1 | 2 +- .../LanguageAndParser.TestFollowup.Tests.ps1 | 2 +- .../Parser/MethodInvocation.Tests.ps1 | 2 +- .../Language/Parser/Parser.Tests.ps1 | 232 ++-- .../Language/Parser/Parsing.Tests.ps1 | 7 +- .../Parser/RedirectionOperator.Tests.ps1 | 6 +- .../Language/Parser/UsingAssembly.Tests.ps1 | 10 +- .../Language/Parser/UsingNamespace.Tests.ps1 | 2 +- .../Scripting/ActionPreference.Tests.ps1 | 36 +- .../CheckRestrictedlanguage.Tests.ps1 | 10 +- .../Scripting/CmdletDeclaration.Tests.ps1 | 6 +- .../Scripting/CommonParameters.Tests.ps1 | 58 +- .../ConstrainedLanguageMode.Tests.ps1 | 2 +- .../Scripting/Debugging/Debugging.Tests.ps1 | 2 +- .../Language/Scripting/Delegates.Tests.ps1 | 24 +- .../Scripting/DeserializedMethods.Tests.ps1 | 8 +- .../DeserializedTypeConversion.Tests.ps1 | 40 +- .../Scripting/Dynamicparameters.Tests.ps1 | 16 +- .../Scripting/ForeachParallel.Tests.ps1 | 8 +- .../Language/Scripting/Generics.Tests.ps1 | 10 +- ...htableToPSCustomObjectConversion.Tests.ps1 | 48 +- .../Language/Scripting/I18n.Tests.ps1 | 38 +- .../Language/Scripting/Indexer.Tests.ps1 | 16 +- .../Language/Scripting/LineEndings.Tests.ps1 | 16 +- .../Language/Scripting/MyInvocation.Tests.ps1 | 10 +- .../NativeCommandProcessor.Tests.ps1 | 6 +- .../OrderedAttributeForHashTables.Tests.ps1 | 34 +- .../Scripting/OutErrorVariable.Tests.ps1 | 76 +- .../Scripting/ParameterBinding.Tests.ps1 | 72 +- .../Language/Scripting/Requires.Tests.ps1 | 4 +- .../Language/Scripting/ScriptHelp.Tests.ps1 | 62 +- .../Language/Scripting/TestsOnWinFullOnly.ps1 | 8 +- .../Language/Scripting/TryCatch.Tests.ps1 | 10 +- .../Language/Scripting/en-US/I18n.Tests.psd1 | 2 +- .../Pester.Commands.Cmdlets.Archive.Tests.ps1 | 130 +-- .../History.Tests.ps1 | 12 +- .../Import-Module.Tests.ps1 | 4 +- .../Microsoft.PowerShell.Core/Job.Tests.ps1 | 2 +- ...ster.Commands.Cmdlets.GetCommand.Tests.ps1 | 2 +- .../Remove-Module.Tests.ps1 | 8 +- .../TestGetCommand.Tests.ps1 | 72 +- .../Get-WinEvent.Tests.ps1 | 6 +- ...Cmdlets.LocalAccounts.LocalGroup.Tests.ps1 | 6 +- ....Cmdlets.LocalAccounts.LocalUser.Tests.ps1 | 30 +- .../Add-Content.Tests.ps1 | 4 +- .../Clear-Content.Tests.ps1 | 2 +- .../Copy.Item.Tests.ps1 | 60 +- .../FileSystem.Tests.ps1 | 10 +- .../Get-ComputerInfo.Tests.ps1 | 162 +-- .../Get-Content.Tests.ps1 | 6 +- .../Get-EventLog.Tests.ps1 | 6 +- .../Get-Location.Tests.ps1 | 2 +- .../Get-Service.Tests.ps1 | 4 +- .../Join-Path.Tests.ps1 | 2 +- .../New-Item.Tests.ps1 | 2 +- .../PSDrive.Tests.ps1 | 2 +- ...mands.Cmdlets.NoNewlineParameter.Tests.ps1 | 2 +- .../Remove-EventLog.Tests.ps1 | 6 +- .../Set-Content.Tests.ps1 | 12 +- .../Set-Item.Tests.ps1 | 2 +- .../Split-Path.Tests.ps1 | 2 +- .../Start-Process.Tests.ps1 | 4 +- .../Variable.Tests.ps1 | 10 +- .../AclCmdlets.Tests.ps1 | 2 +- .../ExecutionPolicy.Tests.ps1 | 36 +- .../FileCatalog.Tests.ps1 | 146 +-- .../GetCredential.Tests.ps1 | 2 +- .../SecureString.Tests.ps1 | 6 +- .../UserConfigProviderModVersion1.psm1 | 28 +- .../UserConfigProviderModVersion2.psm1 | 28 +- .../UserConfigProviderModVersion3.psm1 | 28 +- .../scriptdsc/scriptdsc.schema.psm1 | 2 +- .../Add-Member.Tests.ps1 | 72 +- .../Compare-Object.Tests.ps1 | 20 +- .../ConvertFrom-Csv.Tests.ps1 | 4 +- .../ConvertTo-Csv.Tests.ps1 | 4 +- .../ConvertTo-Xml.Tests.ps1 | 6 +- .../Eventing.Tests.ps1 | 4 +- .../Export-Csv.Tests.ps1 | 18 +- .../Format-Custom.Tests.ps1 | 32 +- .../Format-List.Tests.ps1 | 14 +- .../Format-Wide.Tests.ps1 | 14 +- .../FormatHex.Tests.ps1 | 40 +- .../Get-Alias.Tests.ps1 | 60 +- .../Get-Date.Tests.ps1 | 20 +- .../Get-Host.Tests.ps1 | 2 +- .../Get-Member.Tests.ps1 | 32 +- .../Get-PSBreakpoint.Tests.ps1 | 8 +- .../Get-PSCallStack.Tests.ps1 | 2 +- .../Get-Random.Tests.ps1 | 4 +- .../Get-Unique.Tests.ps1 | 8 +- .../Get-Uptime.Tests.ps1 | 4 +- .../Get-Variable.Tests.ps1 | 18 +- .../Get-Verb.Tests.ps1 | 12 +- .../Implicit.Remoting.Tests.ps1 | 140 +-- .../Import-Alias.Tests.ps1 | 22 +- .../Import-Csv.Tests.ps1 | 10 +- .../ImportExportCSV.Delimiter.Tests.ps1 | 6 +- .../Invoke-Expression.Tests.ps1 | 2 +- .../Measure-Object.Tests.ps1 | 18 +- .../MiscCmdletUpdates.Tests.ps1 | 26 +- .../New-Alias.Tests.ps1 | 10 +- .../New-Object.Tests.ps1 | 22 +- .../New-Variable.Tests.ps1 | 20 +- .../NewTemporaryFile.Tests.ps1 | 10 +- .../Pester.Commands.Cmdlets.Json.Tests.ps1 | 46 +- .../PowerShellData.tests.ps1 | 8 +- .../Remove-Variable.Tests.ps1 | 40 +- .../RunspaceCmdlets.Tests.ps1 | 2 +- .../Select-Object.Tests.ps1 | 84 +- .../Select-XML.Tests.ps1 | 4 +- .../Set-Alias.Tests.ps1 | 28 +- .../Set-Variable.Tests.ps1 | 52 +- .../Sort-Object.Tests.ps1 | 66 +- .../Tee-Object.Tests.ps1 | 4 +- .../Trace-Command.Tests.ps1 | 22 +- .../Update-FormatData.Tests.ps1 | 8 +- .../Update-TypeData.Tests.ps1 | 36 +- .../WebCmdlets.Tests.ps1 | 54 +- .../Write-Error.Tests.ps1 | 22 +- .../Write-Output.Tests.ps1 | 4 +- .../Write-Progress.Tests.ps1 | 4 +- .../XMLCommand.Tests.ps1 | 4 +- .../alias.tests.ps1 | 32 +- .../assets/de-DE/localized.psd1 | 2 +- .../assets/en-US/localized.psd1 | 2 +- .../clixml.tests.ps1 | 60 +- .../command.tests.ps1 | 22 +- .../formatdata.tests.ps1 | 8 +- .../object.tests.ps1 | 28 +- .../string.tests.ps1 | 26 +- .../typedata.tests.ps1 | 2 +- .../xml.tests.ps1 | 16 +- .../Start-Transcript.Tests.ps1 | 8 +- .../MOF-Compilation.Tests.ps1 | 14 +- .../PowerShellGet/PowerShellGet.Tests.ps1 | 4 +- .../Provider/ProviderIntrinsics.Tests.ps1 | 2 +- test/powershell/SDK/CmdletExample.Tests.ps1 | 14 +- test/powershell/SDK/PSDebugging.Tests.ps1 | 10 +- .../engine/Api/LanguagePrimitive.Tests.ps1 | 4 +- .../engine/Api/Serialization.Tests.ps1 | 24 +- .../engine/Basic/CommandDiscovery.Tests.ps1 | 16 +- test/powershell/engine/BasicEngine.Tests.ps1 | 2 +- test/powershell/engine/ETS/Adapter.Tests.ps1 | 22 +- .../engine/Module/ModulePath.Tests.ps1 | 4 +- .../BooleanParameterDCR.Tests.ps1 | 8 +- .../NullableBooleanDCR.Tests.ps1 | 14 +- .../ParameterBinding.Tests.ps1 | 22 +- .../engine/PropertyAccessor.Tests.ps1 | 4 +- .../Remoting/SSHRemotingCmdlets.Tests.ps1 | 8 +- test/tools/OpenCover/OpenCover.psm1 | 90 +- tools/Sign-Package.ps1 | 26 +- tools/appveyor.psm1 | 30 +- 1394 files changed, 22628 insertions(+), 22629 deletions(-) diff --git a/build.psm1 b/build.psm1 index 619b862d7..ac16bf14d 100644 --- a/build.psm1 +++ b/build.psm1 @@ -34,7 +34,7 @@ if ($IsLinux) { } # -# At the moment, we just support x64 builds. When we support x86 builds, this +# At the moment, we just support x64 builds. When we support x86 builds, this # check may need to verify the SDK for the specified architecture. # function Get-Win10SDKBinDir { @@ -120,7 +120,7 @@ function Start-PSBuild { Push-Location $PSScriptRoot try { git clean -fdX - # Extra cleaning is required to delete the CMake temporary files. + # Extra cleaning is required to delete the CMake temporary files. # These are not cleaned when using "X" and cause CMake to retain state, leading to # mis-configured environment issues when switching between x86 and x64 compilation # environments. @@ -318,7 +318,7 @@ cmd.exe /C cd /d "$currentLocation" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeH # Describes wither it should build the CoreCLR or FullCLR version [ValidateSet("ON", "OFF")] [string]$OneCoreValue, - + # Array of file names to copy from the local build directory to the packaging directory [string[]]$FilesToCopy ) @@ -348,19 +348,19 @@ cmd.exe /C cd /d "$location" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeHostArch Copy-Item $srcPath $dstPath } } - + if ($FullCLR) { - $fullBinaries = @( + $fullBinaries = @( 'powershell.exe', 'powershell.pdb', 'pwrshplugin.dll', 'pwrshplugin.pdb' ) - Build-NativeWindowsBinaries "OFF" $fullBinaries + Build-NativeWindowsBinaries "OFF" $fullBinaries } else { - $coreClrBinaries = @( + $coreClrBinaries = @( 'pwrshplugin.dll', 'pwrshplugin.pdb' ) @@ -405,7 +405,7 @@ cmd.exe /C cd /d "$location" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeHostArch # $Options.Output is pointing to something like "...\src\powershell-win-core\bin\Debug\netcoreapp1.1\win10-x64\publish\powershell.exe", # so we need to get its parent directory $publishPath = Split-Path $Options.Output -Parent - log "Restore PowerShell modules to $publishPath" + log "Restore PowerShell modules to $publishPath" # PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module. Restore-PSModule -Name @('PowerShellGet') -Destination (Join-Path -Path $publishPath -ChildPath "Modules") } @@ -417,11 +417,11 @@ function Compress-TestContent { $Destination ) - $powerShellTestRoot = Join-Path $PSScriptRoot 'test\powershell' + $powerShellTestRoot = Join-Path $PSScriptRoot 'test\powershell' Add-Type -AssemblyName System.IO.Compression.FileSystem $resolvedPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Destination) - [System.IO.Compression.ZipFile]::CreateFromDirectory($powerShellTestRoot, $resolvedPath) + [System.IO.Compression.ZipFile]::CreateFromDirectory($powerShellTestRoot, $resolvedPath) } function New-PSOptions { @@ -718,7 +718,7 @@ function Start-PSPester { { $outputBufferFilePath = [System.IO.Path]::GetTempFileName() } - + $Command += "Invoke-Pester " $Command += "-OutputFormat ${OutputFormat} -OutputFile ${OutputFile} " @@ -784,7 +784,7 @@ function Start-PSPester { { Remove-Item $outputBufferFilePath } - } + } } if($ThrowOnFailure) { @@ -819,7 +819,7 @@ function Show-PSPesterError # # Read the test result file and -# Throw if a test failed +# Throw if a test failed function Test-PSPesterResults { param( @@ -830,7 +830,7 @@ function Test-PSPesterResults if(!(Test-Path $TestResultsFile)) { throw "Test result file '$testResultsFile' not found for $TestArea." - } + } $x = [xml](Get-Content -raw $testResultsFile) if ([int]$x.'test-results'.failures -gt 0) @@ -1204,7 +1204,7 @@ function Start-PSPackage { [ValidateSet("deb", "osxpkg", "rpm", "msi", "appx", "zip")] [string[]]$Type, - # Generate windows downlevel package + # Generate windows downlevel package [ValidateSet("win81-x64", "win7-x86", "win7-x64")] [ValidateScript({$IsWindows})] [string]$WindowsDownLevel @@ -1733,7 +1733,7 @@ function Start-DevPowerShell { { Remove-Item env:DEVPATH } - + if ($ZapDisable) { Remove-Item env:COMPLUS_ZapDisable } @@ -2305,7 +2305,7 @@ function New-MSIPackage { [CmdletBinding()] param ( - + # Name of the Product [ValidateNotNullOrEmpty()] [string] $ProductName = 'PowerShell', @@ -2334,7 +2334,7 @@ function New-MSIPackage # Path to Assets folder containing artifacts such as icons, images [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] - [string] $AssetsPath, + [string] $AssetsPath, # Path to license.rtf file - for the EULA [Parameter(Mandatory = $true)] @@ -2364,16 +2364,16 @@ function New-MSIPackage $ProductSemanticVersion = Get-PackageSemanticVersion -Version $ProductVersion $ProductVersion = Get-PackageVersionAsMajorMinorBuildRevision -Version $ProductVersion - + $assetsInSourcePath = Join-Path $ProductSourcePath 'assets' New-Item $assetsInSourcePath -type directory -Force | Write-Verbose - Write-Verbose "Place dependencies such as icons to $assetsInSourcePath" + Write-Verbose "Place dependencies such as icons to $assetsInSourcePath" Copy-Item "$AssetsPath\*.ico" $assetsInSourcePath -Force - + $productVersionWithName = $ProductName + "_" + $ProductVersion $productSemanticVersionWithName = $ProductName + "_" + $ProductSemanticVersion - + Write-Verbose "Create MSI for Product $productSemanticVersionWithName" [Environment]::SetEnvironmentVariable("ProductSourcePath", $ProductSourcePath, "Process") @@ -2398,13 +2398,13 @@ function New-MSIPackage if ($ProductNameSuffix) { $packageName += "-$ProductNameSuffix" } - $msiLocationPath = Join-Path $pwd "$packageName.msi" + $msiLocationPath = Join-Path $pwd "$packageName.msi" Remove-Item -ErrorAction SilentlyContinue $msiLocationPath -Force & $wixHeatExePath dir $ProductSourcePath -dr $productVersionWithName -cg $productVersionWithName -gg -sfrag -srd -scom -sreg -out $wixFragmentPath -var env.ProductSourcePath -v | Write-Verbose & $wixCandleExePath "$ProductWxsPath" "$wixFragmentPath" -out (Join-Path "$env:Temp" "\\") -arch x64 -v | Write-Verbose & $wixLightExePath -out $msiLocationPath $wixObjProductPath $wixObjFragmentPath -ext WixUIExtension -dWixUILicenseRtf="$LicenseFilePath" -v | Write-Verbose - + Remove-Item -ErrorAction SilentlyContinue *.wixpdb -Force Write-Verbose "You can find the MSI @ $msiLocationPath" -Verbose @@ -2439,8 +2439,8 @@ function New-AppxPackage [ValidateNotNullOrEmpty()] [string] $AssetsPath ) - - $PackageSemanticVersion = Get-PackageSemanticVersion -Version $PackageVersion + + $PackageSemanticVersion = Get-PackageSemanticVersion -Version $PackageVersion $PackageVersion = Get-PackageVersionAsMajorMinorBuildRevision -Version $PackageVersion Write-Verbose "Package Version is $PackageVersion" @@ -2527,7 +2527,7 @@ function New-ZipPackage { [CmdletBinding()] param ( - + # Name of the Product [ValidateNotNullOrEmpty()] [string] $PackageName = 'PowerShell', @@ -2547,12 +2547,12 @@ function New-ZipPackage ) $ProductSemanticVersion = Get-PackageSemanticVersion -Version $PackageVersion - + $zipPackageName = $PackageName + "_" + $ProductSemanticVersion if ($PackageNameSuffix) { $zipPackageName = $zipPackageName, $PackageNameSuffix -join "-" } - + Write-Verbose "Create Zip for Product $zipPackageName" $zipLocationPath = Join-Path $PWD "$zipPackageName.zip" @@ -2565,7 +2565,7 @@ function New-ZipPackage $zipLocationPath } - #TODO: Use .NET Api to do compresss-archive equivalent if the cmdlet is not present + #TODO: Use .NET Api to do compresss-archive equivalent if the cmdlet is not present else { Write-Error -Message "Compress-Archive cmdlet is missing in this PowerShell version" @@ -2755,7 +2755,7 @@ function Clear-PSRepo [switch] $IncludePackages ) Get-ChildItem $PSScriptRoot\* -Directory -Exclude 'Packages' | ForEach-Object { - Write-Verbose "Cleaning $_ ..." + Write-Verbose "Cleaning $_ ..." git clean -fdX $_ } @@ -2846,7 +2846,7 @@ function Restore-PSModule # pull down the module log "running save-module $_" PowerShellGet\Save-Module @command -Force - + # Remove PSGetModuleInfo.xml file Find-Module -Name $_ -Repository $RepositoryName -IncludeDependencies | ForEach-Object { Remove-Item -Path $Destination\$($_.Name)\*\PSGetModuleInfo.xml -Force diff --git a/demos/Apache/Apache/Apache.psm1 b/demos/Apache/Apache/Apache.psm1 index c5d6e44f0..5537fd124 100644 --- a/demos/Apache/Apache/Apache.psm1 +++ b/demos/Apache/Apache/Apache.psm1 @@ -100,7 +100,7 @@ Class ApacheVirtualHost{ $vHostDef += "" $filName = $ConfigurationFile $VhostDef | Out-File "/tmp/${filName}" -Force -Encoding:ascii - & $global:sudocmd "mv" "/tmp/${filName}" "${VhostsDirectory}/${filName}" + & $global:sudocmd "mv" "/tmp/${filName}" "${VhostsDirectory}/${filName}" Write-Information "Restarting Apache HTTP Server" Restart-ApacheHTTPServer } diff --git a/demos/Azure/Azure-Demo.ps1 b/demos/Azure/Azure-Demo.ps1 index 8678bd8e1..e08371d10 100644 --- a/demos/Azure/Azure-Demo.ps1 +++ b/demos/Azure/Azure-Demo.ps1 @@ -20,11 +20,11 @@ Login-AzureRmAccount $resourceGroupName = "PSAzDemo" + (New-Guid | % guid) -replace "-","" $resourceGroupName -### Create a new Azure Resource Group +### Create a new Azure Resource Group New-AzureRmResourceGroup -Name $resourceGroupName -Location "West US" ### Deploy an Ubuntu 14.04 VM using Resource Manager cmdlets -### Template is available at +### Template is available at ### http://armviz.io/#/?load=https:%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-vm-simple-linux%2Fazuredeploy.json $dnsLabelPrefix = $resourceGroupName | % tolower $dnsLabelPrefix @@ -32,7 +32,7 @@ $password = ConvertTo-SecureString -String "PowerShellRocks!" -AsPlainText -Forc New-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateFile ./Compute-Linux.json -adminUserName psuser -adminPassword $password -dnsLabelPrefix $dnsLabelPrefix ### Monitor the status of the deployment -Get-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName +Get-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName ### Discover the resources we created by the previous deployment Find-AzureRmResource -ResourceGroupName $resourceGroupName | select Name,ResourceType,Location @@ -46,20 +46,20 @@ Get-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/vir Get-AzureRmProviderOperation -OperationSearchString Microsoft.Compute/* | select OperationName,Operation ### Power Off the Virtual Machine we created -Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action poweroff +Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action poweroff ### Check the VM state again. It should be stopped now. Get-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/virtualMachines -ResourceGroupName $resourceGroupName -ODataQuery '$expand=instanceView' | % properties | % instanceview | % statuses ### As you know, you may still be incurring charges even if the VM is in stopped state ### Deallocate the resource to avoid this charge -Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action deallocate +Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action deallocate ### The following command removes the Virtual Machine -Remove-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/virtualMachines -ResourceGroupName $resourceGroupName +Remove-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/virtualMachines -ResourceGroupName $resourceGroupName ### Look at the resources that still exists Find-AzureRmResource -ResourceGroupName $resourceGroupName | select Name,ResourceType,Location ### Remove the resource group and its resources -Remove-AzureRmResourceGroup -Name $resourceGroupName +Remove-AzureRmResourceGroup -Name $resourceGroupName diff --git a/demos/DSC/dsc-demo.ps1 b/demos/DSC/dsc-demo.ps1 index e35a36f41..95b694c63 100644 --- a/demos/DSC/dsc-demo.ps1 +++ b/demos/DSC/dsc-demo.ps1 @@ -1,6 +1,6 @@ #Get Distro type and set distro-specific variables -$OSname = Get-Content "/etc/os-release" |Select-String -Pattern "^Name=" +$OSname = Get-Content "/etc/os-release" |Select-String -Pattern "^Name=" $OSName = $OSName.tostring().split("=")[1].Replace('"','') if ($OSName -like "Ubuntu*"){ $distro = "Ubuntu" @@ -56,12 +56,12 @@ Configuration ApacheServer{ nxFile Welcome.conf{ DestinationPath = "${VhostDir}/welcome.conf" - Ensure = "Absent" + Ensure = "Absent" } nxFile UserDir.conf{ DestinationPath = "${VhostDir}/userdir.conf" - Ensure = "Absent" + Ensure = "Absent" } #Ensure website is defined @@ -107,8 +107,8 @@ ServerName $hostname Controller = $ServiceCtl DependsOn = "[nxFile]DefaultSite.conf" } - - } + + } } ApacheServer -OutputPath "/tmp" diff --git a/demos/crontab/CronTab/CronTab.ps1xml b/demos/crontab/CronTab/CronTab.ps1xml index 1d1f1f90d..4246b1f62 100644 --- a/demos/crontab/CronTab/CronTab.ps1xml +++ b/demos/crontab/CronTab/CronTab.ps1xml @@ -1,6 +1,6 @@ - + Default diff --git a/demos/crontab/CronTab/CronTab.psm1 b/demos/crontab/CronTab/CronTab.psm1 index 308ff4ea9..d70633312 100644 --- a/demos/crontab/CronTab/CronTab.psm1 +++ b/demos/crontab/CronTab/CronTab.psm1 @@ -51,7 +51,7 @@ function Invoke-CronTab ([String] $user, [String[]] $arguments, [Switch] $noThro If ($user -ne [String]::Empty) { $arguments = Write-Output "-u" $UserName $arguments } - + Write-Verbose "Running: $crontabcmd $arguments" $output = & $crontabcmd @arguments 2>&1 if ($LastExitCode -ne 0 -and -not $noThrow) { @@ -87,7 +87,7 @@ function Remove-CronJob { Cron job object returned from Get-CronJob .PARAMETER Force Don't prompt when removing the cron job -#> +#> [CmdletBinding(SupportsShouldProcess=$true,ConfirmImpact="High")] param ( [ArgumentCompleter( { $wordToComplete = $args[2]; Get-CronTabUser | Where-Object { $_ -like "$wordToComplete*" } | Sort-Object } )] @@ -109,7 +109,7 @@ function Remove-CronJob { [string[]] $crontab = Get-CronTab -user $UserName $newcrontab = [List[string]]::new() $found = $false - + $JobAsString = $Job.ToString() foreach ($line in $crontab) { if ($JobAsString -ceq $line) { @@ -118,7 +118,7 @@ function Remove-CronJob { $newcrontab.Add($line) } } - + if (-not $found) { $e = New-Object System.Exception -ArgumentList "Job not found" throw $e @@ -126,7 +126,7 @@ function Remove-CronJob { if ($Force -or $pscmdlet.ShouldProcess($Job.Command,"Remove")) { Import-CronTab -user $UserName -crontab $newcrontab } - } + } } function New-CronJob { @@ -136,7 +136,7 @@ function New-CronJob { .DESCRIPTION Create a new job in the cron table. Date and time parameters can be specified as ranges such as 10-30, as a list: 5,6,7, or combined 1-5,10-15. An asterisk - means 'first through last' (the entire allowed range). Step values can be used + means 'first through last' (the entire allowed range). Step values can be used with ranges or with an asterisk. Every 2 hours can be specified as either 0-23/2 or */2. .EXAMPLE @@ -157,7 +157,7 @@ function New-CronJob { Valid values are 0-7. 0 and 7 are both Sunday. If not specified, defaults to *. .PARAMETER Command Command to execute at the scheduled time and day. -#> +#> [CmdletBinding()] param ( [ArgumentCompleter( { $wordToComplete = $args[2]; Get-CronTabUser | Where-Object { $_ -like "$wordToComplete*" } | Sort-Object } )] @@ -175,7 +175,7 @@ function New-CronJob { ) process { # TODO: validate parameters, note that different versions of crontab support different capabilities - $line = "{0} {1} {2} {3} {4} {5}" -f [String]::Join(",",$Minute), [String]::Join(",",$Hour), + $line = "{0} {1} {2} {3} {4} {5}" -f [String]::Join(",",$Minute), [String]::Join(",",$Hour), [String]::Join(",",$DayOfMonth), [String]::Join(",",$Month), [String]::Join(",",$DayOfWeek), $Command [string[]] $crontab = Get-CronTab -user $UserName $crontab += $line @@ -196,7 +196,7 @@ function Get-CronJob { CronJob objects .PARAMETER UserName Optional parameter to specify a specific user's cron table -#> +#> [CmdletBinding()] [OutputType([CronJob])] param ( diff --git a/demos/dsc.ps1 b/demos/dsc.ps1 index c1fdd6903..27e09f29e 100644 --- a/demos/dsc.ps1 +++ b/demos/dsc.ps1 @@ -3,7 +3,7 @@ # Defines base configuration users, groups, settings # Uses PS function to set package configuration (ensure=Present) for an array of packages # Probes for the existence of a package (Apache or MySQL) and conditionally configures the workload. I.e., if Apache is installed, configure Apache settings - + # Demo execution: # Show the .ps1 # Run the .ps1 to generate a MOF diff --git a/demos/powershellget/PowerShellGet.ps1 b/demos/powershellget/PowerShellGet.ps1 index d371a7d42..670321524 100644 --- a/demos/powershellget/PowerShellGet.ps1 +++ b/demos/powershellget/PowerShellGet.ps1 @@ -49,7 +49,7 @@ Update-Module #endregion -#region Using PowerShellGet with tags +#region Using PowerShellGet with tags # Look for all the scripts we'll be demoing today Find-Script -Tag 'PowerShellCore_Demo' diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs index 70492544e..4cb2c7ab2 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs index c5a21c4f3..829152def 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs index 4e62515f9..b8138e876 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs index dbf90255c..2f545311b 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -697,7 +697,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// - /// Set object, to which + /// Set object, to which /// current cmdlet will delegate all operations. /// /// @@ -787,7 +787,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// resource Uri computer set name /// - internal const string ResourceUriComputerSet = "ResourceUriComputerSet"; + internal const string ResourceUriComputerSet = "ResourceUriComputerSet"; /// /// computer set name @@ -808,7 +808,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// resource Uri session set name /// - internal const string ResourceUriSessionSet = "ResourceUriSessionSet"; + internal const string ResourceUriSessionSet = "ResourceUriSessionSet"; /// /// session set name diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs index 4f83c7dee..b21e8304a 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs index 4c7b2dc5b..2fec594ad 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs index b0495df2b..562bce3b6 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -182,7 +182,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { proxy.EnumerateInstancesAsync(GetNamespace(cmdlet), GetClassName(cmdlet)); } - break; + break; default: break; } @@ -375,7 +375,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets proxy.OperationTimeout = removeCimInstance.OperationTimeoutSec; if(removeCimInstance.ResourceUri != null ) { - proxy.ResourceUri = removeCimInstance.ResourceUri; + proxy.ResourceUri = removeCimInstance.ResourceUri; } CimRemoveCimInstanceContext context = new CimRemoveCimInstanceContext( ConstValue.GetNamespace(removeCimInstance.Namespace), @@ -388,7 +388,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets proxy.OperationTimeout = setCimInstance.OperationTimeoutSec; if(setCimInstance.ResourceUri != null ) { - proxy.ResourceUri = setCimInstance.ResourceUri; + proxy.ResourceUri = setCimInstance.ResourceUri; } CimSetCimInstanceContext context = new CimSetCimInstanceContext( ConstValue.GetNamespace(setCimInstance.Namespace), diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs index 91d9006f6..98098e0f3 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs index 6e38493a0..63c8bafbe 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -106,7 +106,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets break; case CimBaseCommand.ClassNameComputerSet: case CimBaseCommand.CimClassComputerSet: - case CimBaseCommand.ResourceUriComputerSet: + case CimBaseCommand.ResourceUriComputerSet: case CimBaseCommand.QueryComputerSet: foreach (string computerName in computerNames) { @@ -127,7 +127,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets default: break; } - CimMethodParametersCollection paramsCollection = + CimMethodParametersCollection paramsCollection = CreateParametersCollection(cmdlet.Arguments, cmdlet.CimClass, cmdlet.CimInstance, cmdlet.MethodName); // Invoke methods @@ -135,7 +135,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { case CimBaseCommand.ClassNameComputerSet: case CimBaseCommand.ClassNameSessionSet: - case CimBaseCommand.ResourceUriSessionSet: + case CimBaseCommand.ResourceUriSessionSet: case CimBaseCommand.ResourceUriComputerSet: { string target = string.Format(CultureInfo.CurrentUICulture, targetClass, cmdlet.ClassName); @@ -408,7 +408,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { if (parameterValue == null) { - // try the best to get the type while value is null + // try the best to get the type while value is null parameter = CimMethodParameter.Create( parameterName, parameterValue, diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs index bc462dd7c..c56e604d9 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -81,11 +81,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets cmdlet.Key, cmdlet.Property, cmdlet); - + } - break; + break; case CimBaseCommand.ResourceUriSessionSet: - case CimBaseCommand.ResourceUriComputerSet: + case CimBaseCommand.ResourceUriComputerSet: { nameSpace = cmdlet.Namespace; //passing null is ok for resourceUri set cimInstance = CreateCimInstance("DummyClass", @@ -93,7 +93,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets cmdlet.Key, cmdlet.Property, cmdlet); - + } break; case CimBaseCommand.CimClassComputerSet: @@ -103,7 +103,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets cimInstance = CreateCimInstance(cmdlet.CimClass, cmdlet.Property, cmdlet); - + } break; default: @@ -272,7 +272,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { return cimInstance; } - + List keys = new List(); if (key != null) { @@ -309,7 +309,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets flag); cimInstance.CimInstanceProperties.Add(newProperty); } - + } return cimInstance; } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs index 0c9ee96db..a36c59a2c 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -31,7 +31,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { this.message = message; this.prompt = prompt; - } + } /// /// @@ -77,13 +77,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets catch { this.responseType = CimResponseType.NoToAll; - throw; + throw; } finally { // unblocking the waiting thread this.OnComplete(); - } + } break; case CimPromptType.Normal: try @@ -101,26 +101,26 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets catch { this.responseType = CimResponseType.NoToAll; - throw; + throw; } finally { // unblocking the waiting thread this.OnComplete(); - } + } break; default: break; } this.OnComplete(); - } + } #region members /// /// prompt message /// - public string Message + public string Message { get { diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs index d1635eb98..81e3cf2ad 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs index 20837d5b7..726136fa3 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs index eb7c10ebb..0ea01b2a6 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs index d17891c08..bbf909498 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -95,7 +95,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets case ProtocolType.Dcom: return "DCOM"; case ProtocolType.Default: - case ProtocolType.Wsman: + case ProtocolType.Wsman: default: return "WSMAN"; } @@ -919,7 +919,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// Create a new base on given cmdlet /// and its parameter - /// + /// /// /// /// @@ -952,7 +952,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets else { //CimSession will be returned as part of TestConnection - this.cimTestSession.TestCimSession(computerName, proxy); + this.cimTestSession.TestCimSession(computerName, proxy); } } } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs index 80c2f474f..ba2cd5137 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -401,7 +401,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets } Debug.Assert(cimInstance != null, "Caller should verify cimInstance != null"); - + // computerName is null, fallback to create session from cimInstance CimSessionState state = CimSessionBase.GetCimSessionState(); if (state != null) @@ -569,7 +569,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { return this.options.ResourceUri; } - } + } /// /// Enable/Disable the method result streaming, @@ -600,9 +600,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets if(value) { this.options.PromptUser = this.PromptUser; - } + } } - } + } /// /// Enable the pssemantics @@ -1021,7 +1021,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets } /// - /// This method adds a note property to , + /// This method adds a note property to , /// which will cause the default PowerShell formatting and output /// to include PSComputerName column/property in the display. /// @@ -1639,8 +1639,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets private IObjectPreProcess objectPreprocess; /// - /// is true if this was - /// created to handle the "default" session, in cases where cmdlets are invoked without + /// is true if this was + /// created to handle the "default" session, in cases where cmdlets are invoked without /// ComputerName and/or CimSession parameters. /// private bool isDefaultSession; diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs index 46e40ef53..57ddb857c 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs index 780eae525..97c45cd77 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs index 914d499bb..b224364bf 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -34,7 +34,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets #region Properties - internal UInt32 Channel + internal UInt32 Channel { get { return channel; } } diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs index ce28ce144..08eb6acc8 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs index c95bb7284..b060a728c 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs index b3aac9c1c..9d770ee22 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -140,7 +140,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets : base(cmdlet) { ValidationHelper.ValidateNoNullArgument(cimRemoveCimInstance, cimRemoveCimInstanceParameterName); - this.removeCimInstance = cimRemoveCimInstance; + this.removeCimInstance = cimRemoveCimInstance; } /// @@ -295,7 +295,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets DebugHelper.WriteLogEx(); if (sendToPipeline is CimInstance) - { + { this.cimInvokeCimMethod.InvokeCimMethodOnCimInstance(sendToPipeline as CimInstance, context, this); } else diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs index 642b02a36..7afe73252 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -33,7 +33,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public class GetCimAssociatedInstanceCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -42,7 +42,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region parameters @@ -175,7 +175,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets base.SetParameter(value, nameResourceUri); } } - private Uri resourceUri; + private Uri resourceUri; /// /// @@ -311,7 +311,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// Noun of current cmdlet /// - internal const string Noun = @"CimAssociatedInstance"; + internal const string Noun = @"CimAssociatedInstance"; #endregion @@ -324,7 +324,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets // internal const string nameOperationTimeoutSec = "OperationTimeoutSec"; internal const string nameComputerName = "ComputerName"; internal const string nameCimSession = "CimSession"; - internal const string nameResourceUri = "ResourceUri"; + internal const string nameResourceUri = "ResourceUri"; // internal const string nameKeyOnly = "KeyOnly"; #endregion @@ -340,19 +340,19 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets }, { nameCimSession, new HashSet { - new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true), + new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true), } }, { nameCimInstance, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ComputerSetName, true), - new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true), + new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true), } }, { nameResourceUri, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ComputerSetName, false), - new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, false), + new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, false), } }, }; diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs index 5684d4c0d..2201d64fd 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -16,7 +16,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { /// /// - /// Enables the user to enumerate the list of CIM Classes under a specific + /// Enables the user to enumerate the list of CIM Classes under a specific /// Namespace. If no list of classes is given, the Cmdlet returns all /// classes in the given namespace. /// @@ -30,7 +30,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public class GetCimClassCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -39,7 +39,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region parameters @@ -211,7 +211,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets cimGetCimClass = CreateOperationAgent(); } cimGetCimClass.GetCimClass(this); - cimGetCimClass.ProcessActions(this.CmdletOperation); + cimGetCimClass.ProcessActions(this.CmdletOperation); }//End ProcessRecord() /// @@ -283,7 +283,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true), } }, - + { nameComputerName, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ComputerSetName, false), diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs index 91706dd39..248e716c5 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -17,8 +17,8 @@ using System.Diagnostics.CodeAnalysis; namespace Microsoft.Management.Infrastructure.CimCmdlets { /// - /// Returns zero, one or more CIM (dynamic) instances with the properties - /// specified in the Property parameter, KeysOnly parameter or the Select clause + /// Returns zero, one or more CIM (dynamic) instances with the properties + /// specified in the Property parameter, KeysOnly parameter or the Select clause /// of the Query parameter. /// [Cmdlet(VerbsCommon.Get, "CimInstance", DefaultParameterSetName = CimBaseCommand.ClassNameComputerSet, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227961")] @@ -26,7 +26,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public class GetCimInstanceCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -35,7 +35,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region parameters @@ -61,7 +61,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter( Mandatory = true, ValueFromPipeline = true, - ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] + ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] public CimSession[] CimSession { @@ -114,13 +114,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter( ParameterSetName = CimBaseCommand.CimInstanceComputerSet)] [Parameter( - ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] + ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] [Parameter( ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.QueryComputerSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.QuerySessionSet)] + ParameterSetName = CimBaseCommand.QuerySessionSet)] public Uri ResourceUri { get { return resourceUri; } @@ -130,12 +130,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets base.SetParameter(value, nameResourceUri); } } - private Uri resourceUri; + private Uri resourceUri; /// - /// The following is the definition of the input parameter "ComputerName". - /// Provides the name of the computer from which to retrieve the instances. The - /// ComputerName is used to create a temporary CimSession with default parameter + /// The following is the definition of the input parameter "ComputerName". + /// Provides the name of the computer from which to retrieve the instances. The + /// ComputerName is used to create a temporary CimSession with default parameter /// values, which is then used to retrieve the instances. /// /// @@ -148,7 +148,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimBaseCommand.ClassNameComputerSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [Parameter( ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.QueryComputerSet)] @@ -176,7 +176,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter(ParameterSetName = CimBaseCommand.ClassNameComputerSet)] [Parameter(ParameterSetName = CimBaseCommand.ClassNameSessionSet)] [Parameter(ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] - [Parameter(ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] + [Parameter(ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] public SwitchParameter KeyOnly { get { return keyOnly; } @@ -205,7 +205,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] + ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.QueryComputerSet)] [Parameter(ValueFromPipelineByPropertyName = true, @@ -307,19 +307,19 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// /// The following is the definition of the input parameter "QueryDialect". - /// Specifies the dialect used by the query Engine that interprets the Query + /// Specifies the dialect used by the query Engine that interprets the Query /// string. /// /// [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.QueryComputerSet)] [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.QuerySessionSet)] + ParameterSetName = CimBaseCommand.QuerySessionSet)] [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.ClassNameSessionSet)] [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.ClassNameComputerSet)] - + public String QueryDialect { get { return queryDialect; } @@ -334,16 +334,16 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// /// The following is the definition of the input parameter "Shallow". - /// If the switch is set to True, only instance of the class identified by - /// Namespace + ClassName will be returned. If the switch is not set, instances - /// of the above class and of all of its descendents will be returned (the + /// If the switch is set to True, only instance of the class identified by + /// Namespace + ClassName will be returned. If the switch is not set, instances + /// of the above class and of all of its descendents will be returned (the /// enumeration will cascade the class inheritance hierarchy). /// /// [Parameter(ParameterSetName = CimBaseCommand.ClassNameComputerSet)] [Parameter(ParameterSetName = CimBaseCommand.ClassNameSessionSet)] [Parameter(ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] - [Parameter(ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + [Parameter(ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [Parameter(ParameterSetName = CimBaseCommand.QueryComputerSet)] [Parameter(ParameterSetName = CimBaseCommand.QuerySessionSet)] public SwitchParameter Shallow @@ -370,7 +370,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] public String Filter { get { return filter; } @@ -395,7 +395,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] [Alias("SelectProperties")] public String[] Property @@ -513,7 +513,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal const string nameCimInstance = "InputObject"; internal const string nameCimSession = "CimSession"; internal const string nameClassName = "ClassName"; - internal const string nameResourceUri = "ResourceUri"; + internal const string nameResourceUri = "ResourceUri"; internal const string nameComputerName = "ComputerName"; internal const string nameFilter = "Filter"; internal const string nameKeyOnly = "KeyOnly"; @@ -545,9 +545,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false), - new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false), + new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false), } - }, + }, { nameClassName, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true), @@ -559,7 +559,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), } }, { @@ -567,7 +567,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), } }, { @@ -575,7 +575,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false), } @@ -598,7 +598,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), - + } }, { @@ -606,7 +606,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), } @@ -616,7 +616,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), } }, { @@ -624,7 +624,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), } }, }; @@ -640,7 +640,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { CimBaseCommand.ClassNameSessionSet, new ParameterSetEntry(2) }, { CimBaseCommand.QueryComputerSet, new ParameterSetEntry(1) }, { CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(2) }, - { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) }, + { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) }, { CimBaseCommand.QuerySessionSet, new ParameterSetEntry(2) } }; #endregion diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs index f7145e6ae..86b26890b 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -14,7 +14,7 @@ using System.Management.Automation; namespace Microsoft.Management.Infrastructure.CimCmdlets { /// - /// The command returns zero, one or more CimSession objects that represent + /// The command returns zero, one or more CimSession objects that represent /// connections with remote computers established from the current PS Session. /// @@ -23,7 +23,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public sealed class GetCimSessionCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -32,7 +32,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region parameters @@ -40,17 +40,17 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// /// The following is the definition of the input parameter "ComputerName". - /// Specifies one or more connections by providing their ComputerName(s). The - /// Cmdlet then gets CimSession(s) opened with those connections. This parameter - /// is an alternative to using CimSession(s) that also identifies the remote + /// Specifies one or more connections by providing their ComputerName(s). The + /// Cmdlet then gets CimSession(s) opened with those connections. This parameter + /// is an alternative to using CimSession(s) that also identifies the remote /// computer(s). /// /// - /// This is the only optional parameter of the Cmdlet. If not provided, the - /// Cmdlet returns all CimSession(s) live/active in the runspace. + /// This is the only optional parameter of the Cmdlet. If not provided, the + /// Cmdlet returns all CimSession(s) live/active in the runspace. /// /// - /// If an instance of CimSession is pipelined to Get-CimSession, the + /// If an instance of CimSession is pipelined to Get-CimSession, the /// ComputerName property of the instance is bound by name with this parameter. /// /// @@ -111,7 +111,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "Name". - /// Specifies one or more session Name(s) for which to get CimSession(s). The + /// Specifies one or more session Name(s) for which to get CimSession(s). The /// argument may contain wildcard characters. /// [Parameter(Mandatory = true, diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs index c23b9b20e..eb434f16b 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -15,7 +15,7 @@ using System.Management.Automation; namespace Microsoft.Management.Infrastructure.CimCmdlets { /// - /// This cmdlet enables the user to invoke a static method on a CIM class using + /// This cmdlet enables the user to invoke a static method on a CIM class using /// the arguments passed as a list of name value pair dictionary. /// @@ -28,7 +28,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public class InvokeCimMethodCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -37,7 +37,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region parameters @@ -75,13 +75,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.CimInstanceComputerSet)] [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] + ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] + ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] public Uri ResourceUri { get { return resourceUri; } @@ -90,8 +90,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets this.resourceUri = value; base.SetParameter(value, nameResourceUri); } - } - private Uri resourceUri; + } + private Uri resourceUri; /// /// The following is the definition of the input parameter "CimClass". @@ -140,7 +140,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// /// The following is the definition of the input parameter "QueryDialect". - /// Specifies the dialect used by the query Engine that interprets the Query + /// Specifies the dialect used by the query Engine that interprets the Query /// string. /// /// @@ -193,9 +193,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets private CimInstance cimInstance; /// - /// The following is the definition of the input parameter "ComputerName". - /// Provides the name of the computer from which to invoke the method. The - /// ComputerName is used to create a temporary CimSession with default parameter + /// The following is the definition of the input parameter "ComputerName". + /// Provides the name of the computer from which to invoke the method. The + /// ComputerName is used to create a temporary CimSession with default parameter /// values, which is then used to retrieve the instances. /// /// @@ -216,7 +216,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimBaseCommand.CimClassComputerSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] public String[] ComputerName { @@ -254,7 +254,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimClassSessionSet)] [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] + ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] public CimSession[] CimSession { @@ -274,7 +274,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// [Parameter(Position = 1, ValueFromPipelineByPropertyName = true)] [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public IDictionary Arguments + public IDictionary Arguments { get { return arguments; } set { arguments = value; } @@ -314,10 +314,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimBaseCommand.QuerySessionSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] + ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] public String Namespace { get { return nameSpace; } @@ -331,7 +331,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "OperationTimeoutSec". - /// Enables the user to specify the operation timeout in Seconds. This value + /// Enables the user to specify the operation timeout in Seconds. This value /// overwrites the value specified by the CimSession Operation timeout. /// [Alias(AliasOT)] @@ -438,7 +438,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets internal const string nameClassName = "ClassName"; internal const string nameCimClass = "CimClass"; internal const string nameQuery = "Query"; - internal const string nameResourceUri = "ResourceUri"; + internal const string nameResourceUri = "ResourceUri"; internal const string nameQueryDialect = "QueryDialect"; internal const string nameCimInstance = "InputObject"; internal const string nameComputerName = "ComputerName"; @@ -489,7 +489,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), } }, { @@ -498,9 +498,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, true), new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true), new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true), } - }, + }, { nameMethodName, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, true), @@ -512,7 +512,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true), new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true), } }, { @@ -522,7 +522,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), } }, { @@ -530,9 +530,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true), } - }, + }, }; /// @@ -541,8 +541,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets static Dictionary parameterSets = new Dictionary { { CimBaseCommand.ClassNameComputerSet, new ParameterSetEntry(2, true) }, - { CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(3) }, - { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(2) }, + { CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(3) }, + { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(2) }, { CimBaseCommand.ClassNameSessionSet, new ParameterSetEntry(3) }, { CimBaseCommand.QueryComputerSet, new ParameterSetEntry(2) }, { CimBaseCommand.QuerySessionSet, new ParameterSetEntry(3) }, diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs index 1f916b5f6..b1a5986a0 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -29,7 +29,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public class NewCimInstanceCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -38,7 +38,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region parameters @@ -79,7 +79,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] public Uri ResourceUri { get { return resourceUri; } @@ -89,7 +89,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets base.SetParameter(value, nameResourceUri); } } - private Uri resourceUri; + private Uri resourceUri; /// /// @@ -111,7 +111,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] public String[] Key { @@ -163,7 +163,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ValueFromPipelineByPropertyName = true)] [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] [Alias("Arguments")] - public IDictionary Property + public IDictionary Property { get { return property; } set { property = value; } @@ -186,7 +186,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] public String Namespace { get { return nameSpace; } @@ -200,7 +200,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "OperationTimeoutSec". - /// Operation Timeout of the cmdlet in seconds. Overrides the value in the Cim + /// Operation Timeout of the cmdlet in seconds. Overrides the value in the Cim /// Session. /// [Alias(AliasOT)] @@ -225,7 +225,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter( Mandatory = true, ValueFromPipeline = true, - ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] + ParameterSetName = CimBaseCommand.ResourceUriSessionSet)] [Parameter( Mandatory = true, ValueFromPipeline = true, @@ -243,7 +243,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets private CimSession[] cimSession; /// - /// The following is the definition of the input parameter "ComputerName". + /// The following is the definition of the input parameter "ComputerName". /// Provides the name of the computer from which to create the instances. /// /// @@ -256,7 +256,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets ParameterSetName = CimBaseCommand.ClassNameComputerSet)] [Parameter( ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] + ParameterSetName = CimBaseCommand.ResourceUriComputerSet)] [Parameter( ValueFromPipelineByPropertyName = true, ParameterSetName = CimClassComputerSet)] @@ -286,13 +286,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter( ParameterSetName = CimBaseCommand.CimClassComputerSet)] [Parameter( - ParameterSetName = CimBaseCommand.CimClassSessionSet)] - public SwitchParameter ClientOnly + ParameterSetName = CimBaseCommand.CimClassSessionSet)] + public SwitchParameter ClientOnly { get { return clientOnly; } - set { - clientOnly = value; - base.SetParameter(value, nameClientOnly); + set { + clientOnly = value; + base.SetParameter(value, nameClientOnly); } } private SwitchParameter clientOnly; @@ -431,15 +431,15 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { nameResourceUri, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true), } - }, + }, { nameKey, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), } }, { @@ -447,26 +447,26 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true), new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true), } - }, + }, { nameNamespace, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false), } }, { nameCimSession, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true), new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true), } }, { nameComputerName, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false), - new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), + new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, false), } }, @@ -475,9 +475,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, true), new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true), - new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true), + new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true), } - }, + }, }; /// @@ -490,7 +490,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { CimBaseCommand.CimClassSessionSet, new ParameterSetEntry(2) }, { CimBaseCommand.CimClassComputerSet, new ParameterSetEntry(1) }, { CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(2) }, - { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) }, + { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) }, }; #endregion }//End Class diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs index 99b7d46bd..f1083747e 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -15,10 +15,10 @@ using Microsoft.Management.Infrastructure.Options; namespace Microsoft.Management.Infrastructure.CimCmdlets { /// - /// This Cmdlet enables the IT Pro to create a CIM Session. CIM Session object - /// is a client-side representation of the connection between the client and the - /// server. - /// The CimSession object returned by the Cmdlet is used by all other CIM + /// This Cmdlet enables the IT Pro to create a CIM Session. CIM Session object + /// is a client-side representation of the connection between the client and the + /// server. + /// The CimSession object returned by the Cmdlet is used by all other CIM /// cmdlets. /// [Cmdlet(VerbsCommon.New, "CimSession", DefaultParameterSetName = CredentialParameterSet, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227967")] @@ -74,7 +74,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "ComputerName". - /// Specifies the computer on which the commands associated with this session + /// Specifies the computer on which the commands associated with this session /// will run. The default value is LocalHost. /// [Alias(AliasCN, AliasServerName)] @@ -96,8 +96,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// Specifies a friendly name for the CIM Session connection. /// /// - /// If a name is not passed, then the session is given the name CimSession, - /// where is the next available session number. Example, CimSession1, + /// If a name is not passed, then the session is given the name CimSession, + /// where is the next available session number. Example, CimSession1, /// CimSession2, etc... /// /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs index 05d327601..9e12e007f 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -28,14 +28,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets }; /// - /// The Cmdlet allows the IT Pro to create a CimSessionOptions object that she/he - /// can subsequently use to create one or more CimSession connections. The - /// options object holds the CIM Session information that is less commonly set - /// and used by the IT Pro, and most commonly defaulted. + /// The Cmdlet allows the IT Pro to create a CimSessionOptions object that she/he + /// can subsequently use to create one or more CimSession connections. The + /// options object holds the CIM Session information that is less commonly set + /// and used by the IT Pro, and most commonly defaulted. /// - /// The Cmdlet has two parameter sets, one for WMMan options and one for DCOM - /// options. Depending on the arguments the Cmdlet will return an instance of - /// DComSessionOptions or WSManSessionOptions, which derive from + /// The Cmdlet has two parameter sets, one for WMMan options and one for DCOM + /// options. Depending on the arguments the Cmdlet will return an instance of + /// DComSessionOptions or WSManSessionOptions, which derive from /// CimSessionOptions. /// [Cmdlet(VerbsCommon.New, "CimSessionOption", DefaultParameterSetName = ProtocolNameParameterSet, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227969")] @@ -43,7 +43,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public sealed class NewCimSessionOptionCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -52,7 +52,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region cmdlet parameters @@ -153,8 +153,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "Encoding". - /// Defined the message encoding. - /// The allowed encodings are { Default | Utf8 | Utf16 }. The default value + /// Defined the message encoding. + /// The allowed encodings are { Default | Utf8 | Utf16 }. The default value /// should be Utf8. /// [Parameter(ValueFromPipelineByPropertyName = true, @@ -174,7 +174,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "HttpPrefix". - /// This is the HTTP URL on the server on which the WSMan service is listening. + /// This is the HTTP URL on the server on which the WSMan service is listening. /// In most cases it is /wsman, which is the default. /// [Parameter(ValueFromPipelineByPropertyName = true, @@ -302,7 +302,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "Impersonation". - /// Used to select if, and if so what kind of, impersonation should be used. + /// Used to select if, and if so what kind of, impersonation should be used. /// Applies only to the DCOM channel. /// [Parameter(ParameterSetName = DcomParameterSet)] @@ -321,7 +321,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "PacketIntegrity". - /// Switch indicating if the package integrity in DCOM connections should be + /// Switch indicating if the package integrity in DCOM connections should be /// checked/enforced. /// [Parameter(ParameterSetName = DcomParameterSet)] @@ -340,7 +340,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "PacketPrivacy". - /// Switch indicating if packet privacy of the packets in DCOM communications + /// Switch indicating if packet privacy of the packets in DCOM communications /// should be checked/enforced. /// [Parameter(ParameterSetName = DcomParameterSet)] @@ -660,13 +660,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), } }, - + { nameSkipCACheck, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), } }, - + { nameSkipCNCheck, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), @@ -677,7 +677,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), } }, - + { nameEncodePortInServicePrincipalName, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), @@ -688,7 +688,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), } }, - + { nameHttpPrefix, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), @@ -699,7 +699,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), } }, - + { nameProxyAuthentication, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), @@ -710,7 +710,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), } }, - + { nameProxyCredential, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), @@ -721,7 +721,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), } }, - + { nameUseSsl, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false), @@ -732,7 +732,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.DcomParameterSet, false), } }, - + { namePacketIntegrity, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.DcomParameterSet, false), @@ -743,7 +743,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.DcomParameterSet, false), } }, - + { nameProtocol, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.ProtocolNameParameterSet, true), diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs index 68ef388c4..662138506 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -15,10 +15,10 @@ using Microsoft.PowerShell.Commands; namespace Microsoft.Management.Infrastructure.CimCmdlets { /// - /// Enables the user to subscribe to indications using Filter Expression or + /// Enables the user to subscribe to indications using Filter Expression or /// Query Expression. /// -SourceIdentifier is a name given to the subscription - /// The Cmdlet should return a PS EventSubscription object that can be used to + /// The Cmdlet should return a PS EventSubscription object that can be used to /// cancel the subscription /// Should we have the second parameter set with a -Query? /// @@ -92,7 +92,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// /// The following is the definition of the input parameter "QueryDialect". - /// Specifies the dialect used by the query Engine that interprets the Query + /// Specifies the dialect used by the query Engine that interprets the Query /// string. /// /// @@ -146,7 +146,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "ComputerName". - /// Specifies the computer on which the commands associated with this session + /// Specifies the computer on which the commands associated with this session /// will run. The default value is LocalHost. /// [Alias(CimBaseCommand.AliasCN, CimBaseCommand.AliasServerName)] @@ -308,7 +308,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true), new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, true), } - }, + }, { nameQuery, new HashSet { new ParameterDefinitionEntry(CimBaseCommand.QueryExpressionSessionSet, true), diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs index c3d0517c7..3e6e4166a 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -27,7 +27,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets public class RemoveCimInstanceCommand : CimBaseCommand { #region constructor - + /// /// constructor /// @@ -36,7 +36,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { DebugHelper.WriteLogEx(); } - + #endregion #region parameters @@ -74,7 +74,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.CimInstanceComputerSet)] [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] + ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] public Uri ResourceUri { get { return resourceUri; } @@ -83,8 +83,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets this.resourceUri = value; base.SetParameter(value, nameResourceUri); } - } - private Uri resourceUri; + } + private Uri resourceUri; /// /// The following is the definition of the input parameter "ComputerName". @@ -352,7 +352,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false), } - }, + }, }; /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs index 8361729fb..f02f15985 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs @@ -35,14 +35,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets : base(parameters, parameterSets) { } - + #endregion #region parameters /// /// The following is the definition of the input parameter "CimSession". - /// Specifies one or more CimSession object to be removed from the local PS + /// Specifies one or more CimSession object to be removed from the local PS /// session/runspace. /// [Parameter( @@ -65,9 +65,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// /// The following is the definition of the input parameter "ComputerName". - /// Specified one or more computer names for which all CimSession(s) + /// Specified one or more computer names for which all CimSession(s) /// (connections) should be removed (terminated). - /// This is the only optional parameter. If no value for this parameter is + /// This is the only optional parameter. If no value for this parameter is /// provided, all CimSession(s) are terminated. /// [Alias(AliasCN, AliasServerName)] diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs index 6d8e78a61..717d3f805 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs @@ -1,5 +1,5 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ @@ -36,7 +36,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets : base(parameters, parameterSets) { } - + #endregion #region parameters @@ -94,7 +94,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets [Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = CimBaseCommand.CimInstanceComputerSet)] [Parameter(ValueFromPipelineByPropertyName = true, - ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] + ParameterSetName = CimBaseCommand.CimInstanceSessionSet)] public Uri ResourceUri { get { return resourceUri; } @@ -103,8 +103,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets this.resourceUri = value; base.SetParameter(value, nameResourceUri); } - } - private Uri resourceUri; + } + private Uri resourceUri; /// /// The following is the definition of the input parameter "Namespace". @@ -350,7 +350,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets #region const string of parameter names internal const string nameCimSession = "CimSession"; internal const string nameComputerName = "ComputerName"; - internal const string nameResourceUri = "ResourceUri"; + internal const string nameResourceUri = "ResourceUri"; internal const string nameNamespace = "Namespace"; internal const string nameCimInstance = "InputObject"; internal const string nameQuery = "Query"; @@ -412,7 +412,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false), new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false), } - }, + }, }; /// diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs index 0c32a5180..5482e4bbb 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs @@ -1,9 +1,9 @@ /*============================================================================ - * Copyright (C) Microsoft Corporation, All rights reserved. + * Copyright (C) Microsoft Corporation, All rights reserved. *============================================================================ */ -// #define LOGENABLE // uncomment this line to enable the log, +// #define LOGENABLE // uncomment this line to enable the log, // create c:\temp\cim.log before invoking cimcmdlets using System; @@ -231,7 +231,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets return string.Format(CultureInfo.CurrentUICulture, "{0}::{1} ", frame.GetMethod().DeclaringType.Name, frame.GetMethod().Name); - + #endif } #endregion @@ -371,7 +371,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets { writer.WriteLineAsync(spaces[indent] + sourceInformation + @" " + message); } - + } } } diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs index 97fb15bc2..046fdb79f 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs @@ -25,14 +25,14 @@ namespace Microsoft.PowerShell.Activities /// Gets the fully qualified name of the command invoked by this activity. /// public override string PSCommandName { get { return "CimCmdlets\\Get-CimAssociatedInstance"; } } - + /// /// The .NET type implementing the cmdlet to invoke. /// public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.GetCimAssociatedInstanceCommand); } } - + // Arguments - + /// /// Provides access to the Association parameter. /// @@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Activities System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); // Initialize the arguments - + if(Association.Expression != null) { targetCommand.AddParameter("Association", Association.Get(context)); diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs index 249864c18..04cf6c7bd 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs @@ -30,9 +30,9 @@ namespace Microsoft.PowerShell.Activities /// The .NET type implementing the cmdlet to invoke. /// public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.GetCimClassCommand); } } - + // Arguments - + /// /// Provides access to the ClassName parameter. /// diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs index bf08b44b6..10bada788 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs @@ -30,9 +30,9 @@ namespace Microsoft.PowerShell.Activities /// The .NET type implementing the cmdlet to invoke. /// public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand); } } - + // Arguments - + /// /// Provides access to the ClassName parameter. /// @@ -115,7 +115,7 @@ namespace Microsoft.PowerShell.Activities System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); // Initialize the arguments - + if(ClassName.Expression != null) { targetCommand.AddParameter("ClassName", ClassName.Get(context)); diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs b/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs index a2a7b9daa..599480c68 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs @@ -13,159 +13,159 @@ namespace Microsoft.PowerShell.Activities { /// - /// + /// /// public enum PSWorkflowRuntimeVariable { // Command Parameters /// - /// + /// /// PSComputerName = 0, /// - /// + /// /// PSCredential = 1, /// - /// + /// /// PSPort = 2, /// - /// + /// /// PSUseSsl = 3, /// - /// + /// /// PSConfigurationName = 4, /// - /// + /// /// PSApplicationName = 5, /// - /// + /// /// PSConnectionUri = 6, /// - /// + /// /// PSAllowRedirection = 7, /// - /// + /// /// PSSessionOption = 8, /// - /// + /// /// PSAuthentication = 9, /// - /// + /// /// PSAuthenticationLevel = 10, /// - /// + /// /// PSCertificateThumbprint = 11, /// - /// + /// /// Input = 13, /// - /// + /// /// Verbose = 15, // Retry policy constants /// - /// + /// /// PSConnectionRetryCount = 19, /// - /// + /// /// PSConnectionRetryIntervalSec = 21, /// - /// + /// /// PSPrivateMetadata = 24, // Timers /// - /// + /// /// PSRunningTimeoutSec = 27, /// - /// + /// /// PSElapsedTimeoutSec = 28, /// - /// + /// /// PSWorkflowRoot = 31, /// - /// + /// /// JobName = 32, /// - /// + /// /// JobInstanceId = 33, /// - /// + /// /// JobId = 34, /// - /// + /// /// - JobCommandName = 36, + JobCommandName = 36, /// - /// + /// /// ParentJobInstanceId = 40, /// - /// + /// /// ParentJobName = 41, /// - /// + /// /// ParentJobId = 42, /// - /// + /// /// ParentCommandName = 43, /// - /// + /// /// WorkflowInstanceId = 48, /// - /// + /// /// PSSenderInfo = 49, /// - /// + /// /// PSCulture = 50, /// - /// + /// /// [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly")] PSUICulture = 51, /// - /// + /// /// PSVersionTable = 52, @@ -279,7 +279,7 @@ namespace Microsoft.PowerShell.Activities outputStream = parameter.Value as PSDataCollection; } } - + // // If the property to return was all, then just return the entire collection as a hashtable. // (We still needed to loop to find the output stream to write into.) @@ -305,7 +305,7 @@ namespace Microsoft.PowerShell.Activities // if (workflowRuntimeVariables.ContainsKey(varKey)) { - Object value = null; + Object value = null; dictionaryParam.TryGetValue(varKey, out value); workflowRuntimeVariables[varKey] = value; } diff --git a/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs index da7558d5f..5dda7530c 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs @@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.Activities public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand); } } // Arguments - + /// /// Provides access to the ClassName parameter. /// @@ -113,7 +113,7 @@ namespace Microsoft.PowerShell.Activities System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); // Initialize the arguments - + if(ClassName.Expression != null) { targetCommand.AddParameter("ClassName", ClassName.Get(context)); diff --git a/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs index 53f94aa05..7d503cb4e 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs @@ -30,9 +30,9 @@ namespace Microsoft.PowerShell.Activities /// The .NET type implementing the cmdlet to invoke. /// public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.NewCimInstanceCommand); } } - + // Arguments - + /// /// Provides access to the ClassName parameter. /// @@ -99,7 +99,7 @@ namespace Microsoft.PowerShell.Activities System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); // Initialize the arguments - + if(ClassName.Expression != null) { targetCommand.AddParameter("ClassName", ClassName.Get(context)); diff --git a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs index 26511b9a7..291c9ef5a 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs @@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.Activities public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.NewCimSessionCommand); } } // Arguments - + /// /// Provides access to the Authentication parameter. /// diff --git a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs index 570c66731..695072fff 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs @@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.Activities public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.NewCimSessionOptionCommand); } } // Arguments - + /// /// Provides access to the NoEncryption parameter. /// @@ -183,7 +183,7 @@ namespace Microsoft.PowerShell.Activities System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); // Initialize the arguments - + if(NoEncryption.Expression != null) { targetCommand.AddParameter("NoEncryption", NoEncryption.Get(context)); diff --git a/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs b/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs index c94500925..9c1e7cf46 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs @@ -79,7 +79,7 @@ namespace Microsoft.PowerShell.Activities // The guard check for a null expression string is done in Execute() instead // of in this property. It's also done in the validation check for CacheMetadata string updatedExpression = Expression; - + // Hack to make sure the $input *does* get unrolled... if (string.Equals("$input", Expression.Trim(), StringComparison.OrdinalIgnoreCase)) { @@ -134,7 +134,7 @@ namespace Microsoft.PowerShell.Activities /// List of command names to allow in the expression /// /// - /// List of variable names to allow in the expression. If the collection contains a single + /// List of variable names to allow in the expression. If the collection contains a single /// element "*", all variables will be allowed including environment variables /// functions, etc. /// @@ -270,7 +270,7 @@ namespace Microsoft.PowerShell.Activities } catch (Exception) { - // it is fine to catch generic exception here + // it is fine to catch generic exception here // if the local runspace provider does not give us // a runspace we will create one locally (fallback) } diff --git a/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs index bcc130c66..44e6fc169 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs @@ -83,7 +83,7 @@ namespace Microsoft.PowerShell.Activities System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); // Initialize the arguments - + if(Namespace.Expression != null) { targetCommand.AddParameter("Namespace", Namespace.Get(context)); diff --git a/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs index 16759ec2b..2e90f2ae2 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs @@ -30,7 +30,7 @@ namespace cimcmdlets.Activities /// The .NET type implementing the cmdlet to invoke. /// public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.SetCimInstanceCommand); } } - + /// /// Provides access to the Namespace parameter. /// @@ -87,7 +87,7 @@ namespace cimcmdlets.Activities protected override string PSDefiningModule { get { return "CimCmdlets"; } } // Additional custom code for this activity - + /// /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. diff --git a/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs b/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs index eb06b2da6..42b26f9c6 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs @@ -29,7 +29,7 @@ namespace Microsoft.PowerShell.Activities } /// - /// + /// /// [DefaultValue(null)] public InArgument Value @@ -252,7 +252,7 @@ namespace Microsoft.PowerShell.Activities } /// - /// Forces the activity to not call the persist functionality, which will be responsible for + /// Forces the activity to not call the persist functionality, which will be responsible for /// persisting the workflow state onto the disk. /// [BehaviorCategory] diff --git a/src/Microsoft.PowerShell.Activities/Activities/ThrottledParallelForeach.cs b/src/Microsoft.PowerShell.Activities/Activities/ThrottledParallelForeach.cs index c7af205d0..a197ca0ca 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/ThrottledParallelForeach.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/ThrottledParallelForeach.cs @@ -63,7 +63,7 @@ namespace Microsoft.PowerShell.Activities metadata.AddArgument(new RuntimeArgument("Values", typeof(IEnumerable), ArgumentDirection.In, true)); metadata.AddArgument(new RuntimeArgument("ThrottleLimit", typeof(int), ArgumentDirection.In)); - // initialize the hasCompleted and valueEnumerator and add it to the list of private variables + // initialize the hasCompleted and valueEnumerator and add it to the list of private variables this.hasCompleted = new Variable(); metadata.AddImplementationVariable(this.hasCompleted); @@ -87,7 +87,7 @@ namespace Microsoft.PowerShell.Activities throw new ApplicationException("ParallelForEach requires a non null Values collection"); } - // get the enumerator + // get the enumerator this.valueEnumerator.Set(context, values.GetEnumerator()); // initialize the values for creating the execution window (max and runningCount) diff --git a/src/Microsoft.PowerShell.Activities/Activities/WmiActivities.cs b/src/Microsoft.PowerShell.Activities/Activities/WmiActivities.cs index de89e6a4e..bb11f0978 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/WmiActivities.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/WmiActivities.cs @@ -25,7 +25,7 @@ using System.Globalization; namespace Microsoft.PowerShell.Activities { - + /// /// Workflow activity wrapping the Get-Wmiobject cmdlet /// diff --git a/src/Microsoft.PowerShell.Activities/Activities/WorkflowJobConverter.cs b/src/Microsoft.PowerShell.Activities/Activities/WorkflowJobConverter.cs index a09ae005e..fc02a62f7 100644 --- a/src/Microsoft.PowerShell.Activities/Activities/WorkflowJobConverter.cs +++ b/src/Microsoft.PowerShell.Activities/Activities/WorkflowJobConverter.cs @@ -369,7 +369,7 @@ namespace Microsoft.PowerShell.Workflow } catch (ParseException e) { - errorList.AddRange(e.Errors); + errorList.AddRange(e.Errors); } } } @@ -448,7 +448,7 @@ namespace Microsoft.PowerShell.Workflow { functionDefinition = helpContent.GetCommentBlock() + functionDefinition; } - + var sb = ScriptBlock.Create(functionDefinition); sb.DebuggerHidden = true; @@ -460,7 +460,7 @@ namespace Microsoft.PowerShell.Workflow static internal IEnumerable GetRequiredAssembliesFromInitialSessionState( InitialSessionState initialSessionState, System.Management.Automation.PowerShell invoker) - { + { var getModuleCommand = new CmdletInfo("Get-Module", typeof(GetModuleCommand)); invoker.Commands.Clear(); invoker.AddCommand(getModuleCommand) @@ -634,7 +634,7 @@ namespace Microsoft.PowerShell.Workflow { case AstToXamlConverter.ActivityKind.InlineScript: return AstToXamlConverter.GetAvailableProperties(typeof(InlineScript), null); - + case AstToXamlConverter.ActivityKind.Persist: // The checkpoint-workflow activity accepts no parameters return null; @@ -657,7 +657,7 @@ namespace Microsoft.PowerShell.Workflow return new Dictionary {{"TypeName", typeof (string)}}; case AstToXamlConverter.ActivityKind.RegularCommand: - // If the command resolved to a script, the command metadata has all of it's parameters, + // If the command resolved to a script, the command metadata has all of it's parameters, if ((command != null) && (command.CommandType & (CommandTypes.ExternalScript | CommandTypes.Workflow | CommandTypes.Function | CommandTypes.Filter | CommandTypes.Configuration)) != 0) { return null; @@ -840,12 +840,12 @@ namespace Microsoft.PowerShell.Workflow get { return parameterValidation; } } private Dictionary parameterValidation = new Dictionary(StringComparer.OrdinalIgnoreCase); - + private bool disableSymbolGeneration = false; private string name = null; private PSModuleInfo definingModule = null; private readonly Ast scriptWorkflowAstRoot; - private int _currentIndentLevel; + private int _currentIndentLevel; private Scope scope; private System.Management.Automation.PowerShell invoker; @@ -874,7 +874,7 @@ namespace Microsoft.PowerShell.Workflow xmlns:sad=""clr-namespace:System.Activities.Debugger;assembly=System.Activities"" xmlns:local=""clr-namespace:Microsoft.PowerShell.DynamicActivities"" xmlns:mva=""clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"" - mva:VisualBasic.Settings=""Assembly references and imported namespaces serialized as XML namespaces"" + mva:VisualBasic.Settings=""Assembly references and imported namespaces serialized as XML namespaces"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"""; private const string xamlFooter = @""; @@ -882,7 +882,7 @@ namespace Microsoft.PowerShell.Workflow private const string GenericTypesKey = @"Activity-GenericTypes"; private const string MemberTemplate = @""; private const string M3PKeyForThrowStatement = @"__Microsoft.PowerShell.Activities.Throw"; - + // PseudoCommands that only work in the script workflow // Please keep in sync with the System.Management.Automation.CompletionCompleter.PseudoCommands private const string CheckpointWorkflow = "Checkpoint-Workflow"; @@ -957,11 +957,11 @@ namespace Microsoft.PowerShell.Workflow { throw new ParseException(errors); } - return (FunctionDefinitionAst)block.EndBlock.Statements[0]; + return (FunctionDefinitionAst)block.EndBlock.Statements[0]; } /// - /// + /// /// /// /// @@ -1386,7 +1386,7 @@ namespace Microsoft.PowerShell.Workflow scriptBlockAst.ParamBlock.Visit(this); } - // Initialize the 'result' reference parameter with empty collection, without this result parameter is generating + // Initialize the 'result' reference parameter with empty collection, without this result parameter is generating // wrong results if it is first used in a += operation in Powershell value activity. if(members.ContainsKey("result") && typeof(PSDataCollection).IsAssignableFrom(members["result"].Type)) { @@ -1506,7 +1506,7 @@ namespace Microsoft.PowerShell.Workflow // workflow. if (parameterAst.DefaultValue != null) { - bool areParameterAndDefaultCompatible = + bool areParameterAndDefaultCompatible = (parameterAst.StaticType == typeof(object)) || (parameterAst.StaticType == typeof(bool)) || (parameterAst.StaticType == parameterAst.DefaultValue.StaticType); @@ -1574,7 +1574,7 @@ namespace Microsoft.PowerShell.Workflow { actualVariableName = name; if (name == null) { return false; } - + if (!isParameter) { // Allow the "WORKFLOW:" scope qualifier in nested scopes @@ -1680,7 +1680,7 @@ namespace Microsoft.PowerShell.Workflow // See if it's the variable we're looking for // Variable = string workingVariableName = detectedVariableName; - + // Allow the "WORKFLOW:" scope qualifier in nested scopes if (workingVariableName.StartsWith("WORKFLOW:", StringComparison.OrdinalIgnoreCase)) { @@ -1793,7 +1793,7 @@ namespace Microsoft.PowerShell.Workflow } else if (detectedTypes.Contains(typeof(PSDataCollection))) { - // When we see that a variable is storing the result of an activity call, + // When we see that a variable is storing the result of an activity call, // we can't have the detected type be an Object, as Workflow doesn't allow that. // So we just return PSDataCollection in that case. return typeof(PSDataCollection); @@ -1901,7 +1901,7 @@ namespace Microsoft.PowerShell.Workflow /// Block variable scope prefix like "$GLOBAL:" and "$SCRIPT:". In script workflow, /// the only valid scope prefix is "$WORKFLOW:". When generating expression for the /// PowerShellValue activity, we need to remove the $WORKFLOW part. Otherwise it will - /// generate error during execution, because the prefix "WORKFLOW" is not actually + /// generate error during execution, because the prefix "WORKFLOW" is not actually /// supported in the PowerShell. /// /// @@ -1915,7 +1915,7 @@ namespace Microsoft.PowerShell.Workflow { return false; } - + string variableName = variableExpr.VariablePath.ToString(); if (variableName.IndexOf(':') != -1 && !variableName.StartsWith("ENV:", StringComparison.OrdinalIgnoreCase)) { @@ -2061,7 +2061,7 @@ namespace Microsoft.PowerShell.Workflow /// This needs to be propagated to the synthesized driver function . /// internal string CmdletAttributeText { get; set; } - + object ICustomAstVisitor.VisitParamBlock(ParamBlockAst paramBlockAst) { foreach (ParameterAst parameter in paramBlockAst.Parameters) @@ -2102,8 +2102,8 @@ namespace Microsoft.PowerShell.Workflow object ICustomAstVisitor.VisitStatementBlock(StatementBlockAst statementBlockAst) { - // If the statement block is the body of a parallel block statement, we enclose each - // statement in a Try/Catch block, so that: + // If the statement block is the body of a parallel block statement, we enclose each + // statement in a Try/Catch block, so that: // 1. the activities generated for each statement will be executed sequentially. // 2. the terminating exception thrown from one statement will not terminate other statements that // are running in parallel. @@ -2206,7 +2206,7 @@ namespace Microsoft.PowerShell.Workflow { WriteLine(""); IndentLevel(); - + WriteLine(""); IndentLevel(); @@ -2432,7 +2432,7 @@ namespace Microsoft.PowerShell.Workflow UnaryExpressionAst unaryExpression = value as UnaryExpressionAst; if (( - (rightExpression != null) && (!(rightExpression.Expression is SubExpressionAst)) && + (rightExpression != null) && (!(rightExpression.Expression is SubExpressionAst)) && ((rightExpression.Expression is ConvertExpressionAst) || !(rightExpression.Expression is AttributedExpressionAst)) ) || (unaryExpression != null) @@ -2594,7 +2594,7 @@ namespace Microsoft.PowerShell.Workflow resultVariables.Pop(); } - + private StorageVariable GetVariableToUse() { if (resultVariables != null && resultVariables.Count > 0) @@ -2624,7 +2624,7 @@ namespace Microsoft.PowerShell.Workflow { string trimmedExpression = expression.Trim(); - if (trimmedExpression.StartsWith("{", StringComparison.OrdinalIgnoreCase) && + if (trimmedExpression.StartsWith("{", StringComparison.OrdinalIgnoreCase) && trimmedExpression.EndsWith("}", StringComparison.OrdinalIgnoreCase)) { trimmedExpression = trimmedExpression.Remove(0, 1); @@ -2695,7 +2695,7 @@ namespace Microsoft.PowerShell.Workflow return visitor.ExpressionHasSideEffects; } - + object ICustomAstVisitor.VisitPipeline(PipelineAst pipelineAst) { // If it's one command, generate the call alone @@ -2740,7 +2740,7 @@ namespace Microsoft.PowerShell.Workflow // foreach($a2 in A) // { // $psPipelineResults = @( @{} ) - // + // // $psPipelineResults = foreach($item in $psPipelineResults) // { // foreach($output in Command1) @@ -2808,7 +2808,7 @@ namespace Microsoft.PowerShell.Workflow } boundParameter = parameterName; - + // DisplayName can also be used as a Activity.DisplayName in that case DisplayName param value is not treated as a PipelineVariable if (String.Equals(parameterName, "DisplayName", StringComparison.OrdinalIgnoreCase) && !Regex.IsMatch(currentPipelineVariable, "^[a-zA-Z][a-zA-Z0-9-_]*$")) @@ -3500,7 +3500,7 @@ namespace Microsoft.PowerShell.Workflow { ReportError("OperatorRequiresVariable", ActivityResources.OperatorRequiresVariable, unaryExpressionAst.Extent); } - + break; case TokenKind.Minus: case TokenKind.Plus: @@ -3823,11 +3823,11 @@ namespace Microsoft.PowerShell.Workflow // Remove the ")" from the end string newParamBlock = paramBlock.Substring(0, paramBlock.Length - 2); - + StringBuilder actualParamBlock = new StringBuilder(); actualParamBlock.Append(newParamBlock); actualParamBlock.Append(additionalParameters); - + // Add the ")" at the end actualParamBlock.Append("\n)"); @@ -3915,7 +3915,7 @@ namespace Microsoft.PowerShell.Workflow StringBuilder newFunctionCall = null; int baseOffset = command.Extent.StartOffset; int commandTextRelativeStartOffset = 0; - + foreach (Ast ast in variableExprs) { var variableExpr = ast as VariableExpressionAst; @@ -4389,7 +4389,7 @@ namespace Microsoft.PowerShell.Workflow Sequence undoSequenceInCatch = new Sequence() { Activities = { } }; Collection savedHostDefaults = new Collection(); - + // Go through all the properties in PSRemotingActivity they use, and add them as // virtual properties to this activity foreach (PropertyInfo field in propertiesToUse) @@ -4752,7 +4752,7 @@ namespace Microsoft.PowerShell.Workflow // Update the activity map with the full name to support users specifying // an activity with full name. - // If the activity map already contains an assembly with this full name, + // If the activity map already contains an assembly with this full name, // set the value to NULL as is done for Name key. if (activityMap.ContainsKey(type.FullName)) { @@ -5117,7 +5117,7 @@ namespace Microsoft.PowerShell.Workflow } StaticBindingResult bindingResult = StaticParameterBinder.BindCommand(commandAst, false); - + // Remove the first positional element (the script) if there is one if (bindingResult.BoundParameters.ContainsKey("0")) { @@ -5233,8 +5233,8 @@ namespace Microsoft.PowerShell.Workflow private void SetVariableArgumentValue(CommandArgumentInfo argument, ref object argumentValue) { - System.Diagnostics.Debug.Assert(argumentValue != null, "argumentValue should not be null"); - + System.Diagnostics.Debug.Assert(argumentValue != null, "argumentValue should not be null"); + if (argument != null) { argumentValue = "$" + argument.OriginalValue; @@ -5387,7 +5387,7 @@ namespace Microsoft.PowerShell.Workflow variableToUseDefinition = GetVariableDefinition(variableToUse); variableToUseDefinition = variableToUseDefinition ?? members[variableToUse]; } - + string appendOutput = String.Empty; string actualAggregatingVariable = String.Empty; bool needAggregationVariable = false; @@ -5696,7 +5696,7 @@ namespace Microsoft.PowerShell.Workflow // of the properties for them. List completeProperties = new List(availableProperties.Keys); - // If this is a workflow calling workflow, add in the virtual properties that don't exist, since they may not + // If this is a workflow calling workflow, add in the virtual properties that don't exist, since they may not // have been actually compiled (if they were not used). foreach(PropertyInfo psRemotingProperty in typeof(PSRemotingActivity).GetProperties()) { @@ -5736,7 +5736,7 @@ namespace Microsoft.PowerShell.Workflow } } } - + // Check if multiple specified parameters can be resolved to the same actual parameter if (!boundParameters.Contains(parameterName)) { @@ -6056,8 +6056,8 @@ namespace Microsoft.PowerShell.Workflow // --- 'ResolveGenericParameterType' returns null if we cannot find the actual type of the specified generic parameter, // in that case, we use the "actualPropertyType" directly Type parameterType = ResolveGenericParameterType(actualPropertyType, genericTypeMap, parameterName, extent); - actualPropertyType = !this.validateOnly - ? parameterType + actualPropertyType = !this.validateOnly + ? parameterType : (parameterType ?? actualPropertyType); } else if (actualPropertyType.IsGenericType && actualPropertyType.ContainsGenericParameters) @@ -6256,7 +6256,7 @@ namespace Microsoft.PowerShell.Workflow // The list of parameters that need to be ignored. static List ignoredParameters; - + private static bool IsNotSupportedCommonParameter(string parameterName) { return ignoredParameters.Contains(parameterName, StringComparer.OrdinalIgnoreCase); @@ -7062,7 +7062,7 @@ namespace Microsoft.PowerShell.Workflow // And the statement body WriteLine(""); IndentLevel(); - + if (isParallel) { EnterScope(); @@ -7366,7 +7366,7 @@ namespace Microsoft.PowerShell.Workflow foreach (CatchClauseAst catchClause in tryStatementAst.CatchClauses) { List catchTypes = new List(); - + if (catchClause.IsCatchAll) { catchTypes.Add(typeof(System.Exception)); @@ -7401,7 +7401,7 @@ namespace Microsoft.PowerShell.Workflow WriteLine(@""); UnindentLevel(); WriteLine(@""); - + WriteLine(""); IndentLevel(); @@ -7568,7 +7568,7 @@ namespace Microsoft.PowerShell.Workflow LeaveStorage(); } - // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to + // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to // the 'Data' property. Then we re-throw the exception. GenerateXamlForThrowStatement(rethrowExceptionName, isRethrow: true); } @@ -7592,7 +7592,7 @@ namespace Microsoft.PowerShell.Workflow string errorTemplate = ActivityResources.ThrowStatementCannotInvokeActivities; ReportError("ThrowStatementCannotInvokeActivities", errorTemplate, throwStatementAst.Pipeline.Extent); } - + if (isInParallelBlock) { // Define the temp variable @@ -7614,7 +7614,7 @@ namespace Microsoft.PowerShell.Workflow LeaveStorage(); } - // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to + // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to // the 'Data' property. Then we throw the exception. GenerateXamlForThrowStatement(throwExceptionName, isRethrow: false); } @@ -7695,7 +7695,7 @@ namespace Microsoft.PowerShell.Workflow IndentLevel(); AddOrRemoveSpecialKey(variableName, addKey: true); - + UnindentLevel(); WriteLine(@""); UnindentLevel(); @@ -8001,7 +8001,7 @@ namespace Microsoft.PowerShell.Workflow /// This indicates if the variable is one that will aggregate results from a parallel/sequence/foreach block. /// For example: /// workflow bar { $a = parallel { Get-Process -Name powershell; Get-Service -Name Dhcp } } - /// $a here will contain all results generated from the parallel block, including a process object "powershell" + /// $a here will contain all results generated from the parallel block, including a process object "powershell" /// and a service object "Dhcp". We call $a an aggregating variable. /// internal bool IsAggregatingVariable { get; set; } @@ -8034,7 +8034,7 @@ namespace Microsoft.PowerShell.Workflow StackTrace = 8, PID = 9 } - + internal class ExpressionHasUnsupportedVariableOrSideEffectsVisitor : AstVisitor { internal bool ExpressionHasSideEffects { get; set; } diff --git a/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml b/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml index a01b00c04..6b5083509 100644 --- a/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml +++ b/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml @@ -1,14 +1,14 @@  @@ -19,8 +19,8 @@ - - diff --git a/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml b/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml index 2a4934e90..e036a2d26 100644 --- a/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml +++ b/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml @@ -74,7 +74,7 @@ -