Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion reference/7.6/Microsoft.PowerShell.Core/Get-Command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions reference/7.6/Microsoft.PowerShell.Utility/Get-Error.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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 <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions reference/7.6/Microsoft.PowerShell.Utility/Get-PSCallStack.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion reference/7.6/Microsoft.PowerShell.Utility/Get-Unique.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
12 changes: 7 additions & 5 deletions reference/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*": [
Expand Down
2 changes: 1 addition & 1 deletion reference/docs-conceptual/community/2025-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down