[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5053
  • Last Modified:

Find if there is sound hardware availability or not.

Hi,

I want to find if there is the hardware availabily for sound.As some of my servers do not have the option.I have the machine names in the file.

Regards
Sharath
0
bsharath
Asked:
bsharath
  • 12
  • 6
1 Solution
 
Farhan KaziSystems EngineerCommented:
:: ================
:: READ THIS FIRST
:: ================
:: * To run this script you must have domain administrators rights.
:: * This script require "Computers.txt" file on C: drive root from where it will pick computer names.
:: * Successful run will generate "SoundCardRpt.txt" on C: drive root.
:: * Copy and Paste following script into notepad and save it with any name having .bat extension.
:: Batch Script Start

@Echo Off
SETLOCAL EnableDelayedExpansion

IF NOT EXIST C:\Computers.txt Goto ShowErr
FOR %%R IN (C:\Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr
IF EXIST C:\SoundCardRpt.txt DEL /F /Q C:\SoundCardRpt.txt

FOR /F %%c IN ('Type Computers.txt') Do (
    Echo Processing: %%c
      PING -n 1 -w 1000 %%c|Find /I "TTL" >NUL
      IF NOT ErrorLevel 1 (
            WMIC /NODE:"%%c" ONBOARDDEVICE GET Description | Find /I "Audio" >NUL
            IF NOT ErrorLevel 1 (
                  Echo %%c: system has Sound Card >>C:\SoundCardRpt.txt) ELSE (
                  Echo %%c: system does not have Sound Card >>C:\SoundCardRpt.txt)
      )ELSE (Echo %%c: Not able to connect >>C:\SoundCardRpt.txt)
)      

Goto EndScript
:ShowErr
Echo "C:\Computers.txt" file does not exist or file is empty!
:EndScript
ENDLOCAL
:: Batch Script End
0
 
bsharathAuthor Commented:
Farhan.

I get this.
hydsophos: system does not have Sound Card
Indiasophos: system does not have Sound Card
dev-chen-mrd100: system does not have Sound Card


But Dev-chen-mrd100 has a sound card...
0
 
bsharathAuthor Commented:
Any help Farhan...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Farhan KaziSystems EngineerCommented:
Run following commands and post the results:

DevCon -m:\\hydsophos FindAll @ROOT\MEDIA\*
DevCon -m:\\Dev-chen-mrd100 FindAll @ROOT\MEDIA\*
DevCon -m:\\Dev-chen-mrd100 FindAll * | Find /I "Audio"
DevCon -m:\\Dev-chen-mrd100 FindAll * | Find /I "MEDIA"

Note: If you don't have DevCon.exe utility, you can download from following link:
http://support.microsoft.com/kb/311272
0
 
bsharathAuthor Commented:
Thanks Farhan.Was waiting for you from a long time.

I am on it...

I have posted some Q's which you can check...

Mostly on ADS data changing,Adding...
0
 
bsharathAuthor Commented:
Here are the results Farhan.


C:\>DevCon -m:\\hydsophos FindAll @ROOT\MEDIA\*
ROOT\MEDIA\MS_MMACM                                         : Audio Codecs
ROOT\MEDIA\MS_MMDRV                                         : Legacy Audio Drive
rs
ROOT\MEDIA\MS_MMMCI                                         : Media Control Devi
ces
ROOT\MEDIA\MS_MMVCD                                         : Legacy Video Captu
re Devices
ROOT\MEDIA\MS_MMVID                                         : Video Codecs
5 matching device(s) found on \\hydsophos.

C:\>DevCon -m:\\Dev-chen-mrd100 FindAll @ROOT\MEDIA\*
ROOT\MEDIA\MS_MMACM                                         : Audio Codecs
ROOT\MEDIA\MS_MMDRV                                         : Legacy Audio Drive
rs
ROOT\MEDIA\MS_MMMCI                                         : Media Control Devi
ces
ROOT\MEDIA\MS_MMVCD                                         : Legacy Video Captu
re Devices
ROOT\MEDIA\MS_MMVID                                         : Video Codecs
5 matching device(s) found on \\Dev-chen-mrd100.

C:\>DevCon -m:\\Dev-chen-mrd100 FindAll * | Find /I "Audio"
HDAUDIO\FUNC_01&VEN_11D4&DEV_1986&SUBSYS_17AA1015&REV_1005\4&1E69C172&0&0001: Mi
crosoft UAA Function Driver for High Definition Audio - Adi 1986
PCI\VEN_8086&DEV_27D8&SUBSYS_101517AA&REV_01\3&61AAA01&0&D8 : Microsoft UAA Bus
Driver for High Definition Audio
ROOT\LEGACY_AUDIOSRV\0000                                   : Windows Audio
ROOT\MEDIA\MS_MMACM                                         : Audio Codecs
ROOT\MEDIA\MS_MMDRV                                         : Legacy Audio Drive
rs
SW\{2F412AB5-ED3A-4590-AB24-B0CE2AA77D3C}\{9B365890-165F-11D0-A195-0020AFD156E4}
: Microsoft Kernel Audio Splitter
SW\{A7C7A5B0-5AF3-11D1-9CED-00A024BF0407}\{9B365890-165F-11D0-A195-0020AFD156E4}
: Microsoft Kernel System Audio Device
SW\{B7EAFDC0-A680-11D0-96D8-00AA0051E51D}\{9B365890-165F-11D0-A195-0020AFD156E4}
: Microsoft Kernel Wave Audio Mixer
SW\{CD171DE3-69E5-11D2-B56D-0000F8754380}\{9B365890-165F-11D0-A195-0020AFD156E4}
: Microsoft WINMM WDM Audio Compatibility Driver
SW\{EEC12DB6-AD9C-4168-8658-B03DAEF417FE}\{ABD61E00-9350-47E2-A632-4438B90C6641}
: Microsoft Kernel DRM Audio Descrambler

C:\>DevCon -m:\\Dev-chen-mrd100 FindAll * | Find /I "MEDIA"
ROOT\MEDIA\MS_MMACM                                         : Audio Codecs
ROOT\MEDIA\MS_MMDRV                                         : Legacy Audio Drive
rs
ROOT\MEDIA\MS_MMMCI                                         : Media Control Devi
ces
ROOT\MEDIA\MS_MMVCD                                         : Legacy Video Captu
re Devices
ROOT\MEDIA\MS_MMVID                                         : Video Codecs
STORAGE\REMOVABLEMEDIA\7&2188E020&0&RM                      : Generic volume
STORAGE\REMOVABLEMEDIA\7&26EBCA8A&0&RM                      : Generic volume
STORAGE\REMOVABLEMEDIA\7&2C40C824&0&RM                      : Generic volume
STORAGE\REMOVABLEMEDIA\7&2C889678&0&RM                      : Generic volume
STORAGE\REMOVABLEMEDIA\7&2E3C4F1E&0&RM                      : Generic volume
STORAGE\REMOVABLEMEDIA\7&33317DA3&0&RM                      : Generic volume
STORAGE\REMOVABLEMEDIA\7&F90AC9D&0&RM                       : Generic volume

0
 
Farhan KaziSystems EngineerCommented:
Can you please test all these four commands on a machine where sound card not present.
0
 
bsharathAuthor Commented:
Farhan,

For all the commands i get this.

DevCon failed.
0
 
bsharathAuthor Commented:
Any help...
0
 
bsharathAuthor Commented:
Any help Farhan....
0
 
Farhan KaziSystems EngineerCommented:
Sorry for the delay. I will post an updated script in few hours.
0
 
bsharathAuthor Commented:
Ok Farhan....

Any help on the other posts....Which i feel only you can do it....
0
 
Farhan KaziSystems EngineerCommented:
Can you plz post here the URL's
0
 
Farhan KaziSystems EngineerCommented:
:: ================
:: READ THIS FIRST
:: ================
:: * To run this script you must have domain administrators rights.
:: * This script require "Computers.txt" file on C: drive root from where it will pick computer names.
:: *  This script uses 'DevCon.exe' utility, you can download from following link:
::       http://support.microsoft.com/kb/311272
:: * Successful run will generate "SoundCardRpt.txt" on C: drive root.
:: * Copy and Paste following script into notepad and save it with any name having .bat extension.
:: Batch Script Start

@Echo Off
SETLOCAL EnableDelayedExpansion
IF NOT EXIST C:\Computers.txt Goto ShowErr
FOR %%R IN (C:\Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr
IF EXIST C:\SoundCardRpt.txt DEL /F /Q C:\SoundCardRpt.txt

FOR /F %%c IN ('Type Computers.txt') Do (
    Echo Processing: %%c
      PING -n 2 -w 1000 %%c|Find /I "TTL" >NUL
            IF NOT ErrorLevel 1 (
                  DevCon -m:\\%%c FindAll @ROOT\MEDIA\* |FIND /I "ROOT\MEDIA\" >NUL
                  IF NOT ErrorLevel 1 (
                  Echo %%c: system has sound card >>C:\SoundCardRpt.txt) ELSE (
                  Echo %%c: system does not have sound card >>C:\SoundCardRpt.txt)
            )ELSE (Echo %%c: Not able to connect >>C:\SoundCardRpt.txt)
)      

Goto EndScript
:ShowErr
Echo "C:\Computers.txt" file does not exist or file is empty!
:EndScript
ENDLOCAL
:: Batch Script End
0
 
bsharathAuthor Commented:
Hi Farhan,

For machines which does not have Sound card also i get this.

dev-chen-mrd100: system has sound card  (Has a sound card)
dev-chen-nas01: system has sound card (No)
indiasophos: system has sound card  (No)
in-isa-srv: system has sound card  (No)
indc01: system has sound card  (No)
0
 
bsharathAuthor Commented:
Any help...
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 12
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now