Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Integration test 'Should return $true when Test-DscConfiguration is run' does not fail #14

Closed
johlju opened this issue Mar 17, 2019 · 1 comment · Fixed by #15
Closed
Labels
bug The issue is a bug. tests The issue or pull request is about tests only.

Comments

@johlju
Copy link
Contributor

johlju commented Mar 17, 2019

I recently saw that the integration tests 'Should return $true when Test-DscConfiguration is run' that is part of the integration tests template does not fail as expected.

It 'Should return $true when Test-DscConfiguration is run' {
Test-DscConfiguration -Verbose | Should -Be $true
}

The reason is that Test-DscConfiguration returns a [System.String] and not a [System.Boolean], so this test always passes regardless of outcome.
Ii can be seen here on this line, it is reported False, but the test passes.
https://ci.appveyor.com/project/johlju/sqlserverdsc/builds/23132521/job/vkxi4xq8jqke7ahf#L1198

Verified it here too

PS > $result = Test-DscConfiguration -Verbose
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className'
= MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer SQLTEST with user sid S-1-5-21-2246212248-426023572-517575333-1441.
VERBOSE: [SQLTEST]: LCM:  [ Start  Test     ]
VERBOSE: [SQLTEST]: LCM:  [ Start  Resource ]  [[PSModule]InstallModule]
VERBOSE: [SQLTEST]: LCM:  [ Start  Test     ]  [[PSModule]InstallModule]
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Determining if the module 'posh-git' is in the
 desired state.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Getting the current state of the module
'posh-git'.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Begin invoking Get-Module 'posh-git'.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Populating RepositorySourceLocation property
for module posh-git.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Loading module from path 'C:\Program
Files\WindowsPowerShell\Modules\posh-git\0.7.3\posh-git.psm1'.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Module 'posh-git 0.7.3' is found on the node.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Module 'posh-git' is found on the node.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Found the module path: 'C:\Program
Files\WindowsPowerShell\Modules\posh-git\0.7.3\PSGetModuleInfo.xml'.
VERBOSE: [SQLTEST]:                            [[PSModule]InstallModule] Resource 'posh-git' is in the desired state.
VERBOSE: [SQLTEST]: LCM:  [ End    Test     ]  [[PSModule]InstallModule] True in 2.6090 seconds.
VERBOSE: [SQLTEST]: LCM:  [ End    Resource ]  [[PSModule]InstallModule]
VERBOSE: [SQLTEST]: LCM:  [ End    Test     ]     Completed processing test operation. The operation returned True.
VERBOSE: [SQLTEST]: LCM:  [ End    Test     ]    in  3.2500 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 3.348 seconds
PS > $result
True
PS > $result.Gettype()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     String                                   System.Object

So we should either change the line

Test-DscConfiguration -Verbose | Should -Be $true

to either

$result = Test-DscConfiguration -Verbose
[System.Boolean]::Parse($result) | Should -BeTrue

or

Test-DscConfiguration -Verbose | Should -Be 'True'
@johlju johlju added bug The issue is a bug. tests The issue or pull request is about tests only. labels Mar 17, 2019
@johlju
Copy link
Contributor Author

johlju commented Mar 17, 2019

I prefer the former solution Test-DscConfiguration -Verbose | Should -Be 'True'. I will sen in a PR with that change, and if there is a better solution I will change to that.

johlju added a commit to johlju/DscResource.Template that referenced this issue Mar 17, 2019
- Update the integrate test `'Should return $true when Test-DscConfiguration
  is run'` that did not fail correctly if `Test-DscConfiguration` returned
  'False' (issue PowerShell#14).
- Updated some comments in files that wrongly referenced a non-existent
  module.
johlju added a commit to johlju/PowerShell-Docs that referenced this issue Mar 17, 2019
The cmdlet does not return the type `[System.Boolean]` but instead `[System.String]`. More information here PowerShell/DscResource.Template#14
sdwheeler pushed a commit to MicrosoftDocs/PowerShell-Docs that referenced this issue Mar 18, 2019
* Update Test-DscConfiguration.md

The cmdlet does not return the type `[System.Boolean]` but instead `[System.String]`. More information here PowerShell/DscResource.Template#14

* Fix other version, and fix typo

* Update Test-DscConfiguration.md

* Update Test-DscConfiguration.md

* Update Test-DscConfiguration.md
v-alje pushed a commit to MicrosoftDocs/PowerShell-Docs that referenced this issue Mar 19, 2019
* Update Test-DscConfiguration.md

The cmdlet does not return the type `[System.Boolean]` but instead `[System.String]`. More information here PowerShell/DscResource.Template#14

* Fix other version, and fix typo

* Update Test-DscConfiguration.md

* Update Test-DscConfiguration.md

* Update Test-DscConfiguration.md
johlju added a commit to dsccommunity/SqlServerDsc that referenced this issue Mar 20, 2019
- Changes to SqlServerDsc
  - Added new resources.
    - SqlRSSetup
  - Added helper module DscResource.Common from the repository
    DscResource.Template.
    - Moved all helper functions from SqlServerDscHelper.psm1 to DscResource.Common.
    - Renamed Test-SqlDscParameterState to Test-DscParameterState.
  - Added helper module DscResource.LocalizationHelper from the repository
    DscResource.Template, this replaces the helper module CommonResourceHelper.psm1.
  - Cleaned up unit tests, mostly around loading cmdlet stubs and loading
    classes stubs, but also some tests that were using some odd variants.
  - Fix all integration tests according to issue [PowerShell/DscResource.Template#14](PowerShell/DscResource.Template#14).
- Changes to SqlSetup
  - Moved some resource specific helper functions to the new helper module
    DscResource.Common so they can be shared with the new resource SqlRSSetup.
  - Improved verbose messages in Test-TargetResource function to more
    clearly tell if features are already installed or not.
  - Refactored unit tests for the functions Test-TargetResource and
    Set-TargetResource to improve testing speed.
  - Modified the Test-TargetResource and Set-TargetResource to not be
    case-sensitive when comparing feature names. *This was handled
    correctly in real-world scenarios, but failed when running the unit
    tests (and testing casing).*
- Changes to SqlDatabaseDefaultLocation
  - No longer does the Test-TargetResource fail on the second test run
    when the backup file path was changed, and the path was ending with
    a backslash (issue #1307).
gaelcolas pushed a commit that referenced this issue Mar 22, 2019
* Changes to DscResource.Template
- Update the integrate test `'Should return $true when Test-DscConfiguration
  is run'` that did not fail correctly if `Test-DscConfiguration` returned
  'False' (issue #14).
- Updated some comments in files that wrongly referenced a non-existent
  module.

* Fix examples to correct template version
kaypeter87 added a commit to kaypeter87/PowerShell-Docs that referenced this issue Aug 26, 2019
* typo: Scipt -> Script (MicrosoftDocs#3956)

* typo: Psdrive -> PSDrive (MicrosoftDocs#3959)

* typo: Whatif -> WhatIf (MicrosoftDocs#3961)

* fix: Fileinfo -> FileInfo (MicrosoftDocs#3964)

- Icomparable -> IComparable
- Switchparameter -> SwitchParameter
- Cmdletprovider.Invokeprovider*
- Pathintrinsics.Getresolvedproviderpathfrompspath
- Getunresolvedproviderpathfrompspath

* typo: adpater -> adapter (MicrosoftDocs#3965)

* typo: Automation.Errorrecord -> Automation.ErrorRecord (MicrosoftDocs#3955)

- system.String
- Fullyqualifiederrorid*
- Categoryinfo*
- Errordetails*
- Invocationinfo*
- Targetobject*
- Getresourcestring*

* typo: Psobject -> PSObject (MicrosoftDocs#3958)

* typo: Spoolsrv -> Spoolsv (MicrosoftDocs#3962)

* typo: statment -> statement (MicrosoftDocs#3966)

* typo: Envrionment -> Environment (MicrosoftDocs#3967)

* typo: Instumentation -> Instrumentation (MicrosoftDocs#3968)

* typo: connnection -> connection (MicrosoftDocs#3970)

* typo: Triger -> Trigger (MicrosoftDocs#3971)

* fix: Escapped markdown links (MicrosoftDocs#3972)

- "How to Add Checkpoints to a Workflow" appears to be dead

* typo: subcriber -> subscriber (MicrosoftDocs#3973)

* typo: configrugation -> configuration (MicrosoftDocs#3974)

* typo: PowerShelll -> PowerShell (MicrosoftDocs#3975)

* typo: Staus -> Status (MicrosoftDocs#3978)

* typo: charcter -> character (MicrosoftDocs#3979)

* typo: ISEincludes -> ISE includes (MicrosoftDocs#3976)

* typo: paremter -> parameter (MicrosoftDocs#3977)

* typo: Opption -> Option (MicrosoftDocs#3980)

* typo: Opption -> Option

* typo: Cannonical -> Canonical

* typo: Manament -> Management (MicrosoftDocs#3981)

* typo: packkage -> package

* typo: Manament -> Management

* typo: Ihis -> This (MicrosoftDocs#3982)

* typo: carachters -> characters (MicrosoftDocs#3983)

* typo: reuturn -> return (MicrosoftDocs#3984)

* typo: Specififes -> Specifies (MicrosoftDocs#3985)

* typo: soure -> source (MicrosoftDocs#3986)

* typo: Fabrkiam -> Fabrikam (MicrosoftDocs#3987)

* typo: statetement -> statement (MicrosoftDocs#3988)

* typo: desribed -> described (MicrosoftDocs#3989)

* typo: occurence -> occurrence (MicrosoftDocs#3991)

* typo: informations -> information (MicrosoftDocs#3992)

* typo: Programer -> Programmer (MicrosoftDocs#3993)

* typo: PSsession -> PSSession (MicrosoftDocs#3995)

* typo: pararm -> param (MicrosoftDocs#3996)

* typo: propety -> property

* typo: pararm -> param

* typo: paren -> parenthesis (MicrosoftDocs#3994)

* Fix headers: "Autogenerated Elements of Comment-Based Help" (MicrosoftDocs#4000)

* Fix example: "Controlling Format-Wide Display with Column" (MicrosoftDocs#4007)

* Update about_Foreach.md (MicrosoftDocs#4002)

The last example was not working when the parameter was used and not a pipeline to call the function.
Please see the original and the updated version with pester tests here https://github.com/sassdawe/PowerShell/tree/master/from-docs/about_foreach
I also added some write-verbose

* Fix typo; remove wrong word (MicrosoftDocs#4011)

* minor edits

* fixing module landing pages (MicrosoftDocs#4012)

* Update Test-DscConfiguration.md (MicrosoftDocs#4010)

* Update Test-DscConfiguration.md

The cmdlet does not return the type `[System.Boolean]` but instead `[System.String]`. More information here PowerShell/DscResource.Template#14

* Fix other version, and fix typo

* Update Test-DscConfiguration.md

* Update Test-DscConfiguration.md

* Update Test-DscConfiguration.md

* fix branding of TFS (MicrosoftDocs#4016)

* chore: Add EditorConfig for whitepace in IDEs (MicrosoftDocs#3883)

* Reformatting examples for readability and flow (MicrosoftDocs#4024)

* fix formatting

* more style fixes

* Modify get-help code line (MicrosoftDocs#4027)

The command should be **PS>get-help about_providers**

* add note to reflect that .Net Core doesn't encrypt contents of securestring (MicrosoftDocs#4030)

* add note to reflect that .Net Core doesn't encrypt contents of secure string

* fix link to remarks in .net doc

* Fixes MicrosoftDocs#4028 - add *-computer cmdlets to breaking changes (MicrosoftDocs#4031)

* Fixes MicrosoftDocs#4028 - add *-computer cmdlets to breaking changes

* Update breaking-changes-ps6.md

* updated to reflect that SecureString is only not encrypted on non-Windows systems (MicrosoftDocs#4034)

* Add docs for Depth on ConvertFrom-Json (MicrosoftDocs#4037)

* Add docs for Depth on ConvertFrom-Json

* update date

* Update Learning-PowerShell-Names.md (MicrosoftDocs#4038)

copyedit in the Note regarding running sc.exe

* delete newline after synopsis (MicrosoftDocs#4040)

* Add description and example about null paths for `Test-Path` (MicrosoftDocs#4036)

* Add description and example about null paths

* Update examples

* Update Test-Path.md

* PS Gallery- Adds mention of New OS Filters (MicrosoftDocs#4033)

* Update publishing-guidelines.md

* Update publishing-guidelines.md

* Update publishing-guidelines.md

* Document how to get hardlink information MicrosoftDocs#3665 (MicrosoftDocs#4044)

* Add examples to document MicrosoftDocs#3665

* update date metadata

* fix example text to match PowerShell example (MicrosoftDocs#4052)

* fix example text to match PowerShell example

* fix all versions

* document how fast you must update to the latest patch. (MicrosoftDocs#4050)

* update docs for -CustomPipeName (MicrosoftDocs#4032)

* update docs for -CustomPipeName

* typo

* warning fixed

* update date and common parameters

* delete new line after Synopsis

* document how experimental features are supported (MicrosoftDocs#4046)

* document how experimental features are supported

* Update PowerShell-Support-Lifecycle.md

* Fix the default formatting for FileSystemInfo object (MicrosoftDocs#4049)

* Closes MicrosoftDocs#4005. Added info to Set-ExecutionPolicy for non-Windows platforms (MicrosoftDocs#4054)

* Copyedits, style, rewrote examples

* fixed broken link

* updated about_Execution_Policies based on review comments

* Fix MicrosoftDocs#3963 - note Paging is not supported by ISE (MicrosoftDocs#4055)

* Fix MicrosoftDocs#3963 - note Paging is not supported by ISE

* attempt to fix build error

* fix build error

* fix formatting and add examples (MicrosoftDocs#4057)

* fix formatting and add examples

* removed ref to task manager - added input type

* Fixes MicrosoftDocs#4018, Fixes MicrosoftDocs#4019. Updated Description and ComputerName parameter for Get-EventLog. (MicrosoftDocs#4059)

* updated content, style

* Updated based on review comments

* Grammar Change (MicrosoftDocs#4060)

Configuring to configure

* Update social-media-feedback.md to indictate LiveFyre is out of Suppport  (MicrosoftDocs#4064)

* Update social-media-feedback.md

* Update social-media-feedback.md

Fixing render formatting for the Important bubble.

* editorial and formatting fixes (MicrosoftDocs#4065)

* fix formatting and add examples

* removed ref to task manager - added input type

* editorial and formatting fixes

* review feedback

* editorial and formatting fixes

* review feedback

* fixed missing periods......

* freaking periods!

* washing windows

* Fix MicrosoftDocs#3815 (MicrosoftDocs#4067)

* Added description for -ReplyTo parameter (MicrosoftDocs#4035)

* Update the doc for Start-Job (MicrosoftDocs#4068)

* Update DebugPreference description and style changes (MicrosoftDocs#4048)

* Udpate DebugPreference description and style changes

* Address Sean's comments

* Update about_CommonParameters.md

* Update Disable-PSRemoting cmdlet document for PSCore6 (MicrosoftDocs#4047)

* Update for PSCore6

* Update Disable-PSRemoting.md

* Address review feedback

* Update `get-culture` doc for new parameters (MicrosoftDocs#4069)

* update doc for new parameters

* Update Get-Culture.md

* fixed code sample, copyedits, style (MicrosoftDocs#4070)

* add note about -skipcacheck and -skipcncheck for non-Windows (MicrosoftDocs#4071)

* Update Installing-PowerShell-Core-on-Windows.md (MicrosoftDocs#4066)

Remove fixed-version expression and replace to "<version>" and "<os-arch>" because ARM version of PowerShell Core now experimentaly released version 6.1.3 on both x86 and x64.

* Add SkipEditionCheck switch docs, update CompatiblePSEditions docs (MicrosoftDocs#4039)

* Add SkipEditionCheck switch docs, update CompatiblePSEditions docs

* Create about_PowerShell_Editions

* Additions

* Update about_PowerShell_Editions.md

* Final changes

* Update edit dates

* Update module-psedition-support.md

* Update Get-Module.md

* Update Import-Module.md

* sync v6 edits to all versions (MicrosoftDocs#4073)

* Update lifecycle (MicrosoftDocs#4074)

* Update lifecycle doc for 6.2 release

* fix support matrix

* fix typos

* Clarifying where precisely to find the download links

The download links can be hard to find for newcomers, or if there are just a lot of Release Notes present to scroll though.  Since a direct link to the Assets section isn't available, I added verbiage to make it slearer where the customer shoul look.

* Update Installing-PowerShell-Core-on-Windows.md

* Copyedits, style, format

* fix module landing and add release notes

* typo

* typo

* fix MicrosoftDocs#4083 - fix typos and terms (MicrosoftDocs#4085)

* Fixing code sample (MicrosoftDocs#4086)

* Update Get-Content.md (MicrosoftDocs#4090)

typo at Example 2

* Fix MicrosoftDocs#4088 - fix example and styles (MicrosoftDocs#4092)

* Fix MicrosoftDocs#4088 - fix example and styles

* fix typos

* Fix MicrosoftDocs#4088 - define execution policy (MicrosoftDocs#4094)

* Fix MicrosoftDocs#4088 - define execution policy

* fix typo

* Update TOCs for new expando policy (MicrosoftDocs#4096)

* Update TOCs for new expando policy

* fixing more expandos

* deleting obsolete files

* Fixes MicrosoftDocs#4091, typo in Example 2, minor edits. (MicrosoftDocs#4095)

* fixed typo, style, paragraph reflows

* updated the Credential parameter

* minor edit

* copyedits, style (MicrosoftDocs#4098)

* remove blank lines from About.md (MicrosoftDocs#4097)

* remove blank lines

* removed corrupt characters and Windows

* more window cleaning

* more fixes

* more dots

* m.o.r.e.

* fix typo (MicrosoftDocs#4099)

added a space

* invalid character in examples (MicrosoftDocs#4100)

hyphen/dash

* remove highbit chars (MicrosoftDocs#4101)

* remove highbit chars v4

* remove highbit chars v5 (MicrosoftDocs#4103)

* remove highbit chars v5

* fix build errors

* remove highbit chars v51 (MicrosoftDocs#4104)

* Copyedits and style changes for Save-Package, Set-PackageSource (MicrosoftDocs#4106)

* copyedits, style

* fixed heading syntax

* Documentation for accessing errors in catch block (MicrosoftDocs#4107)

* Documentation for accessing errors in catch block

Added a section on how to use `$_` and `$PSItem` within a `catch` block to access information about the error that was thrown.

* Update about_Try_Catch_Finally.md

* Update about_Try_Catch_Finally.md

* add explantion to other versions (MicrosoftDocs#4108)

* add explantion to other versions

* fix verbiage

* made corrections to examples (MicrosoftDocs#4110)

* fixing high bit characters (MicrosoftDocs#4111)

* fixing high bit characters

* fix broken link

* Removed duplicate "for this action" (MicrosoftDocs#4113)

* Update example: "Using Format-Wide" (MicrosoftDocs#4114)

* fix MicrosoftDocs#4102 - remove duplicate text and style edits (MicrosoftDocs#4115)

* fix MicrosoftDocs#4102 - remove duplicate text and style edits

* fix syntax for v3

* Fix MicrosoftDocs#4093 - explain how -Debug changes preference variable (MicrosoftDocs#4116)

* Fix MicrosoftDocs#4093 - explain how -Debug changes preference variable

* update example

* fix typos

* fix prompts

* fix prompts again

* Fix MicrosoftDocs#3907 - added missing hyperlinks (MicrosoftDocs#4117)

* Fix MicrosoftDocs#3907 - added missing hyperlinks

* feedback edits

* Fix MicrosoftDocs#4119 - add missing link (MicrosoftDocs#4123)

* Fix heading levels: samples directory (MicrosoftDocs#4124)

* Fix MicrosoftDocs#4128 - fix path typo in v3-v51 (MicrosoftDocs#4130)

* Fix MicrosoftDocs#3048 & fix MicrosoftDocs#2007 - add MSI properties for install instructions (MicrosoftDocs#4129)

* Fix MicrosoftDocs#3048 & fix MicrosoftDocs#2007 - add MSI properties

* added bookmarks for changed headings

* Fix MicrosoftDocs#4063 - fix Ubuntu 18.04 setup steps & PS vers (MicrosoftDocs#4131)

* Fix MicrosoftDocs#4063 - fix Ubuntu 18.04 setup steps & PS vers

* fix typo

* update package names (MicrosoftDocs#4132)

* Fix MicrosoftDocs#4121 - add breaking change (MicrosoftDocs#4133)

* C77774: Duplicated bookmark not working after transformation md > xlf (MicrosoftDocs#4138)

* C77774: Duplicated bookmark not working after transformation md > xlf

Localization team has reported source content issue that causes localized version to have broken/different format compared to en-us version.

* Update What-s-New-in-Windows-PowerShell-50.md

* Small typo (MicrosoftDocs#4135)

* Small typo

Fixing issue MicrosoftDocs#3999

* Update write-compile-apply-configuration.md

* Update sample: Graphical Date Picker (MicrosoftDocs#4136)

* Fix MicrosoftDocs#3246 - document Stable sorts (MicrosoftDocs#4141)

* Fix MicrosoftDocs#3246 - document Stable sorts

* fix https

* fix typo

* Fixed small space typo (MicrosoftDocs#4142)

* Update lnxGettingStarted.md (MicrosoftDocs#4148)

Removed ":" from PowerShell code.

* Fix MicrosoftDocs#4144 - seconds is now [double] (MicrosoftDocs#4149)

* Fix MicrosoftDocs#4144 - seconds is now [double]

* fix type info

* fix build error

* Update Start-Sleep.md

* enabled toc_preview (MicrosoftDocs#4153)

* enabled toc_preview

* fix typo

* Fix MicrosoftDocs#2695 - add info about numeric literals (MicrosoftDocs#4151)

* Fix MicrosoftDocs#2695 - add info about numeric literals

* fix note block

* review feedback

* review feedback

* fix byte types

* added info about member access (MicrosoftDocs#4156)

* added info about member access

* fix typos

* fix typos

* fix typo

* Fix MicrosoftDocs#3685 (MicrosoftDocs#4161)

* Update "Adding Non-Terminating Error" (MicrosoftDocs#4162)

* Update "Adding Non-Terminating Error"

* Update adding-non-terminating-error-reporting-to-your-cmdlet.md

* Fix: capitalisation (MicrosoftDocs#4164)

* Update about_Execution_Policies.md (MicrosoftDocs#4167)

Grammar update. Redundant "the" in the sentence.

* Enable parallel runs of platyPS per version (MicrosoftDocs#4171)

* make building versions of docs in parallel

* fix typo in .gitignore
update build.ps1 to build the different versions in parallel

* install ThreadJob if not available

* fix kbd typo

* Fix MicrosoftDocs#3773 - add runasuser (MicrosoftDocs#4174)

* Fix MicrosoftDocs#3483 - update support information (MicrosoftDocs#4175)

* Fix MicrosoftDocs#3483 - update support information

* updated ver info and broken links

* Fix MicrosoftDocs#4146 - add whats new doc (MicrosoftDocs#4170)

* Fix MicrosoftDocs#4146 - add whats new doc

* acrolinx edit

* fix broken link

* minor edit

* added items from changelogs

* fix typo

* more typo fixes

* reordered headings

* fix backticks

* Fix MicrosoftDocs#4168 - clarify $input (MicrosoftDocs#4182)

* Fix MicrosoftDocs#2937 - add Encoding param codepage support (MicrosoftDocs#4178)

* Fix MicrosoftDocs#2937 - add Encoding param codepage support

* fix url

* Fix MicrosoftDocs#4176 - example 4 format errors (MicrosoftDocs#4180)

* Fix MicrosoftDocs#4176 - example 4 format errors

* feedback

* Fix MicrosoftDocs#4118 - remove invalid statement (MicrosoftDocs#4181)

* Fix MicrosoftDocs#4118 - remove invalid statement

* feedback

* Fix RequiredModules example (MicrosoftDocs#4190)

Replace comma's in RequiredModules hash table with a semicolon.

* Update .openpublishing.publish.config.json (MicrosoftDocs#4193)

* Fix MicrosoftDocs#4163 - add link to mode attributes (MicrosoftDocs#4194)

* Fix MicrosoftDocs#4163 - add link to mode attributes

* Fix MicrosoftDocs#4163 - add link to mode attributes

* add example (MicrosoftDocs#4195)

* Update "Cmdlet Input Processing Methods" (MicrosoftDocs#4186)

* Update "Cmdlet Input Processing Methods"

* Update cmdlet-input-processing-methods.md

* Fix MicrosoftDocs#4172 - name of firewall cpl changed (MicrosoftDocs#4196)

* Fix MicrosoftDocs#4172 - name of firewall cpl changed

* fix typo

* Remove specified package version after bug fix

* Fix MicrosoftDocs#4191 Fix MicrosoftDocs#4192 - correct encoding (MicrosoftDocs#4201)

* fix encoding - part 1 (MicrosoftDocs#4202)

* fix encoding - part 2 (MicrosoftDocs#4203)

* fix encoding - part 2

* feedback fixes

* fix encoding - part 3 (MicrosoftDocs#4204)

* fix encoding - part 3

* fix accepted values

* Fixes MicrosoftDocs#4155 - fix encoding - part 4 (MicrosoftDocs#4205)

* fix encoding - part 4

* fix accepted values

* fix accepted values (MicrosoftDocs#4207)

* Fix MicrosoftDocs#648 - update syntax (MicrosoftDocs#4208)

* Fix MicrosoftDocs#4191, Fix MicrosoftDocs#4192 - Update accepted values on -Encoding (MicrosoftDocs#4209)

* Fix MicrosoftDocs#4213 - fix typo and style clean up (MicrosoftDocs#4214)

* Fix MicrosoftDocs#4213 - fix typo and style clean up

* fix typos

* Fix MicrosoftDocs#813 - Add ListEntry to ListControl (MicrosoftDocs#4215)

* Fix MicrosoftDocs#2955, Fix MicrosoftDocs#1940 - update Format-Hex (MicrosoftDocs#4219)

* Fix triggers for CI (MicrosoftDocs#4221)

* Update "Host Quickstart" (MicrosoftDocs#4217)

* update libicu pkg name (MicrosoftDocs#4223)

* Fix MicrosoftDocs#4224 - default encoding to ASCII (MicrosoftDocs#4225)

* Fix MicrosoftDocs#4224 - default encoding to ASCII

* typo

* Batch fixing line spacing (MicrosoftDocs#4229)

* Fixes MicrosoftDocs#4220 - Fix Example 6 (Copy Property) (MicrosoftDocs#4226)

* Fixes MicrosoftDocs#4220 - Fix Example 6 (Copy Property)

* Editorial review

* Updating Group-Object cmdlet (MicrosoftDocs#4228)

* Updating Group-Object cmdlet

* Editorial review

*  Fixes MicrosoftDocs#4160 - Add example for scriptblock expresion. Expanded hashtable calcuated property syntax (MicrosoftDocs#4227)

* Fixes MicrosoftDocs#4160 - Add example for scriptblock expresion. Expanded hashtable calcuated property syntax

* Fixing Spacing

* Editorial review

* Fix MicrosoftDocs#3673 - explain Out-Default (MicrosoftDocs#4230)

* Fix MicrosoftDocs#3673 - explain Out-Default

* add links

* remove prompt

* Fix MicrosoftDocs#4231 - Correct digit and other markdown cleanup (MicrosoftDocs#4232)

* Fix MicrosoftDocs#4236 - Reword (MicrosoftDocs#4237)

* Fixing batch automation repair issue ms.date (MicrosoftDocs#4242)

* Updating Set-Date (MicrosoftDocs#4241)

* Updating New-TimeSpan (MicrosoftDocs#4244)

* Updating rename computer (MicrosoftDocs#4245)

* Add known troubleshooting case for Pull Server (MicrosoftDocs#4250)

where the certificate common name is different than the DNS name.  
fyi @Austinm2559

* Update "Cmdlet Overview" (MicrosoftDocs#4252)

* Update "Events01 Sample" (MicrosoftDocs#4253)

* Update "ScriptBlock Element for GroupBy" (MicrosoftDocs#4254)

* Remove Show-Command link in v6 doc (MicrosoftDocs#4255)

* Fix links for "How to Write a Module Manifest" (MicrosoftDocs#4256)

* Document workaround for tab function completion (MicrosoftDocs#4257)

* Document workaround for tab function completion

* Update role-capabilities.md

* Indicate what LCM is an abbreviation (MicrosoftDocs#4258)

Indicate what LCM is an abbreviation for before starting to use the abbreviation

* Add information about http proxy (MicrosoftDocs#4260)

* fix MicrosoftDocs#4238 - update command line usage (MicrosoftDocs#4259)

* fix MicrosoftDocs#4328 - update command line usage

* fix typos

* update toc to match title

* fix typo

* Update Installing-PowerShell-Core-on-macOS.md (MicrosoftDocs#4267)

This pull request:

- suggests the first section of this article to show links for the instructions on the installation without brew.
- is in regard to https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos.

I am grateful for this document and for the community. Best regards,

* Fix MicrosoftDocs#4262 - remove service (MicrosoftDocs#4269)

* Fix MicrosoftDocs#4262 - remove service

* fix typos

* update runas

* Fix MicrosoftDocs#4268 - add note about hyphen (MicrosoftDocs#4270)

* Fix MicrosoftDocs#4263 - fix path modification example (MicrosoftDocs#4271)

* Add UFormat specifiers table (MicrosoftDocs#4266)

* Add UFormat specifiers table

* Update Get-Date.md

* force TOC update

* Update docfx.json (MicrosoftDocs#4274)

* Fix incomplete sentence (MicrosoftDocs#4277)

Fix incomplete sentence in `writing-a-windows-powershell-host-application.md`.

* Fix $OutputEncoding default value (MicrosoftDocs#4279)

* Replace example with working one (MicrosoftDocs#4278)

* Replace example with working one

The following example passes both the `Name` and `Id` parameters to `Get-Process`:

```
                PowerShell.Create().AddCommand("Get-Process")
                   .AddParameter("Name", "PowerShell")
                   .AddParameter("Id", "12768")
                   .Invoke();
```

However, both of those parameters do not appear to be supported simultaneously.

I've replaced the example with the following one:

```
                PowerShell.Create().AddCommand("Get-ChildItem")
                    .AddParameter("Path", @"c:\Windows")
                    .AddParameter("Filter", "*.exe")
                    .Invoke();
```

* Update windows-powershell-host-quickstart.md

* Update PowerShell-Support-Lifecycle.md (MicrosoftDocs#4272)

* Update PowerShell-Support-Lifecycle.md

Update mention of PSCore 6.3 to be 7

* Remove image that is now outdated

* Fix MicrosoftDocs#4280 fix MicrosoftDocs#4281 - fix typos (MicrosoftDocs#4282)

* Fixes MicrosoftDocs#3709 - rewrite about_Continue for clarity (MicrosoftDocs#4284)

* Fixes MicrosoftDocs#3391 - Correct Format-List Property values (MicrosoftDocs#4286)

* Fix MicrosoftDocs#4233 - add link to WMF docs (MicrosoftDocs#4287)

* Fixes MicrosoftDocs#3014 - Clarify delay bind script blocks (MicrosoftDocs#4285)

* Fixes MicrosoftDocs#3014 - Clarify delay bind script blocks

* Editorial review

* Disable incremental build temporary for powershell reference build issue (MicrosoftDocs#4289)

* Fixes MicrosoftDocs#4062 - Clarify Property, Word, Character, and Line parameters.… (MicrosoftDocs#4291)

* Fixes MicrosoftDocs#4062 - Clarify Property, Word, Character, and Line parameters. Add new Examples. Rewrite for clarituy

* Editorial Review

* Editorial Review

* Editorial Review

* Editorial Review

* Fixes MicrosoftDocs#3951 - Updates count property in 6.2 and rewrite examples for … (MicrosoftDocs#4290)

* Fixes MicrosoftDocs#3951 - Updates count property in 6.2 and rewrite examples for style

* Editorial Review

* Editorial Review

* Editorial Review

* Clarify automatic variable usage in Microsoft.PowerShell.Core\Start-Job -ScriptBlock (MicrosoftDocs#4294)

* Clarify which automatic variable is populated with input for the Microsoft.PowerShell.Core\Start-Job -ScriptBlock parameter description

* Add example showing how to pass and access input in script block for the Microsoft.PowerShell.Core\Start-Job command

* removed index links to fix warnings (MicrosoftDocs#4295)

* removed index links to fix warninds

* more bookmarks

* Add note about javascript might run (MicrosoftDocs#4297)

* Add note about javascript might run
Address MicrosoftDocs#4296

* update comment based on PR feedback

* Fixing Dead Link (MicrosoftDocs#4300)

* Fixing Dead Link

The link *How to Declare Input Validation Rules* under Remarks, bullet point #1 was pointing to a dead link. I have modified it to point to the most relevant reference page I could find on that topic.

* Update validatelength-attribute-declaration.md

* Fixes MicrosoftDocs#4189 - Rewrite all provider cmdlets for Filter/Credential clarity (MicrosoftDocs#4299)

* Fixes MicrosoftDocs#4189 - Rewrite all provider cmdlets for Filter/Credential clarity

* Editorial Review

* Editorial Review

* Editorial Review

* Editorial Review

* Update Get-Content.md

* Update Clear-Content.md

* Resolving all duplicate yaml blocks (MicrosoftDocs#4302)

* Resolving all duplicate yaml blocks

* Unstaging

* Unstaging

* links

* Fixing yaml blocks

* Fixing yaml again

* review

* Change 6.next to 7 for issue template (MicrosoftDocs#4304)

* Replace 6.x version with 7 (MicrosoftDocs#4305)

* Fixed broken md around url (MicrosoftDocs#4310)

* Update docs on how to add your own powershell executables (MicrosoftDocs#4312)

* Update docs on how to add your own powershell executables

* Update using-vscode.md

* WMF content reorg (MicrosoftDocs#4307)

* WMF content reorg

* fix broken links

* delete unneeded images

* updates and redirects

* adding redirections

* fix renamed file link

* expand what's new node of TOC

* flatten jea toc and replace hemant (MicrosoftDocs#4314)

* Update using-vscode.md

* Fixes MicrosoftDocs#4306 - Update runasuser with SeInteractiveLogonRight qualifier (MicrosoftDocs#4320)

* fix note blocks

* Fixes MicrosoftDocs#3604, Fixes MicrosoftDocs#3603 - Document ArgumentCompleter (MicrosoftDocs#4321)

* Fixes MicrosoftDocs#4152 - Update examples of Test-Connection with sample output for Traceroute (MicrosoftDocs#4322)

* Update-Help - updated style, format, and copyedited (MicrosoftDocs#4308)

* Updated style, format, and copyedited

* additional changes to style, format, and copyedits

* Migration from MSDN missed a spot (MicrosoftDocs#4318)

* Add a missing ms.assetid

* Actually fix that link

* Update installing-the-windows-powershell-sdk.md

* Fix MicrosoftDocs#4105 - explain wildcard execution (globbing) (MicrosoftDocs#4324)

* Fix MicrosoftDocs#4105 - explain wildcard execution (globbing)

* review feedback

* more review feedback

* Update reference/3.0/Microsoft.PowerShell.Core/About/about_Command_Precedence.md

Co-Authored-By: Travis Plunk <[email protected]>

* more review feedback

* Update understanding-a-windows-powershell-module.md (MicrosoftDocs#4326)

Typo: missing word.

* Issue 4311, copyedits, style, format (MicrosoftDocs#4325)

* Fixes MicrosoftDocs#4264 Explain Exclude with Registry keys (MicrosoftDocs#4327)

* Attempt to automate cleanup of Windows PowerShell references (MicrosoftDocs#4330)

* Attempt to automate cleanup of Windows PowerShell references

* Attempt to automate cleanup of Windows PowerShell references

* Editorial Review1

* Fixing syntax issue - missing quote mark (MicrosoftDocs#4332)

There was a missing quote mark making the example invalid, and also messing up the syntax highlighting when viewing the document.

* automating prompt fixes (MicrosoftDocs#4334)

* automating prompt fixes

* automating prompt fixes

* automating prompt fixes

* Update about_Alias_Provider.md

* copyedits, style, format (MicrosoftDocs#4336)

* Update the README to point to current CI builds (MicrosoftDocs#4338)

* Fixes MicrosoftDocs#4341 - Corrected ValidateRangeKind Enum (MicrosoftDocs#4344)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug The issue is a bug. tests The issue or pull request is about tests only.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant