wmi

wmic -U DOMAIN/user --password='password' //IP_HOST "select Caption,CSDVersion,CSName from Win32_OperatingSystem" | grep Windows
Get windows version with servicepack and hostname
Sample Output
wmic -U DOMAIN/user --password='password'  //IP_HOST "select Caption,CSDVersion,CSName  from Win32_OperatingSystem" | grep Windows

-3
2010-09-20 14:23:37

What Others Think

fantastic, thanks PS: TapeDrive Select * from Win32_TapeDrive UserAccount Select * from Win32_UserAccount ComputerSystem Select * from Win32_ComputerSystem NTEvent Select * from Win32_NTLogEvent MEMCACHE Select * from WIN32_CACHEMEMORY PageFileSet Select * from Win32_PageFileSetting Voltage Select * from Win32_VoltageProbe Alias Select * from Msft_CliAlias NetClient Select * from WIN32_NetworkClient SysAccount Select * from Win32_SystemAccount NetLogin Select * from Win32_NetworkLoginProfile DiskQuota Select * from Win32_DiskQuota DESKTOP Select * from WIN32_DESKTOP SystemEnclosure Select * from Win32_SystemEnclosure BootConfig Select * from Win32_BootConfiguration WMISet Select * from Win32_WMISetting RecoverOS Select * from Win32_OSRecoveryConfiguration NetProtocol Select * from Win32_NetworkProtocol SystemSlot Select * from Win32_SystemSlot SoftwareFeature Select * from Win32_SoftwareFeature NetUse Select * from Win32_NetworkConnection SCSICONTROLLER Select * from Win32_SCSIController Startup Select * from Win32_StartupCommand LogicalDisk Select * from Win32_LogicalDisk SoundDev Select * from WIN32_SoundDevice SoftwareElement Select * from Win32_SoftwareElement MemPhysical Select * from Win32_PhysicalMemoryArray PageFile Select * from Win32_PageFileUsage Process Select * from Win32_Process PortConnector Select * from Win32_PortConnector Job Select * from Win32_ScheduledJob DCOMAPP Select * from WIN32_DCOMApplication Service Select * from Win32_Service BaseBoard Select * from Win32_BaseBoard LOGON Select * from Win32_LogonSession SysDriver Select * from Win32_SystemDriver Temperature Select * from Win32_TemperatureProbe DeviceMemoryAddress Select * from Win32_DeviceMemoryAddress NTEventLog Select * from Win32_NTEventlogFile BIOS Select * from Win32_BIOS DMAChannel Select * from Win32_DMAChannel LoadOrder Select * from Win32_LoadOrderGroup TimeZone Select * from Win32_TimeZone CPU Select * from WIN32_PROCESSOR Port Select * from Win32_PortResource Share Select * from Win32_Share Partition Select * from Win32_DiskPartition FSDir Select * from Win32_Directory NTDOMAIN Select * from Win32_NTDomain Environment Select * from Win32_Environment VolumeQuotaSetting Select * from Win32_VolumeQuotaSetting QuotaSetting Select * from Win32_QuotaSetting IDECONTROLLER Select * from Win32_IDEController DiskDrive Select * from Win32_DiskDrive DataFile Select * from CIM_DataFile CDROM Select * from Win32_CDROMDrive QFE Select * from Win32_QuickFixEngineering OnBoardDevice Select * from Win32_OnBoardDevice PrintJob Select * from Win32_PrintJob UPS Select * from Win32_UninterruptiblePowerSupply CSProduct Select * from Win32_ComputerSystemProduct Server Select * from Win32_PerfRawData_PerfNet_Server Printer Select * from Win32_Printer IRQ Select * from Win32_IRQResource Product Select * from Win32_Product PrinterConfig Select * from Win32_PrinterConfiguration Group Select * from Win32_Group DesktopMonitor Select * from WIN32_DESKTOPMONITOR OS Select * from Win32_OperatingSystem Registry Select * from Win32_Registry NICConfig Select * from Win32_NetworkAdapterConfiguration MemLogical Select * from Win32_LogicalMemoryConfiguration NIC Select * from Win32_NetworkAdapter
oernii3 · 591 weeks and 6 days ago
Travelling by trains and catching glimpses of the countryside is one of the best experiences that people can have. Especially in a vast country like India, trains are as good as lifelines, that keep the extreme corners connected. Though air and road travel has become popular these days, travelling by train gives a different feel altogether. Today, we shall tell you what it means when you dream about seeing yourself travelling by train. https://www.coolastro.com/dream-about-train-meaning-and-interpretation/
coolastro · 43 weeks and 5 days ago
You always share something new. I love to visit your post, My nephew asks me to help him with his holiday homework. But I am very busy with my office work. So I was looking for [url=https://www.essayservicesreviewsclub.com/homeworkmarket-com-review/]homework market reviews[/url] for my nephew's work. And I hope I will found it soon.
SamuelERamirez · 38 weeks and 1 day ago
You always share something new. I love to visit your post, My nephew asks me to help him with his holiday homework. But I am very busy with my office work. So I was looking for homework market reviews for my work. And I hope I will found it soon.
SamuelERamirez · 38 weeks and 1 day ago
All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks ????
seomind · 6 weeks and 3 days ago
Really special blog post, Thanks for your time designed for writing It education. Outstandingly drafted guide, if only every webmasters marketed the exact same a better standard of subject matter whilst you, cyberspace was obviously a better set.Agen Judi Sbobet Satisfy continue the good work!
Geekstation · 5 weeks and 1 day ago
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents.more info Keep up the good work
Geekstation · 5 weeks ago
Fantastic submit, Many thanks regarding revealing This kind of information. Fantasticly composed write-up, only if almost all people supplied the identical amount of articles when you, the net would have been a greater spot.slot online terbaik You should keep writing!
Geekstation · 4 weeks and 5 days ago
This really is awesome publish as well as i love to to learn this particular publish. your website is actually wonderful and also you possess great personnel inside your weblog. good discussing stay the best. write for us
Geekstation · 4 weeks and 4 days ago
I'd state which this can be a an excellent publish of the excellent individual, i am very happy to observe this particular.deliverance ministry
Geekstation · 4 weeks and 3 days ago
I'd state which this can be a an excellent publish of the excellent individual, i am very happy to observe this particular. situs slot deposit bsi
Geekstation · 4 weeks and 1 day ago
Fantastic submit, Many thanks regarding revealing This kind of information. Fantasticly composed write-up, only if almost all people supplied the identical amount of articles when you, the net would have been a greater spot. write for us VPN You should keep writing!
Geekstation · 4 weeks and 1 day ago
I'd state which this can be a an excellent publish of the excellent individual, i am very happy to observe this particular. iptv service
Geekstation · 4 weeks ago
I'd state which this can be a an excellent publish of the excellent individual, i am very happy to observe this particular. IPTV Bitcoin
Geekstation · 4 weeks ago
My partner and i astonished with all the examination an individual built to get this distinct distribute extraordinary. Great action! check my blog
Geekstation · 3 weeks and 6 days ago
The audio my company will be awesome. You might have several extremely skilled performers. My partner and i want an individual the most effective regarding accomplishment.
Geekstation · 3 weeks and 5 days ago
It's which means that amazing together with inspiring. We really enjoy any designs together with whoever should get it all during the post shall be grinning. UK FAKE DRIVING LICENCE
Geekstation · 3 weeks and 1 day ago
Packers and Movers Noida to Gurgaon Good publish, it's a very awesome weblog you have right here, continue the great function, is going to be back again.
Geekstation · 2 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands


Similar Commands


Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: