Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 30. Using and Finding Scripts to... > Finding Scripts to Automate Tasks in...

Finding Scripts to Automate Tasks in PowerShell

Many websites and blog sites offer .ps1 file scripts for download. Microsoft.com has the Script Center Repository as part of TechNet. This is a fantastic place to start looking for scripts. Chances are, you aren’t the first person to ask whether PowerShell can do some particular task—others have had to either figure it out for themselves or find someone with PowerShell skills to do it for them. If you are lucky, the script you need already exists in the Script Center Repository. Most of these sites do not charge anything for their scripts and provide helpful information on how they function. The drawback, however, is that most of these sites are not Exchange specific.

Also, these sites do not guarantee that their scripts will function properly in your environment. When you’re working with a new or untrusted cmdlet, three switch options are available that allow you to reduce or prevent unintended results from occurring when you execute the cmdlet. You can use the -Whatif switch wherever possible to see what would happen if the script were run...before you actually run it for real! No changes are made to any Exchange objects when you execute a cmdlet with a -Whatif switch applied. The -Whatif switch is available in many cmdlets, and using it might just protect you from executing a script that permanently damages your Exchange organization.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint