Get-PC/Private/Invoke-Wake.ps1
2024-06-12 10:15:02 -07:00

7 lines
292 B
PowerShell

function Invoke-Wake($Computer) {
Write-Host "Attemping to wake up $Computer, check in a few minutes"
Push-Location
Set-Location "$(Get-PSDrive -PSProvider CMSite)`:"
Invoke-CMClientAction -DeviceName $Computer -ActionType ClientNotificationWakeUpClientNow
Pop-Location
}