Project Work Hours

Sat & Sun 6am - 9am

Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Monthly Archives: September 2015

The article covers storing credential ‘securely’ to be used later in a PowerShell script. It involves export credential into a xml file and importing that credential when need to authenticate.

I used the store credential process to customize an existing script, this method can be used anywhere where a PowerShell script needs a credential.


—————————————-­————————
One of numerous videos in my Two-Click (2C) series

2C YouTube Playlist: https://www.youtube.com/playlist?list=PLURKD77y7MK9f3vrr7SnQE_1L2QjzdMUM
Other 2C Article: http://hazelnest.com/blog/blog/tag/2c/
Other PowerShell Article: http://hazelnest.com/blog/blog/tag/PowerShell/

Thought i should start sharing some tools in my little tool box, this is my Exchange Start-Services script.

In my Lab at home the Virtual Machines are running minimal specs so i am always encountering issues with automatic Exchange services not starting at boot up so i came up a little script to solve that issue. The script can be manipulated to be used for any service or services.

Just 4 lines of ‘code’ and that’s it, script can be  run 30 minutes after server bootup as a scheduled task or on demand. Download script here

Syntax:

.\StartServices.ps1

Breakdown of script below

Continue reading