This file contains 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 Connect-O365SecurityAndCompliance | |
{ | |
<# | |
.SYNOPSIS | |
The function creates a remote PowerShell session to the Office 365 'Security And Compliance' service. | |
.DESCRIPTION | |
The function creates a remote PowerShell session to the Office 365 'Security And Compliance' service. Valid Office 365 credentials must be supplied. The function has an alias of Connect-O365SAC. | |
.PARAMETER Credential |
This file contains 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 Connect-O365AzureActiveDirectory | |
{ | |
<# | |
.SYNOPSIS | |
The function creates a remote PowerShell session to the Office 365 'Azure Active Directory' (aka 'MS Online') service using the AzureAD module. | |
.DESCRIPTION | |
The function creates a remote PowerShell session to the Office 365 'Azure Active Directory' (aka 'MS Online') service using the AzureAD module. Valid Office 365 credentials must be supplied. The function has an alias of Connect-O365AAD. | |
.PARAMETER Credential |
This file contains 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 Connect-O365ExchangeOnlineProtection | |
{ | |
<# | |
.SYNOPSIS | |
The function creates a remote PowerShell session to the Office 365 'Exchange Online Protection' service. | |
.DESCRIPTION | |
The function creates a remote PowerShell session to the Office 365 'Exchange Online Protection' service. Valid Office 365 credentials must be supplied. The function has an alias of Connect-O365EOP. | |
.PARAMETER Credential |
This file contains 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 Connect-O365MSOnline | |
{ | |
<# | |
.SYNOPSIS | |
The function creates a remote PowerShell session to the Office 365 'Azure Active Directory' (aka 'MS Online') service using the legacy MSOnline module. | |
.DESCRIPTION | |
The function creates a remote PowerShell session to the Office 365 'Azure Active Directory' (aka 'MS Online') service using the legacy MSOnline module. Valid Office 365 credentials must be supplied. The function has an alias of Connect-O365MSOL. | |
.PARAMETER Credential |
This file contains 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 Connect-O365ExchangeOnline | |
{ | |
<# | |
.SYNOPSIS | |
The function creates a remote PowerShell session to the Office 365 'Exchange Online' service. | |
.DESCRIPTION | |
The function creates a remote PowerShell session to the Office 365 'Exchange Online' service. Valid Office 365 credentials must be supplied. The function has an alias of Connect-O365EXO. | |
.PARAMETER Credential |
This file contains 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 Connect-O365SkypeForBusinessOnline | |
{ | |
<# | |
.SYNOPSIS | |
The function creates a remote PowerShell session to the Office 365 'Skype For Business Online' service. | |
.DESCRIPTION | |
The function creates a remote PowerShell session to the Office 365 'Skype For Business Online' service. Valid Office 365 credentials must be supplied. The function has an alias of Connect-O365SFBO. | |
.PARAMETER Credential |
This file contains 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 Get-O365IPAddress | |
{ | |
<# | |
.SYNOPSIS | |
The function gets the Office 365 IP address & URL information. | |
.DESCRIPTION | |
The function gets the Office 365 IP address & URL information, in XML format, and returns the Product (O365, SPO, etc...), AddressType (IPV4,IPV6, OR URL), and Address (Ex: 13.107.6.152/31) information. | |
.PARAMETER ErrorLog |
This file contains 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
<# | |
.SYNOPSIS | |
This script creates a self-signed certificate, exports it, and re-imports it into the Trusted Root Certification Authorities store. | |
.DESCRIPTION | |
This script creates a self-signed code signing certificate, valid for one year from the date/time created, that can be used for testing purposes to sign scripts. After the certificate is created, the issuer is untrusted. So, the script then exports the certificate into a .cer file and re-imports it into the Trusted Root Certification Authorities store for the current user (i.e. Cert:\CurrentUser\Root). | |
.PARAMETER DnsName | |
Specify one, or more, DNS names to put into the subject alternative name (SAN) extension of the certificate. The first DNS name is also saved as the subject name, issuer name (i.e. Issued By), and common name (i.e. Issued To). Default is the local computer name (i.e. $Env:ComputerName). This parameter has aliases of SubjectAlternativeName and SAN. |