Advertisement
stephanlinke

Untitled

Jun 16th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. param ( [string]$ComputerName = "localhost" )
  2.  
  3. $ProcessActive = (Get-Process Dropbox.MigrationAssistant -ErrorAction SilentlyContinue -ComputerName $ComputerName);
  4.  
  5. if($ProcessActive) {Write-host "0:OK";    exit 0; }
  6. else               {Write-host "0:Error"; exit 2; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement