$Host.UI.RawUI.BackgroundColor = ($bckgrnd = 'Black')
$Host.UI.RawUI.ForegroundColor = 'White'
$Host.PrivateData.ErrorForegroundColor = 'Red'
$Host.PrivateData.ErrorBackgroundColor = $bckgrnd
$Host.PrivateData.WarningForegroundColor = 'Magenta'
$Host.PrivateData.WarningBackgroundColor = $bckgrnd
$Host.PrivateData.DebugForegroundColor = 'Yellow'
$Host.PrivateData.DebugBackgroundColor = $bckgrnd
$Host.PrivateData.VerboseForegroundColor = 'Green'
$Host.PrivateData.VerboseBackgroundColor = $bckgrnd
$Host.PrivateData.ProgressForegroundColor = 'Yellow'
$Host.PrivateData.ProgressBackgroundColor = $bckgrnd
$Host.PrivateData.ConsolePaneForegroundColor = 'DarkCyan'
$Host.PrivateData.ConsolePaneBackgroundColor= $bckgrnd
$Host.PrivateData.ConsolePaneTextBackgroundColor= 'Yellow'
Set-PSReadlineOption -ResetTokenColors
Clear-Host
dbatools: Migrate SQL Server Logins Between Instances
Uses PowerShell and SMO to migrate SQL logins. Logins are completely migrated and maintain their SIDs, passwords, server/database roles, server/database permission sets & securable, default database and login attributes. Works on SQL Server 2000 and above.
dbatools.io: PowerShell & SQL Server
PowerShell: Script to move items from one folder to another in a user’s office 365 mailbox
Exchange Web Services 2.0 Using PowerShell
- Exchange Online and Exchange 2013 development
- Microsoft Exchange Web Services Managed API 2.2
- EWS Managed API reference
- PowerShell – Script to move items from one folder to another in a user’s mailbox
- Quick searching of today’s email using Powershell and EWS
- Search-Mailbox
- Explore the EWS Managed API, EWS, and web services in Exchange
- EWS Managed API, EWS, and web services in Exchange
- Exchange Online and Exchange 2013 development
- Exporting and importing items by using EWS in Exchange
- PowerShell EWS Save as for e-mails
PowerShell implicit remoting on imported a cmdlet
Import-PSSession -Session (
New-PSSession -ComputerName dc01 -Credential (Get-Credential)
) -CommandName New-ADUser
$Password = Read-Host -assecurestring "SP2013 Farm Account Password"
$Name = "spExtranetFarm"
$UPN = "spExtranetFarm@mikefrobbins.com"
$Description = "SharePoint Farm Administrator Account - Extranet"
$Path = "ou=service,ou=accounts,ou=test,dc=mikefrobbins,dc=com"
New-ADUser -Name $Name -AccountPassword $Password -Description $Description `
-Enabled $true `
-PasswordNeverExpires $true `
-Path $Path `
-SamAccountName $Name `
-UserPrincipalName $UPN