PowerShell: List users from a specific OU


Here is the command to list all users from specific OU in Active Directory. Import-Module ActiveDirectory Get-ADUser -Filter * -SearchBase "ou=ouname,dc=company,dc=com" If you don’t know the OU name in distinguished name, 1. open Active Directory Users and Computers, enable Advanced Features in the menu, open the OU properties, go to Attribute Editor and open distinguishedName … Continue reading PowerShell: List users from a specific OU

Exchange 2010 OWA Options: Sorry! Access denied


Is one of your users seeing this message when trying to access OWA options? (Sorry! Access denied You don’t have permission to open this page. If you’re a new user or were recently assigned credentials, please wait 15 minutes and try again.) Poor user! he/she waited for 15 minutes (heck! may be a day), still … Continue reading Exchange 2010 OWA Options: Sorry! Access denied

Exchange 2010: New-TestCasConnectivityUser.ps1 fails to create test user


If you haven’t created CAS connectivity test user, SCOM will fail on few tests (example: Test-OutlookConnectivity cmdlet run by SCOM action account). SCOM will complain that it can’t monitor Exchange. Fast forward, you figured out already that you have to run New-TestCASConnectivityUser.ps1 to create test account per each database, so SCOM can do it job. … Continue reading Exchange 2010: New-TestCasConnectivityUser.ps1 fails to create test user

Exchange 2010: Database Restore Issue (Exchange VSS Writer failed restoring a backup)


You are trying to restore Exchange Database and Restore fails miserably. You get the following event log on your mailbox server. (It doesn’t matter which Backup software you use, the error is common since all backup software uses Exchange APIs). Log Name: ApplicationSource: MSExchangeISDate: 11/6/2012 4:33:43 PMEvent ID: 9751Task Category: Exchange VSS WriterLevel: ErrorKeywords: ClassicUser: … Continue reading Exchange 2010: Database Restore Issue (Exchange VSS Writer failed restoring a backup)

Windows 7/8: Hold the sleep or screen saver–cheat the Windows settings


Say you are talking to someone, your computer goes to sleep while you are not on the computer. You hate that you have to log in again. It happens many times of the day. You may not want to change the sleep settings (or locked out evil IT department Group Policy Objects). Here is a … Continue reading Windows 7/8: Hold the sleep or screen saver–cheat the Windows settings

Exchange 2010: Get the list of ActiveSync Devices


Copy and paste the script into Windows Powershell ISE (or Notepad if you like) and save it as ASDevices.ps1. Simply run this script on Exchange Shell with sufficient permissions. It will generate an CSV file on the script location named MobileDevics.csv. <# Script Name: ASDevices.ps1 Purpose: Generate a report of Active Sync Devices for all … Continue reading Exchange 2010: Get the list of ActiveSync Devices

Outlook 2010/2013: Office document attachments aren’t opening


When I try open the attached office document files, I get Word/Excel/Powerpoint experienced an error trying to open the file like the following popup. Don’t search any Outlook settings. This is not the Outlook issue. It is the respective program (Word or Excel or Powerpoint) refused to open the document from unsafe origins. The solution … Continue reading Outlook 2010/2013: Office document attachments aren’t opening

Outlook 2010/2013: Office document attachments aren’t opening


When I try open the attached office document files, I get Word/Excel/Powerpoint experienced an error trying to open the file like the following popup. Don’t search any Outlook settings. This is not the Outlook issue. It is the respective program (Word or Excel or Powerpoint) refused to open the document from unsafe origins. The solution … Continue reading Outlook 2010/2013: Office document attachments aren’t opening