Guest User

SysDusty

a guest
Apr 30th, 2019
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Begin-Day -Type Work -Location Office
  2.  
  3. Find-Coworkers -filter * | % { Greet-Person -Identity $_.firstname }
  4.  
  5. Get-Computer -Identity $Env:username | Boot-Computer | Authenticate -User $Env:username
  6.  
  7. $todo = Get-Emails | Where { ($_.Priority -ge 'Important') -and ($_.Involves -contains 'Me') }
  8.  
  9. Foreach ($hour in (8 - $HoursOfSleep)) {
  10.  
  11.     Get-Coffee -Type Black -Creamer $false | Consume-Coffee -Force
  12.  
  13.     $cupsConsumed += 1
  14.  
  15.     if ($CupsConsumed -gt 4) {
  16.         Write-Warning "COFFEE LIMIT EXCEEDED HEALTHY LIMITS : Aborting..."
  17.         break
  18.     }
  19. }
  20.  
  21. ForEach ($item in $todo) {
  22.  
  23.     Get-Item $item -details | Handle-Item -Like 'Boss' | Close-Ticket
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment