Report computers that do not have installed CDROMDrive

Using powershell I am attempting to get a report based on a predefined list of computers that shows which do not have a CDROMDrive.
Here is a sample of how I was attempting to generate the report. The problem is that if a computer does not have a CDROMDrive there is not output.
$computers = Import-Csv c:\garb\9010-13.csv
$computers | foreach-object {
 Get-WmiObject -computername $_.computername win32_cdromdrive | Select-Object pscomputername, caption, drive}
My current code is working in that it's output shows the CDROMDrives available on each computer.
The code is not working in that it returns no information if a computer does not have any CDROMDrives available. I need the output to show computers that do not have CDROMDrives specifically.  

This is how to do negative logic:
$computers |
foreach-object {
if(Get-WmiObject win32_cdromdrive -ComputerName $_.Computername -ea 0){
Write-Host "Has drive $($_.computername)" -ForegroundColor green
}else{
Write-Host "DOes not have drive $($_.computername)" -ForegroundColor green
¯\_(ツ)_/¯

Similar Messages

  • Query for all computers that do NOT have either the 32-bit or 64-bit version of a product

    I've found plenty of people asking how they can create a query that will list all of the computers that have either the 32-bit or 64-bit version of an application. I want to do the opposite.  I want a collection where all of the members do NOT have
    the latest versions of an application that comes in both 32-bit and 64-bit.
    Correct me if I'm wrong, but wouldn't a NOT IN sub-select query be the only way to get a list of computers that do NOT have an application installed?  I can create a NOT IN that works with either 32-bit or 64-bit ADD_REMOVE_PROGRAMS, but never both.

    Yes, for CM07 you will need to use sub-select. (CM12 you can use "exclude collections").
    I think you need to use an OR, between your two sub-select statements, for your requirement.
    edit: actually, maybe that should be an AND that you need. How about you try each, and let us know?
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • I have an iMac G5 isight (20" screen) Leopard OS 10.5.8 I do not have an intel chip. I am unable to open movie links on facebook using Adobe flash player. I called Adobe Systems and they said Adobe no longer supported computers that did not have intel chi

    I have an iMac G5 (20 inch screen) i sight (no intel chip).Leopard OS 10.5.8. Recently I went on Facebook and tried to open a movie site someone had sent me on Facebook andwhen I tried to open the video on Facebook, I was told  I had to upgrade my Adobe Flash Player. i tried to do this, but turns out that Facebook is requiring folks to have an intel chip in order to view movies...this is outrageous!  Just think of all the folks in the world who have great running pre intel chip Apple computers. I called the Adobe Help line and was told that I really needed to buy a new computer....no thanks. How do I find a way to get a new version of Adobe for Facebook and youtube. I wish Apple could develop a way to have intel chips installed in the older computers. If you have any suggestions on this please let me know.
    Thanks, Sarah

    Either get a screen cleaning cloth, or carefully us a slightly damp lint-free cloth and dry off with a dry link-=free cloth.
    As to Flash Videos: I am in a similar same boat. I cannot watch flash videos on the BBC website or on BBC iPlayer, although all other flash videos (YouTube and FaceBook for example) are fine.
    For reasons that passeth all understanding, they work with the PPC version of Firefox, called TenFourFoxG5.app, once you have anabled plug-ins, as it does not natively support Flash.
    You can download TenFourFoxG5 from here:
    http://www.floodgap.com/software/tenfourfox/
    Now for the intersting bit: TenFourFox, like Firefox, does not support most plug-ins. Unless you are prone to headaches (in which case don't) you can read about that here:
    http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    But there is a workaround!
    Open TenFourFox and type in the address bar: about:config (no spaces) and click return. This gives you a warning that it might harm the application. Ignore that and click on 'I'll be careful, I promise' and you get the config file that you can edit - with great care.
    Look/search (scroll down) for: tenfourfox.plugins.enabled
    Set it to true. (Double click it to toggle it)
    Now close TenFourFox, open it again, and Flash will now work, as it now uses the plug-ins that Safari has stored.
    I am using Flash 10.1.102.64 in TenFourFox and it works just fine.

  • I Have a Macbook Pro that does not have a disk drive.  How do I install the Adobe Photoshop Elements 11 that came with the Epson scanner I purchased.  I registered the S/N and I can't find the Free download anywhere only trials.

    I Have a Macbook Pro that does not have a disk drive.  How do I install the Adobe Photoshop Elements 11 that came with the Epson scanner I purchased.  I registered the S/N and I can't find the Free download anywhere only trials.

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How do I install Photo Elements on a mac that does not have a DVD/CD drive?

    How do I install Photo Elements on a mac that does not have a DVD/CD drive?

    Hi Lauren,
    You can download it from : http://www.adobe.com/downloads and then install.
    If you are using an older version you can try downloading it from :
    http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • Since I have Yosemite on my iMac I can't view PDF files in Safari anymore.  It keeps telling me to upgrade my Adobe Reader, but it is the latest version.  Please help?  I don't have this problem on my Macbook that does not have Yosemite installed.

    Since I have Yosemite on my iMac I can't view PDF files in Safari anymore.  It keeps telling me to upgrade my Adobe Reader, but it is the latest version.  Please help?  I don't have this problem on my Macbook that does not have Yosemite installed.

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and check the box marked
              Allow Plug-ins
    Then click
              Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
              Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • How to fix The SIM card inserted in this iPhone does not appear to be supported. The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation

    The SIM card inserted in this iPhone does not appear to be supported.
    The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information.

    Or if you've recently got the phone unlocked then you'll need to connect it to  itunes and then do a fresh restore to unlock it ,although for most users simply connecting to itunes for few seconds did the trick.

  • TS2529 The SIM card inserted in this iPhone does not appear to be supported. The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation ser

    The SIM card inserted in this iPhone does not appear to be supported.
    The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information
    what can in do?

    Well unfortunatly that advice does not always work. I bought a unlocked iphone4  from apple several years ago and went to att on a no contract basis. Six months later the phone crashed while updating the operating system. Apple replaced the phone with a new one. All is fine till I got a iphone5 and gave te phone to my cousin. The phone is now locked to att but att says the IMEI number is not a valid ATT IMEI and therfore cant unlock it. Apple says there is nothing They can or are willing to do so now I am stuck for a 600.00 phone that can't be used.
    If anyoun knows a way naround this situation mI would appreciate a heads up.

  • A report that lists all non-exempt employees that do not have a supervisor

    HI all,
    Please help. This is urgent.
    bold "A report that lists all non-exempt employees that do not have a supervisor assigned in R/3." bold
    I have already selected non-exempt employees but don't know how to select people who do not have a supervisor" What selection criteria I should choose in the ad-hoc query
    Thanks a bunch,
    Rashmi

    Hi
    Actually its not that difficult. You can give a criteria in selection where relationship A002 is equal to a space . Replace A002 in this example with the relatioship you have defined for 'Reports(line) to'.
    Regards
    Waz

  • I want to install firefox 3.6 on a rhel 5.6 box that does not have yum on it.

    I want to install firefox 3.6 on a rhel 5.6 box that does not have yum on it. In short I want a firefox 3.6 bundle. I have been through days and days of dependencies and there seems to be no end. I just want the bundle to install firefox 3.6 without all the dependency problems
    [root@vc_mark ~]# rpm -ih firefox-3.6.13-2.el5.x86_64.rpm
    warning: firefox-3.6.13-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
    error: Failed dependencies:
    xulrunner >= 1.9.2.13-3 is needed by firefox-3.6.13-2.el5.x86_64
    libasound.so.2()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libatk-1.0.so.0()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libcairo.so.2()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libgdk_pixbuf-2.0.so.0()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libgdk-x11-2.0.so.0()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libgtk-x11-2.0.so.0()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libpango-1.0.so.0()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libpangocairo-1.0.so.0()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libxpcom.so()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    libxul.so()(64bit) is needed by firefox-3.6.13-2.el5.x86_64
    [root@vc_mark ~]#
    Everything I install has more and more dependencies and it seems unending. Is there a bundle to install this?

    Here's the link to 3.6.13 via the oldapps site http:// www. oldapps. com/ firefox.php?old_firefox=101?download
    ''there is a link for downloading 3.6.13 from Mozilla in the support article that TonyE hyperlinked above - please do not link to non-official websites in this forum - moderator''

  • HT201240 I have a new macbook pro that did not have a disk, OS X was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., so how do i

    I have a new macbook pro that did not have a disk, OS X lion 7.3.4 was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., now there is some mysterious administrator name and or password??

    See #5
    Step by Step to fix your Mac

  • How do I install my photoshop elements to my new laptop that does not have a cd disk drive?

    How do I install my photoshop elements 12 to my new laptop that does not have a disk drive?

    download pse 12 trial and activate with your serial number, http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements

  • HT204053 The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert ano

    sir have this error so what can i do The SIM card that you currently have installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information.

    It looks like the iPhone is locked to a carrier that is not the one you are trying to use.
    You need to determine which carrier it is locked to and then contact them to see if they are willing to authorise the unlocking of your iPhone.  As ManSinha mentioned, many carriers will only authorised the unlock if requested by the customer who had the contract with them for this iPhone.
    Remember that only the carrier who owns the lock on your Iphone can authorise Apple to unlock the iPhone in their servers.  You need to contact the carrier or have the previous owner of the iPhone request the unlocking.

  • HT1937 the SIM card that you currently have installed in this iPhone is form a carrier that is not supported under the activation policy that is currently assigned by the activation server.this is not a hardware issue with the iphon. please insert another

    the SIM card that you currently have installed in this iPhone is form a carrier that is not supported under the activation policy that is currently assigned by the activation server.this is not a hardware issue with the iphon. please insert another SIM card from supported carrier or request that this iPhone be unlocked by your carrier.

    Similar issue
    here is the description
    I have similar message but for me the Verizon guys said they unlocked it and when I actually connected to iTunes using Verizon sim card and then did the restore as new iphone then everything worked well and at the end i saw the message "Congrats, your iphone is now unlocked" and then I did the set up as new iphone for my kid.
    Once new apple ID was set up, then I removed the verizon SIM and then inserted prepaid t-mobile sim card and after the phone booted up then I got the same message like  above...."not supported"
    What do i do now? I think the phone is unlocked right?
    Also do I need to insert Verizon SIM card and do restore as NEW and this time do not set up the iphone but change the SIM card and then set up or ?
    I am confused and other threads were talking that if you get congrats message then u shd be good to use other SIM cards....please help!!!

  • HT1414 The Sim card that you currently have installed in this iphone is from a carrier that is not supprotedunder the activation policy that is currently assigned by the activation server. this is not a hardware issue with the iphone. please insert anothe

    The Sim card that you currently have installed in this iphone is from a carrier that is not supprotedunder the activation policy that is currently assigned by the activation server. this is not a hardware issue with the iphone. please insert another sim card from a supported carrier or request that this iphone be unlocked by your carrier.please contact apple for more information.

    I have similar message but for me the Verizon guys said they unlocked it and when I actually connected to iTunes using Verizon sim card and then did the restore as new iphone then everything worked well and at the end i saw the message "Congrats, your iphone is now unlocked" and then I did the set up as new iphone for my kid.
    Once new apple ID was set up, then I removed the verizon SIM and then inserted prepaid t-mobile sim card and after the phone booted up then I got the same message like  above...."not supported"
    What do i do now? I think the phone is unlocked right?
    Also do I need to insert Verizon SIM card and do restore as NEW and this time do not set up the iphone but change the SIM card and then set up or ?
    I am confused and other threads were talking that if you get congrats message then u shd be good to use other SIM cards....please help!!!

Maybe you are looking for

  • Need a routine

    hi all technically this isnt a java question but as ur all great help when it comes to problem solving i thought id ask anyway. Basically i need a routine for automatically determining a battle outcome in a calculated combat arena for a game im makin

  • How do I set up a vanity URL?

    Hi all, Please forgive me if this is an obvious question but I'm a newbie to BC. I have a new site set up on BC and need to set up a vanity URL. i.e. we need to put on printed material www.websitename.com/events Does anyone know where I can set this

  • Still wont open (iTunes 8)

    Since the upgrade, the iTunes icon bounces but wont open. I've tried the different tips posted on the discussions but it still wont open. I have no plugins and I've removed the itunes.plist Can someone help me or direct me to a topic with the solutio

  • IPhoto and photos wanished from MacBook Pro with OSX10.9

    iPhoto and photos wanished from MacBook Pro. Apple just offer to buy iPhoto. The laptop was baught in 2010 with OS X ~10.6. Now it has OS X 10.9. I do not know how to recover the application and files. Thanks for your help

  • Reg: Downgrading and data management

    Hello all, I've been experiencing some performance issues with my Mac Book Pro lately (I've been having trouble using more than 5-6 tabs in safari or chrome while using itunes and Microsoft Word); I've bought this notebook in mid 2010. It's the 13-in