Skip to content

Commit a06d908

Browse files
Fix incorrect cmdlet name in the script used by Restart-Computer (PowerShell#18374)
1 parent e2d13c8 commit a06d908

File tree

1 file changed

+1
-1
lines changed
  • src/Microsoft.PowerShell.Commands.Management/commands/management

1 file changed

+1
-1
lines changed

src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public short Delay
306306
ComputerName = $computerName
307307
ScriptBlock = { $true }
308308
309-
SessionOption = NewPSSessionOption -NoMachineProfile
309+
SessionOption = New-PSSessionOption -NoMachineProfile
310310
ErrorAction = 'SilentlyContinue'
311311
}
312312

0 commit comments

Comments
 (0)