YouTube – What is Google Voice?

No Comments »

YouTube – What is Google Voice?.

FREE IP Telephony, google voice in Canada

Posted on August 27th 2010 in IT/ Network Admin, news update

Export From Active Directory – CSVDE.exe

No Comments »

CSVDE is available from the Administrative tools and very quick and easy tool to export list of active directory items and sort them out.

http://www.computerperformance.co.uk/Logon/Logon_CSVDE_Export.htm

When looking for Enabled and Disabled accounts, unfortunately it’s not just a 1 or 0. The “UserAccountValues” combines a number of attributes into on decimal number.

http://www.computerperformance.co.uk/ezine/ezine23b.htm

Posted on August 16th 2010 in IT/ Network Admin

PerceivedType – Preview Pane in Windows7

No Comments »

I really like the preview pane of win7, it give you a “good size” outlook of what the file you are looking at is about. I definitely updated my system for with the PDF preview handler from

http://timheuer.com/blog/archive/2008/05/09/foxit-pdf-preview-handler.aspx

How about if I could see my script in the preview pane too?? is that a silly idea?? NOOOO!!

Check this out:

http://msdn.microsoft.com/en-us/library/cc144150%28VS.85%29.aspx

All you have to do is add a registry String value under the extension you want (e.g. HKEY_CLASSES_ROOT\.vbs )

Done!

Posted on August 13th 2010 in IT/ Network Admin

vbScript to Obtain IP Address

No Comments »

Being an administrator, you can’t do much if you don’t know about IP Addresses, and how frustrating and stupid it is that it is so difficult to get the IP Address of a machine is a single variable when you are scripting on Windows!!!

sure you can get it with “IPCONFIG” or “ipconfig | find “IP Address”" (winXP) or ipconfig | find “IPv4″ but that gives you a full line and you have to go filter for the ip address only.

Other solutions, vbscript , method, wmi? or registry?

can do both except that the WMI is weird and doesn’t seem to work similarly on winXP as on win7.

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration")
 
For Each objItem In colItems
wscript.echo objItem.IPAddress(0)
Next

Gives you the address but an error which doesn’t quite seem to make sense..

the other option, get it from Registry. This is tricky because the network interface subkey is different for every machine. The trick is to recursively search the subkey for the ValueName you are looking for.. et voilà!!

const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_
    strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces"
retval = objReg.EnumKey(HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys)
'WScript.Echo retval
strValueName = "IPAddress"
For Each subkey In arrSubKeys
      strKeyPath1 = strKeyPath & "\" & subkey
	  'wscript.echo strKeyPath
	  Return = objReg.GetMultiStringValue(HKEY_LOCAL_MACHINE,strKeyPath1, _
    strValueName,arrValues)
If (Return = 0) And (Err.Number = 0) Then
' Treat the multistring value as a collection of strings separated by spaces and output
    For Each strValue In arrValues
    WScript.Echo  strValue
Next
End If
 
Next
Posted on August 13th 2010 in IT/ Network Admin

India unveils prototype of $35 computer, paving way for solar-powered websurfing in villages – Yahoo! Canada News

No Comments »

India unveils prototype of $35 computer, paving way for solar-powered websurfing in villages – Yahoo! Canada News.

Glad to hear that some people are working in this direction, one’s at a conference on Afria, a person asked, “why is it that the people that needs it the most have it the least?” well cheers to Linux and the open source community! Make it stable and reliable!

Posted on July 24th 2010 in IT/ Network Admin, news update

Get your Free Phone Line Phone Service

No Comments »


Haven’t you tried the beta version of the freephone line? awesome look, much cleaner and stable when using multiple device connections.

Posted on June 27th 2010 in IT/ Network Admin, news update

Quick DHCP Server Configuration

No Comments »

I’ve some job coming up where I’ll have to reconfigure a few DHCP servers. GUI interface is great but when you have a lot to do and you don’t want to miss anything, it’s better to have a script ready and check for all configs required. Microsoft somehow got that and moving on with a “core” version for in its 2008 server. Time to really make use of the new “black and white – non-graphical” technology!!

netsh dhcp server <serverip> add scope <scopeip> <scopesubnet> “<ScopeName>” “<Scopedescription>”      
netsh dhcp server <serverip> Scope <scopeip> add iprange <start ip> <last ip>      
netsh dhcp server <serverip> Scope <scopeip> add excluderange <startexcludeip> <last exclude ip>      
netsh dhcp server <serverip> Scope <scopeip> set optionvalue 003 IPADDRESS “<router IP>”      
netsh dhcp server <serverip> Scope <scopeip> set optionvalue 006 IPADDRESS “<DnsSvr1>” “<DnsSvr2>”    
netsh dhcp server <serverip> Scope <scopeip> set optionvalue 015 string  “Domain Name”      
Netsh dhcp server <serverip> Scope <scopeip> set optionvalue 051 DWORD 86400      
netsh dhcp server <serverip> Scope <scopeip> set state 1        
netsh dhcp server <serverip> Scope <scopeip> add reservedip <reserve ip> <mac-address> “<reservename>” “<reserveDescription>” “BOTH”
netsh dhcp server <serverip> Scope <scopeip> add reservedip <reserve ip> <mac-address> “<reservename>” “<reserveDescription>” “BOTH”
netsh dhcp server <serverip> Scope <scopeip> add reservedip <reserve ip> <mac-address> “<reservename>” “<reserveDescription>” “BOTH”
netsh dhcp server <serverip> Scope <scopeip> add reservedip <reserve ip> <mac-address> “<reservename>” “<reserveDescription>” “BOTH”
                   
  1. Copy paste in spreadsheet, update all <..> as required.
  2. Copy paste to a text file,
    1. save as a .BAT, execute wherever with proper permissions.
    2. save to a single file and run using the C:\>netsh exec filename.txt command from the command line.

NB: Option value: 3=ROUTER ; 6=DNS ;15=Lease time; 51=Domain Name;

Posted on June 25th 2010 in IT/ Network Admin

Upgrading to WordPress 3.0

No Comments »

Pretty easy actually, noting that I’ve upgraded from WPMU 2.9 with just 2 sites and running Apache with XAMPP. For the windows IIS users, hmmm… I’ll have to figure it out later at work. But with mod_rewrite enable in httpd.conf and .htaccess already reconfigured on upgrade, that was easy.. The only hiccup was the thumbnails in the secondary blogs were not showing up although the path and files were correct. WordPress does give a note that

The wp-content/blogs.php file is deprecated. Please remove it and update your server rewrite rules to use wp-includes/ms-files.php instead.”

What it actually means is that you have to edit .htaccess under the root folder and change

“RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2″

For

“RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2″

Quite evident really but sometime you just have to know these things…

Posted on June 22nd 2010 in IT/ Network Admin, LAMP-sites

Subnet Calc

No Comments »

It’s been a while since I programmed in PHP/MySQL. The last program I made was to manage the set of IPv4 addresses we have across the different sites we manage. It never really kicked off but the IP calculator I made is pretty handy. I know there are quite a few, with more features out there on the Internet but I like mine, simple and for people who know what they are looking for. This site was quite nice because I really got into more details, AJAX features and the usability was quite nice. I hope I find the time to work more on it in the future.

Posted on June 22nd 2010 in IT/ Network Admin, LAMP-sites

Preview Handler for pdf-files

No Comments »

Windows 7 seemed to have a bug when it came to reading PDF files in the preview handler, in Windows Explorer Itself and in Outlook. Found the fix on MSOutlook.info

This should work directly on a 32-bit version of Windows with the latest version of Adobe Reader or Adobe Acrobat installed. Sadly, the installer from Adobe does not write the correct registry setting to also enable the previewer on a 64-bit version of Windows.

To fix this registry issue, you can download the fix. It will add the following registry entry;

Key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{DC6EFB56-9CFA-464D-8880-44885D7DC193}
Value name: AppID
Value type: REG_SZ
Value: {534A1E02-D58F-44f0-B58B-36CBED287C7C}

Note: This will also enable the PDF Preview feature in Windows Vista and Windows 7 itself.

Posted on June 9th 2010 in IT/ Network Admin