Month: June 2019

Outlook Error: An Encrypted Connection Not Available

Symptom: The Fix: Run: control.exe > click on Mail Click on Show Profiles Click on…

PowerShell: Export Exchange Mailboxes

Export 1 mailbox $userAlias="kungfu.panda"$storageUNC="\\FILESHERVER01\Backups\PSTs"# Import Exchange Management PowershellAdd-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;$mailboxRequest=(New-MailboxExportRequest -Mailbox $userAlias -FilePath "$storageUNC\$userAlias.pst").Mailboxfunction monitorCompletion($check){ $migrationStatus=(Get-MailboxExportRequest…

PowerShell: Recover Deleted Active Directory Objects

$domain="kimconnect"$ltd="com"$dc="dc01"$userToRecover="Tom Cruise"# Enable Active Directory Recycle Bin# Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target "$domain.$ltd"…

PowerShell: Office 365 Bulk Licensing, Changing IDs, Enabling POP3

Connect to Office 365 # Office 365 Global Admin Credential$username="O365globalAdmin"$password=ConvertTo-securestring "PASSWORDHERE" -AsPlainText -Force$cred = New-Object…

Office 365 Mail Import Using CSV Files

The Point and Click Method Prepare a CSV file in this format [email protected]@[email protected] Access Office…

MS Exchange 2010: Mailbox Repair

PowerShell snippet to initiate repair # set user alias or email addresses here:$userAliases="user1","user2"foreach ($user in…

PowerShell: Fix Email Aliases as Preparation for O365 Migration

Check SMTP Addresses of On Premise Mailboxes function checkSmtpAddresses{ $microsoftDomain1="@kimconnect.mail.onmicrosoft.com" $microsoftDomain2="@kimconnect.onmicrosoft.com" $dotLocal=".local" $onpremMailboxes=Get-Mailbox -ResultSize unlimited…

Excel Challenge: Update Records with a New Email Domain if It Matches Deprecated Domain

PrimaryEmail (Cell B2) EmailUsername Domain [email protected] =LEFT(B2,FIND("@",B2)-1) =RIGHT(B2,LEN(B2)-FIND("@",B2)) FixedPrimaryEmail =IF(D2="olddomain.org",C2&"@newdomain.org",B2)

Office 365 User Logon Instructions

How to Access Email via Outlook Web Access (OWA) Navigate to: https://outlook.office365.com/owa Input the provided…

PowerShell: Obtain List of Hyper-V Hosts in All Domains of All Forests

Version 0.03: https://blog.kimconnect.com/powershell-obtain-list-of-hyper-v-hosts-via-active-directory/ Version 0.02: https://blog.kimconnect.com/powershell-get-nic-mtus-of-all-hyper-v-hosts-in-domain-forest/ Previous version: # listHyperVHostsInForests.ps1# version 0.01# This function scans…

PowerShell: Windows Automated Disk Cleanup

##################################################################################     <#      This script is created to automate the cleanup activity. Doing so will benefit to reduce the size of disk.     This script will perform the following   1. Clear windows temp and user temp folder   2. Empty recycle bin   3. Disk Cleanup   4. Clear CBS cabinet log files   5. Clear downloaded patches   6. Clear downloaded driver   7. Clean download folder      Note:  …

PowerShell: Exchange 2010 Server Update & Restart

function stopExchange{ net stop msexchangeadtopology /y net stop msexchangefba /y net stop msftesql-exchange /y net…

PowerShell: Windows 10 Preparation Script

Set PowerShell execution policy prior to running script as an Administrator Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Confirm:$False…

PowerShell: Script to Send Emails

In the past, a simple email relay script was sufficient to spool internal messages. However,…

On Premise Exchange to Office 365 Migration Using Method: Asynchronous PST Export & Import

Assumptions: 1. Hybrid Exchange Migration and Stage Migration methods have been considered and rejected2. Active…

Linux User and Group General Operations

# Add new useruseradd tomcruise# Create new groupgroupadd webadmins# Add user to groupusermod -a -G…

Exchange 2007 Staged Migration to Office 365

Intro: Exchange 2003 or 2007 is so old that detailed instructions would only be useful…

On-Premise Exchange 2010 to Office 365 Migration Instructions

Overview: There are several methods of migrating an on premise targeted Microsoft Exchange system, herein…

PowerShell: Practical Usage of Robocopy

Quick Commands: $source='C:\vssSnapshot_F'$destination='\\DESTINATIONSERVER\F$'robocopy $source $destination /E /R:0 /NP /XD '$RECYCLE.BIN' 'System Volume Information' /xf 'pagefile.sys'…

How to Setup Applications & Scanners to Use Office 365 Online Exchange to Send Emails

Intro: There are three (3) methods: (1) SMTP client authentication, (2) Direct Send, and (3)…