7 lines
292 B
PowerShell
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
|
||
|
|
}
|