Category: Poweshell
-
How to remove duplicate mailbox in Office 365
Sometimes things happen. Migration failed, interns assigning a license to a user when their mailbox is on premise, or some other kind of administrative mistake. Now you realize you have a mailbox on premise and a mailbox in O365. In order to fix the problem, you have to remove one of the accounts. The easiest…
-
How to add and remove events to users’ calendar in Exchange 2010
A) Adding events to a user’s calendar 1. Create a test mailbox and add the event(s) you want. 2. Run this command at the Exchange Powershell to export the user’s calendar to a PST file New-MailboxExportRequest -Mailbox “testmailbox” -IncludeFolders “#Calendar#” -FilePath “\\myshare\events.pst” 3. Check the status of the export request. Once the request is…
-
Compare Files Using PowerShell
Compare-Object -ReferenceObject (Get-Content C:\Software\PCapps.txt) -DifferenceObject (Get-Content C:\Software\LAPTOPapps.txt)
-
List Installed Programs using Powershell
Get-WmiObject -Class Win32_Product | Select-Object -Property Name