
on Instagram: http://instagr.am/p/IZVPA/
Author Archives: christian
My latest Instagram: Grapes of Italy

on Instagram: http://instagr.am/p/IZUiF/
My latest Instagram: Little Burji, 838m tooth stick

on Instagram: http://instagr.am/p/IY2tB/
My latest Instagram: Alba

on Instagram: http://instagr.am/p/IT85e/
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
.NET self-registering Windows Service
Service Pack 1 for Office 2010 and ShrarePoint 2010 announced
| The Microsoft Online Sustained Engineering Team just announced the upcoming release of Service Pack 1 for Office 2010 and SharePoint 2010. |