mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix incorrect cmdlet name in the script used by Restart-Computer (#18374)
This commit is contained in:
@@ -306,7 +306,7 @@ foreach ($computerName in $array[1])
|
||||
ComputerName = $computerName
|
||||
ScriptBlock = { $true }
|
||||
|
||||
SessionOption = NewPSSessionOption -NoMachineProfile
|
||||
SessionOption = New-PSSessionOption -NoMachineProfile
|
||||
ErrorAction = 'SilentlyContinue'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user