Upgrading Exchange Online PowerShell to V2 Module

Managing Exchange Online If you have Exchange Online and your users are MFA enabled then you most likely will be using Exchange Online’ s ECP (Exchange Control Panel or Admin Center) to connect to Exchange Online PowerShell through the Hybrid Windows since this is the only supported way with MFA. Clicking on Configure would install … Continue reading Upgrading Exchange Online PowerShell to V2 Module

Powershell script to audit users who authenticated against DC servers

The story: I have got a request from a client asking to find out which server(s) is using which domain admin or a highly privileged account as a service. To find this I already wrote a powershell script that does this, Search the non standard/(Domain only users) and show the services and name of the … Continue reading Powershell script to audit users who authenticated against DC servers

Windows 10 powershell’s Linux sudo apt-get install like CMDlet with Chocolately app

The Story Windows 10 has arrived finally and with it came lot of new features, and one of my favorite new features is that you can finally install applications through powershell just like Linux OS’s terminal window command (apt-get install). Although the command is still pretty new and lack many repositories where you can find … Continue reading Windows 10 powershell’s Linux sudo apt-get install like CMDlet with Chocolately app

Useful Powershell Cmdlets

Export users licenses and information O365 In order to Export users licenses and information from Office 365 you will have to use the following script. First you will need to connect to MS Online service with a Global admin account Connect-MsolService Get-MsolUser -All |Where {$_.IsLicensed -eq $true } |Select DisplayName,UsageLocation,@{n=”Licenses Type”;e={$_.Licenses.AccountSKUid}},SignInName,UserPrincipalName,@{n=”ProxyAddresses”;e={$_.ProxyAddresses}}| Export-csv -Path C:\ExportlicenseUsage.csv –notype … Continue reading Useful Powershell Cmdlets

Reset passwords for Active Directory Users

Reset and manage your Active Directory users’ Passwords Active Directory is one of the most esential and important tool in any company whether small or big. In most cases big companies have uncountable amount of tools to maintain and protect users and their credentials however almost most of those companies are not prepared to the … Continue reading Reset passwords for Active Directory Users

Finding Exchange Database hidden mailboxes. ​

Finding Exchange Database hidden mailboxes. Story: Maybe you have been in this situation before, trying to delete an Exchange database after moving all of its mailboxes, arbitration or archives to another server or database but it didn’t work and said that there is still something in the database?  Now I am in a similar situation … Continue reading Finding Exchange Database hidden mailboxes. ​

Get Report of Active Directory Locked Accounts and Machine they logged in from

Story: I got some clients  that have reported some of their users being locked out and not able to discover how is this happening or which device its getting locked on. Symptoms: The user lock happens after you setup your GPO policy to get user locked after failing to login for X times with the … Continue reading Get Report of Active Directory Locked Accounts and Machine they logged in from