Advertisement
Guest User

Untitled

a guest
Sep 5th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. If(Test-Connection $computername -Quiet -Count 1){
  2. $devicestatus = "Online"
  3. }
  4. Else{
  5. $devicestatus = "Offline"
  6. }
  7. $devicestatus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement