You can check installed PowerShell version in three ways. Check out the commands below: PS C:\> $PSVersionTableName Value---- -----PSVersion 5.0.10130.0WSManStackVersion 3.0SerializationVersion 1.1.0.1CLRVersion 4.0.30319.42000BuildVersion 10.0.10130.0PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}PSRemotingProtocolVersion 2.3 PS C:\> $Host.VersionMajor Minor Build Revision----- ----- ----- --------5 0 10130 0 PS C:\> (Get-Host).VersionMajor Minor Build Revision----- ----- ----- --------5 0 10130 0
Category: Computers and Internet
AD: Get Display Name from user name (SAMAccountName)
I read PowerShell.com’s blog get display name out of user name in a one line. Here is a quick way to find the current user in your Active Directory and retrieve account information such as the display name:([adsisearcher]"(samaccountname=$env:USERNAME)").FindOne().Properties['displayname'] I have even found easier way than using Active Directory PowerShell Module. (Get-ADUser $env:USERNAME).name
Exchange: How to get Mailbox size in Exchange Shell?
Get-MailboxStatistics cmdlet gives TotalItemSize which is the mailbox size. But the TotalItemSize doesn't contain the mailbox size in numbers, it's a PowerShell deserialized object. This command displays the mailbox size from the value property: (Get-MailboxStatistics -Identity username).TotalItemSize.Value Example output: 10.43 GB (11,202,063,583 bytes) But how to make it usable in creating reporting or other purpose. … Continue reading Exchange: How to get Mailbox size in Exchange Shell?
Internet Explorer (IE) – “Continue to this website” option is missing
With the new update (KB2661254), Microsoft is started blocking the websites with certificate key length is 1024 or less. With this IE will never let you connect to site at all. All you get is "Click here to close this webpage". Fortunately Microsoft explained how to override this security feature in the same KB article … Continue reading Internet Explorer (IE) – “Continue to this website” option is missing
Outlook 2013: Something unexpected went wrong with this URL–Class not registered
If you get this error when you click on links in Outlook emails, you would be wondering what’s this error is all about. There is nothing to it. Internet Explorer (or your favorite browser) is not correctly set as default browser for the HTTP/HTTPS links. Solution: Make IE (or Firefox or Chrome) as default … Continue reading Outlook 2013: Something unexpected went wrong with this URL–Class not registered
PowerShell 3.0: How to get Office 365 Service Health alerts in email? (from RSS feed)
Microsoft has awesome Office 365 Admin app on iPhone, Android and Windows phones. But I came across some old school IT guys wants to see Office 365 cloud service alerts in emails. So I wrote a PowerShell script with Invoke-RestMethod cmdlet. Feel free to reuse this script to your needs. Before you start using this script, … Continue reading PowerShell 3.0: How to get Office 365 Service Health alerts in email? (from RSS feed)
Exchange 2010/2013: Database Context Index Status Failed
According to this KB article KB2807668, Exchange 2013 database content index fails due to missing AD Group named ContextSubmitters. The KB says, This issue may occur if the search platform tries to check its membership in a security group that is named "ContentSubmitters." This group is not created by the search platform or by Exchange … Continue reading Exchange 2010/2013: Database Context Index Status Failed
PowerShell: Find a user or group is member of local Administrators group of a Remote computer
I wrote this script to scan all computers and find if specific Group is member of local administrators group or not. In a day, I found this specific group has local admin access to which computers. You may modify or use as it is of the following PowerShell script if you need to find the … Continue reading PowerShell: Find a user or group is member of local Administrators group of a Remote computer
Exchange: How come disabled user is still sync emails (on a phone)?
There was an issue raised a terminated user is still sending and receiving emails from his/her phone. We checked the user account was disabled (for sure). How the heck the user still sending emails to us? Quick search points to this KB: EAS devices still sync after an account is disabled or a password is … Continue reading Exchange: How come disabled user is still sync emails (on a phone)?
NetApp and VMware Commands Cheat Sheet
I came across these awesome collection of NetApp and VMWare commands cheat sheets (Click Link Below). Good Work. NetApp VMWare