Category Archives: Microsoft
Export and Import Mailbox data to a PST file on Exchange Server 2007
This procedure describes how to export all mailboxes from one Exchange Server to a PST files and how to import the PST files to another Exchange Server in a different domain. Before you begin make sure that:
Modify the Computer icon text to show logged on username in Windows Server 2008 (R2)
Changing the text on the Computer icon on your Remote Desktop Services Session Host is handy when a user calls you and you want to know which Session Host the user is logged on. The procedure to do this has changed since Windows Server 2003.
Synchronize time with external NTP server on Windows Server 2008 (R2)
Time synchronization is an important aspect for all computers on the network. By default, the clients computers get their time from a Domain Controller and the Domain Controller gets his time from the domain’s PDC Operation Master. Therefore the PDC must synchronize his time from an external source. I usually use the servers listed at the NTP Pool Project website.
Windows 7 Magnifier Shortcuts and Features
Windows Recovery–Load Registry
Finding process that locks a DLL
| You want to replace a dll on a system, but you get access denied, although you’re admin, have the necessary rights.. so which process is locking the particular file/library. I know, there is handles.exe from Sysinternal Suite, and plenty other tools that do the trick.But, you don’t need third-party tools to get the answer, just use tasklist.exe or PowerShell. |
Getting registry last write time with PowerShell
All registry keys have a value associated with called the Last Write Time. This is analogous to the last modification time for a file. When ever the registry key or one if its values has been created, modified, or deleted the value is updated to the current local system time. Unfortunately, there is no Last Write Time associated with a registry value, but it can be infered from the Last Write Time of the key.
Here is a PowerShell script to read the Last Write Time for a registry key.
Usage:
Get-RegKeyLastWriteTime.ps1 <Key> <SubKey>
Scan IP range using ping
IP scanner for the poor ones ![]()
Just open up a cmd.exe and change the ip range..
C:\>FOR /L %x in (1,1,255) do ping -n 1 192.168.2.%x | find /I "reply" >> c:\temp\pingresult.txt
The above command uses a FOR loop to ping each device and looks for "Reply" in the output. If there is a "Reply" then the host is up.. Results will be written to C:\temp\pingresults.txt
Or the PowerShell version:
C:\> 1..255 | foreach-object { (new-object System.Net.Networkinformation.Ping).Send("192.168.2.$_") } | where-object {$_.Status -eq "success"} | select Address