diff --git a/reference/7.4/Microsoft.PowerShell.Management/Restart-Computer.md b/reference/7.4/Microsoft.PowerShell.Management/Restart-Computer.md index cb0605fad63d..1be1637cb427 100644 --- a/reference/7.4/Microsoft.PowerShell.Management/Restart-Computer.md +++ b/reference/7.4/Microsoft.PowerShell.Management/Restart-Computer.md @@ -375,7 +375,7 @@ This cmdlet returns no output. of the Windows Management Instrumentation (WMI) [Win32_OperatingSystem](/windows/desktop/CIMWin32Prov/win32-operatingsystem) class. This method requires the **SeShutdownPrivilege** privilege be enabled for the user account used to restart the machine. -- On Linux and Mac OS, `Restart-Computer` uses the `/sbin/shutdown` bash tool. +- On Linux and macOS, `Restart-Computer` uses the `/sbin/shutdown` bash tool. ## RELATED LINKS diff --git a/reference/7.5/Microsoft.PowerShell.Management/Restart-Computer.md b/reference/7.5/Microsoft.PowerShell.Management/Restart-Computer.md index 29337ccd1cf5..017676e6920f 100644 --- a/reference/7.5/Microsoft.PowerShell.Management/Restart-Computer.md +++ b/reference/7.5/Microsoft.PowerShell.Management/Restart-Computer.md @@ -378,7 +378,7 @@ This cmdlet returns no output. [Win32_OperatingSystem](/windows/desktop/CIMWin32Prov/win32-operatingsystem) class. This method requires the **SeShutdownPrivilege** privilege be enabled for the user account used to restart the machine. -- On Linux and Mac OS, `Restart-Computer` uses the `/sbin/shutdown` bash tool. +- On Linux and macOS, `Restart-Computer` uses the `/sbin/shutdown` bash tool. ## RELATED LINKS diff --git a/reference/7.6/Microsoft.PowerShell.Core/Get-Command.md b/reference/7.6/Microsoft.PowerShell.Core/Get-Command.md index a6c8f660e398..38df5f93f470 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/Get-Command.md +++ b/reference/7.6/Microsoft.PowerShell.Core/Get-Command.md @@ -115,7 +115,7 @@ This command uses the **ArgumentList** and **Syntax** parameters to get the synt the Certificate Provider adds to the session. ```powershell -Get-Command -Name Get-Childitem -Args Cert: -Syntax +Get-Command -Name Get-ChildItem -Args Cert: -Syntax ``` When you compare the syntax displayed in the output with the syntax that's displayed when you omit diff --git a/reference/7.6/Microsoft.PowerShell.Management/Restart-Computer.md b/reference/7.6/Microsoft.PowerShell.Management/Restart-Computer.md index 99b9151b793a..227cec1d9239 100644 --- a/reference/7.6/Microsoft.PowerShell.Management/Restart-Computer.md +++ b/reference/7.6/Microsoft.PowerShell.Management/Restart-Computer.md @@ -375,7 +375,7 @@ This cmdlet returns no output. of the Windows Management Instrumentation (WMI) [Win32_OperatingSystem](/windows/desktop/CIMWin32Prov/win32-operatingsystem) class. This method requires the **SeShutdownPrivilege** privilege be enabled for the user account used to restart the machine. -- On Linux and Mac OS, `Restart-Computer` uses the `/sbin/shutdown` bash tool. +- On Linux and macOS, `Restart-Computer` uses the `/sbin/shutdown` bash tool. ## RELATED LINKS diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Get-Error.md b/reference/7.6/Microsoft.PowerShell.Utility/Get-Error.md index ed3f0abc8e6a..49a7ff76896c 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Get-Error.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Get-Error.md @@ -47,7 +47,7 @@ In this example, `Get-Error` displays the details of the most recent error that current session. ```powershell -Get-Childitem -path /NoRealDirectory +Get-ChildItem -path /NoRealDirectory Get-Error ``` @@ -86,11 +86,11 @@ InvocationInfo : ScriptLineNumber : 1 OffsetInLine : 1 HistoryId : 57 - Line : Get-Childitem -path c:\NoRealDirectory + Line : Get-ChildItem -path c:\NoRealDirectory PositionMessage : At line:1 char:1 - + Get-Childitem -path c:\NoRealDirectory + + Get-ChildItem -path c:\NoRealDirectory + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - InvocationName : Get-Childitem + InvocationName : Get-ChildItem CommandOrigin : Internal ScriptStackTrace : at , : line 1 PipelineIterationInfo : diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Get-EventSubscriber.md b/reference/7.6/Microsoft.PowerShell.Utility/Get-EventSubscriber.md index 1139ab141e04..f0d259743643 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Get-EventSubscriber.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Get-EventSubscriber.md @@ -113,7 +113,7 @@ Id Name State HasMoreData Location Command ```powershell $Timer.Enabled = $True $Subscriber = Get-EventSubscriber -SourceIdentifier Timer.Random -($Subscriber.action).gettype().fullname +($Subscriber.action).GetType().fullname ``` ```Output diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Get-PSCallStack.md b/reference/7.6/Microsoft.PowerShell.Utility/Get-PSCallStack.md index 12a78d81c62d..3299ae3520c1 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Get-PSCallStack.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Get-PSCallStack.md @@ -35,7 +35,7 @@ To run a `Get-PSCallStack` command while in the debugger, type `k` or `Get-PSCal ```powershell PS C:\> function my-alias { $p = $args[0] -Get-Alias | where {$_.definition -like "*$p"} | format-table definition, name -auto +Get-Alias | where {$_.Definition -like "*$p"} | Format-Table definition, name -auto } PS C:\ps-test> Set-PSBreakpoint -Command my-alias Command : my-alias @@ -47,18 +47,18 @@ Script : prompt PS C:\> my-alias Get-Content Entering debug mode. Use h or ? for help. Hit Command breakpoint on 'prompt:my-alias' -my-alias get-content +my-alias Get-Content [DBG]: PS C:\ps-test> s $p = $args[0] DEBUG: Stepped to ': $p = $args[0] ' [DBG]: PS C:\ps-test> s -get-alias | Where {$_.Definition -like "*$p*"} | format-table Definition, -[DBG]: PS C:\ps-test>get-pscallstack +Get-Alias | Where {$_.Definition -like "*$p*"} | Format-Table Definition, +[DBG]: PS C:\ps-test>Get-PSCallstack Name CommandLineParameters UnboundArguments Location ---- --------------------- ---------------- -------- prompt {} {} prompt -my-alias {} {get-content} prompt +my-alias {} {Get-Content} prompt prompt {} {} prompt PS C:\> [DBG]: PS C:\ps-test> o diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Get-Unique.md b/reference/7.6/Microsoft.PowerShell.Utility/Get-Unique.md index 9da295562504..4ec061a4c80b 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Get-Unique.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Get-Unique.md @@ -43,7 +43,7 @@ These commands find the number of unique words in a text file. ```powershell $A = $( foreach ($line in Get-Content C:\Test1\File1.txt) { - $line.tolower().split(" ") + $line.ToLower().split(" ") }) | Sort-Object | Get-Unique $A.count ``` diff --git a/reference/docfx.json b/reference/docfx.json index 21a8232da4df..cd8ca2bd3b03 100644 --- a/reference/docfx.json +++ b/reference/docfx.json @@ -41,19 +41,21 @@ "docs-conceptual/**/*.md": "conceptual" }, "ms.topic": { - "5.1/**/*": "managed-reference", - "7*/**/*": "managed-reference", + "5.1/**/*": "reference", + "7*/**/*": "reference", "docs-conceptual/community/contributing/**/*.md": "contributor-guide", "docs-conceptual/**/*.md": "conceptual", - "docs-conceptual/dev-cross-plat/**/*.md": "reference", - "docs-conceptual/developer/**/*.md": "reference", + "docs-conceptual/dev-cross-plat/**/*.md": "conceptual", + "docs-conceptual/developer/**/*.md": "conceptual", "docs-conceptual/lang-spec/**/*.md": "language-reference", "docs-conceptual/learn/*.md": "tutorial", "docs-conceptual/learn/deep-dives/*.md": "tutorial", "docs-conceptual/learn/ps101/*.md": "conceptual", "docs-conceptual/learn/remoting/*.md": "tutorial", "docs-conceptual/samples/**/*.md": "sample", - "docs-conceptual/whats-new/**/*.md": "whats-new" + "docs-conceptual/whats-new/**/*.md": "whats-new", + "docs-conceptual/windows-powershell/ise/*.md": "ui-reference", + "docs-conceptual/windows-powershell/ise/object-model/*.md": "reference" }, "products": { "5.1/**/*": [ diff --git a/reference/docs-conceptual/community/2025-updates.md b/reference/docs-conceptual/community/2025-updates.md index 1c161da30577..bd16d109d5f2 100644 --- a/reference/docs-conceptual/community/2025-updates.md +++ b/reference/docs-conceptual/community/2025-updates.md @@ -11,7 +11,7 @@ community. Help us make the documentation better for you. Read the [Contributor's Guide][01] to learn how to get started. -## 2024-January +## 2025-January New content