Windows 7: Connect your Laptop to Projector or second monitor


I have to see users struggle to connect to their laptops to the projector. Most laptop vendors provide a hotkey (e.g., Function + F8 is to switch between laptop screen and projector) and it mostly works. When it doesn’t work, user usually lost. In Windows 7, I would say press Windows ÿ key + P. … Continue reading Windows 7: Connect your Laptop to Projector or second monitor

SCOM 2007 R2 – RMS server not seeing the Agents or Agents are not talking to the server


My SCOM 2007 R2 agents are stopped talking to the RMS server from one fine day.  I don’t remember doing anything on SCOM servers like no new management packs. The following event ids were getting my nerves. Servers show up a “Not monitored” and with blank circle icon. Event ID 21016 OpsMgr was unable to … Continue reading SCOM 2007 R2 – RMS server not seeing the Agents or Agents are not talking to the server

How to delete huge directory with millions of files?


I had to delete 8 millions files and folders. Opening up Windows Explorer and hitting delete key would take days to delete the whole directory structure. Killer of this deletion is ENUMERATION. That’s right, it takes forever to enumerate directory structure and file. I came up with Power Shell command that can delete the whole … Continue reading How to delete huge directory with millions of files?

Windows Server 2008: Default Gateway disappears upon Reboot, every time


I had a battle with a Windows Server 2008 machine. It’s TCP/IP default gateway disappears upon reboot. I tried to retype the default gateway and reboot many times. It seemed like a strange issue. I found this forum discussion here. Essence of the discussion is TCP/IP stack or file might be corrupted and the solution … Continue reading Windows Server 2008: Default Gateway disappears upon Reboot, every time

SCOM: The crazy “MomUIGeneratedRule” with crazy numbers in reports, What’s up Microsoft SCOM Dev team?


This is really bad! Microsoft SCOM dev team. I mean really really bad. After I installed the SCOM product and we started using it. My boss have high hopes on this product. Here is what happened. I created new Performance collection rules for specific counters on our few servers. After few days I can right … Continue reading SCOM: The crazy “MomUIGeneratedRule” with crazy numbers in reports, What’s up Microsoft SCOM Dev team?

How to Delete folders by wildcard search? Answer: use PowerShell


I had a requirement to delete directories by wildcard. Unfortunately RMDIR  User* will not work in command prompt. I found the answer in PowerShell. The following command delete a bunch of folders by wildcard selection.   The following command deletes all folders starting with "2008*" under C:program FilesDBappLogs.   get-childitem -path 'C:Program FilesDBappLogs' -filter 2008* | … Continue reading How to Delete folders by wildcard search? Answer: use PowerShell