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
# BEGIN ROOT CA | |
# Common name used for the RootCA. example: 'Contoso Root CA' | |
$CACommonName = 'SE-C-ROOT' | |
# Suffix for the RootCA. Example: 'OU=PKI,O=Contoso,C=US' | |
$CADistinguishedNameSuffix = 'OU=PKI,O=Contoso,C=US' | |
# Local directory where Root CA stores the CA Database | |
$DatabaseDirectory = 'C:\CADB\CertDB' | |
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
#Import-Module "$PSScriptRoot\..\Module\WindowsPresentationFramework" -Force | |
. "$PSScriptRoot\WindowsPresentationFramework.ps1" | |
#Region ThreadSafe | |
# Bind Variables | |
[WindowsPresentationFrameworkThreadSafe()] | |
[PSObject] $Variable = "Herro World from Proxy Scope" | |
[WindowsPresentationFrameworkThreadSafe()] | |
$Sync = [hashtable]::Synchronized(@{}) |
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
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"> | |
<Obj RefId="0"> | |
<TN RefId="0"> | |
<T>System.Collections.Hashtable</T> | |
<T>System.Object</T> | |
</TN> | |
<DCT> | |
<En> | |
<S N="Key">SourceApp</S> | |
<Obj N="Value" RefId="1"> |
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 Connect-OktaSecure { | |
param ( | |
[Parameter(Mandatory)] | |
[String] $Tenant, | |
[Parameter()] | |
[switch] $DeleteCreds, | |
[Parameter()] | |
[switch] $Preview |
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 Get-OktaUserReport { | |
<# | |
.SYNOPSIS | |
Searches for specific or all Okta Users | |
.DESCRIPTION | |
Searches for specific or all Okta Users. Use no parameters to return all users. e.g Get-OktaUserReport | |
.PARAMETER SearchString | |
Queries firstName, lastName, and email for a match to the -SearchString value specified. |
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 Get-IISLog { | |
param ( | |
[Parameter()] | |
$Server, | |
[Parameter()] | |
[string] | |
$SearchString, |
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
# | |
# Originally from: "http://sbrickey.com/Tech/Blog/Post/Parsing_IIS_Logs_with_PowerShell" | |
# | |
# Define the location of log files and a temporary file | |
$LogFolder = "C:\inetpub\logs\LogFiles\W3SVC123" | |
$LogFiles = [System.IO.Directory]::GetFiles($LogFolder, "*.log") | |
$LogTemp = "C:\inetpub\logs\LogFiles\W3SVC123\AllLogs.tmp" | |
# Logs will store each line of the log files in an array |
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
New-MailboxMove -SharePointURL 'https://corebts.sharepoint.com/sites/O365-Aplane' -ExcelFile 'Batches.xlsx' -RemoteHost 'hybrid.aplane.com' -Tenant 'vvvv.onmicrosoft.us' | |
#Binding to Send and Receive Connectors | |
Get-ExchangeCertificate | Select-Object subject, services, thumbprint | |
$cert = Get-ExchangeCertificate -Thumbprint 195D073A944E00E17EB515FAAD6DF37FB7B052AE | |
$tlscertificatename = "<i>$($cert.Issuer)<s>$($cert.Subject)" | |
$tlscertificatename | |
Set-ReceiveConnector "HYBRID\Default Frontend HYBRID" -TlsCertificateName $tlscertificatename |
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
#Install Exchange CUSTOM | |
E:\Setup.exe /Mode:Install /Role:Mailbox /IAcceptExchangeServerLicenseTerms /OrganizationName:"CONTOSO" /CustomerFeedbackEnabled:False /TargetDir:"D:\EXCHANGE" /DbFilePath:"D:\ExchangeDB\Hybrid01\Hybrid01.edb" /MdbName:"Hybrid01" /LogFolderPath:"D:\ExchangeLogs" | |
#Validate Exchange version | |
Get-Command Exsetup.exe | ForEach {$_.FileVersionInfo } | |
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
$Server = 'EXCH01' | |
$DC = 'APDC01' | |
$URI = 'https://mail.contoso.com/Autodiscover/Autodiscover.xml' | |
$Thumbprint = 'cccccccc' | |
do { | |
Start-Sleep -seconds 2 | |
$scp = Get-ClientAccessServer -Identity $Server -DomainController $DC -erroraction silentlycontinue | |
Write-Host "Server $SERVER not found yet" -ForegroundColor Cyan | |
} until ($SCP) ; Set-ClientAccessServer $Server -DomainController $DC -AutoDiscoverServiceInternalUri $URI; Write-Host "Server $SERVER FOUND AND SET!!" -ForegroundColor Green |