This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Test-TlsConnection { | |
| <# | |
| .SYNOPSIS | |
| Tests a URI for connectivity, and checks whether the TLS certificate is valid. | |
| .DESCRIPTION | |
| This cmdlet tests a URI for connectivity, and checks whether the TLS | |
| certificate is valid, expired, expiring soon, and returns information about | |
| the certificate when used with InformationLevel 'Detailed'. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -RunAsAdministrator | |
| #Requires -Modules pki | |
| #Requires -Assembly System.Windows.Forms | |
| <# | |
| .SYNOPSIS | |
| Creates a new web server certificate signed by a self-signed "root" signing certificate. | |
| .DESCRIPTION | |
| This script creates a new web server certificate and adds it to the | |
| Cert:\LocalMachine\My certificate store, where it can be used by a Milestone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| break | |
| <# | |
| 01. Find instances | |
| 02. Connect to instances | |
| 03. Check backups | |
| 04. Check disk space | |
| 05. Perform backups | |
| 06. Check for corruption | |
| 07. Install maintenance scripts | |
| 08. Export all settings for DR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright: (c) 2020, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| Function Invoke-WithImpersonation { | |
| <# | |
| .SYNOPSIS | |
| Invoke a scriptblock as another user. | |
| .DESCRIPTION | |
| Invoke a scriptblock and run it in the context of another user as supplied by -Credential. |