Delete a Calendar item from a mailbox

If you have the need to remove a specific calendar event/appointment from a mailbox, you can do it through Power Shell or Exchange Management Shell. Open PowerShell or EMS If this is an O365 mailbox, you will need to connect to the O365 environment Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential […]

Read more

How to Export AD user list with email addresses

If you have the need to export a user list from an Active Directory group along with the user’s email address, run the following command in PowerShell as an administrator. If your AD has the e-mail attribute filed out: Powershell Get-ADGroupMember -Identity “groupname” -Recursive | Get-ADUser -Properties Mail | Select-Object Name,Mail | Export-CSV -Path C:\file.csv -NoTypeInformation Example: If not you […]

Read more

Use PowerShell to disable scheduled tasks

How can I use Windows PowerShell to disable a scheduled task? Use the Disable-ScheduledTask cmdlet and specify the task name, for example: Disable-ScheduledTask -TaskName “SystemScan”     How can I use Windows PowerShell to disable all scheduled tasks in a particular folder? Use the Get-ScheduledTask cmdlet to enumerate the scheduled tasks in the folder, and then pipe the objects to […]

Read more

PowerShell: Use a destructive PowerShell cmdlet safely

PowerShell has a built-in safety switch to many of its cmdlets. The –whatif parameter, which is meant to show you what would happen if you used a PowerShell cmdlet without actually executing the cmdlet. An example of this in action is in the following Remove-Item cmdlet.   This will attempt to remove the document, HSG-Article-Sean-Should-Not-Lose.docx, without actually removing it. Remove-Item .\HSG-Article-Sean-Should-Not-Lose.docx […]

Read more
1 7 8 9 10 11