PowerShell: Find Account Lockouts and which computer is locking the account?


How many time have you researched where the account lockouts are happening? which computer is locking the AD account? It could be disconnected remote desktop sessionscheduled taskApplication on a serverService running with AD account contextWireless profile with PEAP setup on Phones and devices So I wrote this PowerShell script to query the Security events from … Continue reading PowerShell: Find Account Lockouts and which computer is locking the account?

PowerShell: How to list all SQL Servers on the network?


It's a one line code. Make sure you run this code on a SQL server. OR on your computer where SQL Admin Console is installed. Note: Make sure SQL Browser service is started on the computer you are running this code. Open PoweShell, copy/paste this line: [System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources() That is it. Here is the sample Output:

How do you delete Office 365 account permenantly?


Well, there are situations you need to delete an Office 365 (MSOL) account permanently. E.g., I need to create a new account with the same name but for a different user. Since there is a deleted MSOL account still exists, you can't create the new user. It is very easy. Open PowerShell and connect to … Continue reading How do you delete Office 365 account permenantly?

Exchange: Make new retention policy as default and Apply all mailboxes


After you created an Exchange Retention Policy either in Exchange Online or On-Prem Exchange, you have to make this new retention policy as Default, so new mailboxes will get this policy automatically. To see the available retention policies, type Get-RetentionPolicy To change your Default Retention Policy for all users, run the following (Copy the retention … Continue reading Exchange: Make new retention policy as default and Apply all mailboxes

How to open Shared Mailboxes in Outlook with its own mail profile?


This question has been asked many times and usually assumed it is not possible. It is possible to create a stand-alone Outlook mail profile for Office 365 / Exchange Online or even in On-Premises Exchange server. You don't need to enable Shared Mailbox's AD account or use Shared Mailbox's AD account. All you need to … Continue reading How to open Shared Mailboxes in Outlook with its own mail profile?

Outlook: How to delete emails after X number of days automatically?


This is client side solution of automatically deleting emails after X number of days.  We are going to use Outlook's AutoArchive feature. Don't worry AutoArchive feature can delete emails also.  I would recommend create an Outlook rule to move the emails you want to delete after X number of days. Just to make sure this … Continue reading Outlook: How to delete emails after X number of days automatically?

PowerShell: Remembered Wireless Networks and it’s passwords


Hackers can run a script on your computer by any available methods (Malware, downloaded program, java script) to get your wireless password easily. That’s why you should not download any executable program from unknown and unreliable websites or a USB disk from parking lot. Once they have the wireless password, they can connect to the … Continue reading PowerShell: Remembered Wireless Networks and it’s passwords

Firefox Error code: NS_ERROR_NET_INADEQUATE_SECURITY


If you get this error (NS_ERROR_NET_INADEQUATE_SECURITY) when visting HTTPS site on Firefox, that means the web server has something wrong with SSL certificate (old ciphers, lower TLS version). Here is how to fix your Firefox to access that page: Open Firefox and type about:config in the address bar Click on I accept the risk button Type http2 … Continue reading Firefox Error code: NS_ERROR_NET_INADEQUATE_SECURITY

Exchange: Filter Distribution Groups by Alias with a Variable


If you ever search a mailbox or distribution group in Exchange using this command:      $vAlias = "Sales"     Get-DistributionGroup -Filter { Alias -eq $vAlias } Aaaannnddd, It doesn't work. But This works:      Get-DistributionGroup -Filter { Alias -eq "Sales" }  Man, that's frustrating. But there is a solution. Set the filter query like this:     $vAlias = "Sales" … Continue reading Exchange: Filter Distribution Groups by Alias with a Variable

On-Prem Exchange: Conference Rooms are not processing Meeting Requests from Exchange Online


Say your conference room mailboxes are not processing meeting requests from Office 365 or from partner organization, and you want to process those meeting requests too, you come to right place. Two ways you can accomplish that:  One of Two: On the Exchange Connector that receives emails from Office 365 or from different mail servers, … Continue reading On-Prem Exchange: Conference Rooms are not processing Meeting Requests from Exchange Online