Updates from: 07/03/2021 03:13:10
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Management Get Computerinfo (5.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Management/Get-ComputerInfo.md
--- external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
-keywords: powershell,cmdlet
Locale: en-US Module Name: Microsoft.PowerShell.Management Previously updated : 06/09/2017 Last updated : 07/02/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-computerinfo?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: Get-ComputerInfo
This cmdlet was introduced in Windows PowerShell 5.1.
### Example 1: Get all computer properties
+This command gets all system and operating system properties from the computer.
+ ```powershell Get-ComputerInfo ```
-This command gets all system and operating system properties from the computer.
+### Example 2: Get all computer version properties
-### Example 2: Get all computer operating system properties
+This command gets all version properties from the computer.
```powershell
-Get-ComputerInfo -Property "os*"
+Get-ComputerInfo -Property "*version"
```
-This command gets all operating system properties from the computer.
+```Output
+WindowsCurrentVersion : 6.3
+WindowsVersion : 2009
+BiosBIOSVersion : {LENOVO - 1380, N1FET64W (1.38 ), Lenovo - 1380}
+BiosEmbeddedControllerMajorVersion : 1
+BiosEmbeddedControllerMinorVersion : 17
+BiosSMBIOSBIOSVersion : N1FET64W (1.38 )
+BiosSMBIOSMajorVersion : 2
+BiosSMBIOSMinorVersion : 8
+BiosSystemBiosMajorVersion : 1
+BiosSystemBiosMinorVersion : 38
+BiosVersion : LENOVO - 1380
+OsVersion : 10.0.19043
+OsCSDVersion :
+OsServicePackMajorVersion : 0
+OsServicePackMinorVersion : 0
+```
## PARAMETERS
Microsoft.PowerShell.Management Get Computerinfo (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Management/Get-ComputerInfo.md
--- external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
-keywords: powershell,cmdlet
Locale: en-US Module Name: Microsoft.PowerShell.Management Previously updated : 06/09/2017 Last updated : 07/02/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-computerinfo?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: Get-ComputerInfo
This cmdlet was introduced in Windows PowerShell 5.1.
### Example 1: Get all computer properties
+This command gets all system and operating system properties from the computer.
+ ```powershell Get-ComputerInfo ```
-This command gets all system and operating system properties from the computer.
+### Example 2: Get all computer version properties
-### Example 2: Get all computer operating system properties
+This command gets all version properties from the computer.
```powershell
-Get-ComputerInfo -Property "os*"
+Get-ComputerInfo -Property "*version"
```
-This command gets all operating system properties from the computer.
+```Output
+WindowsCurrentVersion : 6.3
+WindowsVersion : 2009
+BiosBIOSVersion : {LENOVO - 1380, N1FET64W (1.38 ), Lenovo - 1380}
+BiosEmbeddedControllerMajorVersion : 1
+BiosEmbeddedControllerMinorVersion : 17
+BiosSMBIOSBIOSVersion : N1FET64W (1.38 )
+BiosSMBIOSMajorVersion : 2
+BiosSMBIOSMinorVersion : 8
+BiosSystemBiosMajorVersion : 1
+BiosSystemBiosMinorVersion : 38
+BiosVersion : LENOVO - 1380
+OsVersion : 10.0.19043
+OsCSDVersion :
+OsServicePackMajorVersion : 0
+OsServicePackMinorVersion : 0
+```
## PARAMETERS
Microsoft.PowerShell.Management Get Computerinfo (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Management/Get-ComputerInfo.md
--- external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
-keywords: powershell,cmdlet
Locale: en-US Module Name: Microsoft.PowerShell.Management Previously updated : 06/09/2017 Last updated : 07/02/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-computerinfo?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: Get-ComputerInfo
This cmdlet was introduced in Windows PowerShell 5.1.
### Example 1: Get all computer properties
+This command gets all system and operating system properties from the computer.
+ ```powershell Get-ComputerInfo ```
-This command gets all system and operating system properties from the computer.
+### Example 2: Get all computer version properties
-### Example 2: Get all computer operating system properties
+This command gets all version properties from the computer.
```powershell
-Get-ComputerInfo -Property "os*"
+Get-ComputerInfo -Property "*version"
```
-This command gets all operating system properties from the computer.
+```Output
+WindowsCurrentVersion : 6.3
+WindowsVersion : 2009
+BiosBIOSVersion : {LENOVO - 1380, N1FET64W (1.38 ), Lenovo - 1380}
+BiosEmbeddedControllerMajorVersion : 1
+BiosEmbeddedControllerMinorVersion : 17
+BiosSMBIOSBIOSVersion : N1FET64W (1.38 )
+BiosSMBIOSMajorVersion : 2
+BiosSMBIOSMinorVersion : 8
+BiosSystemBiosMajorVersion : 1
+BiosSystemBiosMinorVersion : 38
+BiosVersion : LENOVO - 1380
+OsVersion : 10.0.19043
+OsCSDVersion :
+OsServicePackMajorVersion : 0
+OsServicePackMinorVersion : 0
+```
## PARAMETERS
Microsoft.PowerShell.Management Get Computerinfo (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Management/Get-ComputerInfo.md
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Management Previously updated : 06/09/2017 Last updated : 07/02/2021 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-computerinfo?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: Get-ComputerInfo
This cmdlet was introduced in Windows PowerShell 5.1.
### Example 1: Get all computer properties
+This command gets all system and operating system properties from the computer.
+ ```powershell Get-ComputerInfo ```
-This command gets all system and operating system properties from the computer.
+### Example 2: Get all computer version properties
-### Example 2: Get all computer operating system properties
+This command gets all version properties from the computer.
```powershell
-Get-ComputerInfo -Property "os*"
+Get-ComputerInfo -Property "*version"
```
-This command gets all operating system properties from the computer.
+```Output
+WindowsCurrentVersion : 6.3
+WindowsVersion : 2009
+BiosBIOSVersion : {LENOVO - 1380, N1FET64W (1.38 ), Lenovo - 1380}
+BiosEmbeddedControllerMajorVersion : 1
+BiosEmbeddedControllerMinorVersion : 17
+BiosSMBIOSBIOSVersion : N1FET64W (1.38 )
+BiosSMBIOSMajorVersion : 2
+BiosSMBIOSMinorVersion : 8
+BiosSystemBiosMajorVersion : 1
+BiosSystemBiosMinorVersion : 38
+BiosVersion : LENOVO - 1380
+OsVersion : 10.0.19043
+OsCSDVersion :
+OsServicePackMajorVersion : 0
+OsServicePackMinorVersion : 0
+```
## PARAMETERS
community 2020 Updates https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/community/2020-updates.md
issues. Thank you!
## 2020-March
-###
- - New documents - The PowerShell Docs community pages - [Community resources](/powershell/scripting/community/community-support) page
issues. Thank you!
## 2020-February
-###
- - New documents - [about_Parameter_Sets](/powershell/module/microsoft.powershell.core/about/about_parameter_sets) - [Release history of modules and cmdlets](/powershell/scripting/whats-new/cmdlet-versions)
issues. Thank you!
## 2020-January
-###
- - New documents - [about_Windows_PowerShell_Compatibility](/powershell/module/microsoft.powershell.core/about/about_Windows_PowerShell_Compatibility) - PowerShell 7 documentation updates
community 2021 Updates https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/community/2021-updates.md
--- Title: What's New in PowerShell-Docs for 2021 description: List of changes to the PowerShell documentation for 2021 Previously updated : 06/01/2021 Last updated : 07/02/2021 --- # What's new in PowerShell Docs for 2021
contributions from the community.
Help us make the documentation better for you. Read the [Contributor's Guide][contrib] to learn how to get started.
+## 2021-June
+
+New content
+
+- [about_Intrinsic_Members](/powershell/module/microsoft.powershell.core/about/about_intrinsic_members)
+- [about_Booleans](/powershell/module/microsoft.powershell.core/about/about_booleans)
+
+Content updates
+
+- Converted [about_remote_faq](/powershell/scripting/learn/remoting/powershell-remoting-faq) to new
+ Yaml format and moved to conceptual TOC
+- Moved **PSDesiredStateConfiguration** out of 7.2 docs and into PowerShell-Docs-Modules
+ - DSC is being removed from PowerShell to become an optional module that is loaded from the
+ PowerShell Gallery
+ - Long-term plan is to move all DSC documentation out of PowerShell-Docs into a new repository for
+ DSC content
+- Totally rewrote the PowerShell release notes to summarize the current state, making it easier for
+ users to find the information without having to read every release note.
+ - [Differences between Windows PowerShell 5.1 and PowerShell (core) 7.x](/powershell/scripting/whats-new/differences-from-windows-powershell)
+ - [PowerShell differences on non-Windows platforms](/powershell/scripting/whats-new/unix-support)
+- PowerShell 7.2-preview.7 documentation updates
+
+### Top Community Contributors
+
+GitHub stats
+
+- 43 PRs merged (1 from Community)
+- 36 issues opened (32 from Community)
+- 49 issues closed (41 Community issues closed)
+
+The following people have contributed to PowerShell docs by submitting pull requests or filing
+issues. Thank you!
+
+| GitHub Id | PRs merged | Issues opened |
+| ---------------------- | :--------: | :-----------: |
+| rkeithhill | 1 | |
+| frenchiveruti | | 2 |
+| paulaustin-automutatio | | 2 |
+| ringerc | | 2 |
+| trollyanov | | 2 |
+| UberKluger | | 2 |
+ ## 2021-May New Content
community Overview https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/community/contributing/overview.md
Thank you for your support of PowerShell!
The Contributor's Guide is a collection of articles that describe the tools and processes we use to create documentation at Microsoft. Some of these guides cover information that is common to any
-documentation set published to [docs.microsoft.com][docs]. Some of the guides are specific to how we
-write documentation for PowerShell.
+documentation set published to `docs.microsoft.com`. Some of the guides are specific to how we write
+documentation for PowerShell.
The common articles are available in our centralized [Contributor's Guide][contribute]. The PowerShell-specific guides are available here.
Additional resources
<!--link refs--> [cla]: https://cla.microsoft.com/ [contribute]: /contribute/
-[docs]: https://docs.microsoft.com/
[file-an-issue]: file-an-issue.md [posh-git]: https://www.powershellgallery.com/packages/posh-git [psdocs]: /powershell
community Hall Of Fame https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/community/hall-of-fame.md
Pull Requests help us fix those issues and make the documentation better for eve
| Docs PRs Merged | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | Grand Total | | --------------- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ----------: |
-| Community | 3 | 194 | 446 | 467 | 321 | 162 | 42 | 1635 |
+| Community | 3 | 194 | 446 | 467 | 321 | 162 | 37 | 1630 |
| matt9ucci | | | 157 | 80 | 30 | 1 | 2 | 270 | | nschonni | | | | 14 | 138 | 10 | | 162 | | kiazhi | | 25 | 78 | 12 | | | | 115 |
Pull Requests help us fix those issues and make the documentation better for eve
| NReilingh | | 2 | | 13 | 3 | | | 18 | | it-praktyk | | | | 16 | 1 | | | 17 | | vors | | 15 | 1 | | | | | 16 |
-| kvprasoon | | 2 | 1 | 7 | 2 | 2 | 2 | 16 |
| markekraus | | | 11 | 5 | | | | 16 |
-| skycommand | | | 1 | 3 | 3 | 6 | | 13 |
+| kvprasoon | | 2 | 1 | 7 | 2 | 2 | | 14 |
| purdo17 | | | | 13 | | | | 13 |
+| skycommand | | | 1 | 3 | 3 | 6 | | 13 |
| k-takai | | | | 5 | 1 | 7 | | 13 | | PlagueHO | | 10 | | | 1 | | | 11 | | exchange12rocks | | | 7 | 3 | | | 1 | 11 |
GitHub issues help us identify errors and gaps in our documentation.
| Docs Issues Opened | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | Grand Total | | ------------------ | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ----------: |
-| Community | 3 | 54 | 95 | 213 | 575 | 584 | 178 | 1702 |
-| mklement0 | | | 19 | 60 | 56 | 61 | 13 | 209 |
-| jszabo98 | | | | 2 | 15 | 6 | 1 | 24 |
+| Community | 3 | 54 | 95 | 213 | 575 | 584 | 210 | 1734 |
+| mklement0 | | | 19 | 60 | 56 | 61 | 14 | 210 |
| iSazonov | | | 1 | 4 | 10 | 8 | 1 | 24 |
-| juvtib | | | | | | 15 | 6 | 21 |
+| jszabo98 | | | | 2 | 15 | 6 | 1 | 24 |
+| juvtib | | | | | | 15 | 7 | 22 |
| doctordns | | | 5 | 3 | 5 | 7 | | 20 | | KirkMunro | | | | 7 | 7 | 1 | | 15 | | alexandair | | 9 | 4 | 2 | | | | 15 |
dev-cross-plat Using Vscode https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/dev-cross-plat/vscode/using-vscode.md
extension for Visual Studio Code:
- [Debugging Visual Studio Code Guidance][psdbgblog] - [Debugging PowerShell in Visual Studio Code][psdbg-gh] - [Get started with PowerShell development in Visual Studio Code][getting-started]-- [Visual Studio Code editing features for PowerShell development ΓÇô Part 1][editing-part1]-- [Visual Studio Code editing features for PowerShell development ΓÇô Part 2][editing-part2]-- [Debugging PowerShell script in Visual Studio Code ΓÇô Part 1][debugging-part1]-- [Debugging PowerShell script in Visual Studio Code ΓÇô Part 2][debugging-part2]
+- [Visual Studio Code editing features for PowerShell development - Part 1][editing-part1]
+- [Visual Studio Code editing features for PowerShell development - Part 2][editing-part2]
+- [Debugging PowerShell script in Visual Studio Code - Part 1][debugging-part1]
+- [Debugging PowerShell script in Visual Studio Code - Part 2][debugging-part2]
## PowerShell extension project source code
If you're interested in contributing, Pull Requests are greatly appreciated. Fol
[getting-started]: https://devblogs.microsoft.com/scripting/get-started-with-powershell-development-in-visual-studio-code/ [psdbgblog]: https://johnpapa.net/debugging-with-visual-studio-code/ [psdbg-gh]: https://github.com/PowerShell/vscode-powershell/tree/master/examples
-[pscdn]: https://docs.microsoft.com/archive/blogs/cdndevs/visual-studio-code-powershell-extension
+[pscdn]: /archive/blogs/cdndevs/visual-studio-code-powershell-extension
<!-- issues --> [GitHub issues]: https://github.com/PowerShell/vscode-powershell/issues
samples Creating Get Winevent Queries With Filterhashtable https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/samples/Creating-Get-WinEvent-queries-with-FilterHashtable.md
--- Previously updated : 09/13/2019 Last updated : 07/02/2021 Title: Creating Get-WinEvent queries with FilterHashtable description: This article how to use the FilterHashtable of Get-WinEvent to query the Windows Event logs. ---
Get-WinEvent -FilterHashtable @{LogName='Application'; 'Service'='Bits'}
To verify results and troubleshoot problems, it helps to build the hash table one **key-value** pair at a time. The query gets data from the **Application** log. The hash table is equivalent to
-`Get-WinEvent ΓÇôLogName Application`.
+`Get-WinEvent -LogName Application`.
To begin, create the `Get-WinEvent` query. Use the **FilterHashtable** parameter's **key-value** pair with the key, **LogName**, and the value, **Application**.
Get-WinEvent -FilterHashtable @{
} ```
-Continue to build the hash table with the **ProviderName** key. The **ProviderName** is the name
-that appears in the **Source** field in the **Windows Event Viewer**. For example, **.NET Runtime**
-in the following screenshot:
+Continue to build the hash table with the **ProviderName** key. Usually, the **ProviderName** is the
+name that appears in the **Source** field in the **Windows Event Viewer**. For example,
+`.NET Runtime` in the following screenshot:
![Image of Windows Event Viewer sources](./media/creating-get-winEvent-queries-with-filterhashtable/providername.png) Update the hash table and include the **key-value** pair with the key, **ProviderName**, and the
-value, **.NET Runtime**.
+value, `.NET Runtime`.
```powershell Get-WinEvent -FilterHashtable @{
Get-WinEvent -FilterHashtable @{
} ```
+> [!NOTE]
+> For some event providers, the correct **ProviderName** can be obtained by looking on the
+> **Details** tab in **Event Properties**. For example, events where the **Source** field shows
+> `Defrag`, the correct **ProviderName** is `Microsoft-Windows-Defrag`.
+ If your query needs to get data from archived event logs, use the **Path** key. The **Path** value specifies the full path to the log file. For more information, see the **Scripting Guy** blog post, [Use PowerShell to Parse Saved Event Logs for Errors](https://devblogs.microsoft.com/scripting/use-powershell-to-parse-saved-event-logs-for-errors).