I want to get the details (OS,version,UDID...) of the device (iPhone) when it is connected to a Windows machine. The only thing here is either using iTunes or another way.
I want this done from command line (NO GUI Tool).
You can find the details (OS version etc.) simply by going to Settings > General > About on your iPhone.
Your UDID can be mailed to you with this free app http://itunes.apple.com/app/ad-hoc-helper/id285691333?mt=8 if you don't want to connect to iTunes and have the information shown.
AFAIK there is no easy way of finding the UDID through CMD on a Windows, but you can try and navigate to this path through it:
This should show the UDID of the iPhone, if it has been connected through USB. Bare in mind there are many lines inside the folder, but the files referring to iDevices have 40 digits in it.
If you want the UDID of iOS devices backed up with iTunes you might look at the iTunes backup directories:
Windows XP: \Documents and Settings(username)\Application Data\Apple Computer\MobileSync\Backup\
Windows Vista and Windows 7: \Users(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
On Mac I type:
This gives my UDID as a directory.
On Vista / Win 7 you might try this in the Windows command line:
Or on XP:
I would like to know if this works, thanks! I figured this out from http://support.apple.com/kb/HT4946