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

Testing Office 365 SMTP relay

In order to test Office 365 SMTP relay you will have to create a user with an Exchange online license. After the email is activated for this user you can test this user for relay with the following powershell. First connect to Microsoft Online service with this user that you’ll be using for relaying. $msolcred … Continue reading Testing Office 365 SMTP relay

Exchange Server backdoor investigation tools

The Story After the disastrous exploit that was found in Microsoft Exchange Servers lots of corporations started immediately patching their servers with the latest Cumulative update and Security patches. The question is would those patches be enough if the server is already hacked or have a backdoor installed already? What are those 0-day exploits ? … Continue reading Exchange Server backdoor investigation tools

Secure Your DNS Traffic with the outside world

DoH in Microsoft Windows OS Until this moment Microsoft Windows OS doesn’t support DNS over HTTPS, The feature will most likely be implemented in future builds but no body knows when is that however, You can still take a peak into the feature which is in preview mode/ Benefit of using DoH on an OS … Continue reading Secure Your DNS Traffic with the outside world