Tutorial Slideshow

  1. <# 
  2.             "SatNaam WaheGuru" 
  3.  
  4. Date: 23-Feb-2012 ; 11:31AM 
  5. Author: Aman Dhally 
  6. Email:  amandhally@gmail.com 
  7. web:    www.amandhally.net/blog 
  8. blog:    http://newdelhipowershellusergroup.blogspot.com/ 
  9. More Info : http://newdelhipowershellusergroup.blogspot.in/2012/02/using-beep-sound-in-powershell-scripts.html  
  10.  
  11. Version :  
  12.  
  13.     /^(o.o)^\  
  14.  
  15.  
  16. #> 
  17.  
  18. Write-Host "I am going to reboot the Laptop after 3 Beep" -ForegroundColor Red 
  19. $([char]7) 
  20. write-Host "Beep 1 " -ForegroundColor Green 
  21. sleep 1  
  22. $([char]7) 
  23. write-Host "Beep 2 " -ForegroundColor Green 
  24. sleep 1 
  25. $([char]7) 
  26. write-Host "Beep 3 " -ForegroundColor Green 
  27. sleep 1 
  28. Write-Host "`n" 
  29. Restart-Computer -Force -WhatIf 
 
Loading...
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.