Unable to use .(propertyNameHere) all the sudden

So there I am testing a script using a typical $service = get-service followed by $service.name and nothing.  I get confused and hit $service and there is everything.  I try a few different commands and get the same result.  For some reason
I cannot use .property to get anything on any command I try.  No errors no warnings nothing.
Dislaimer 1:As usual I could be way off so no playing like I'm Frankenstein. Disclaimer 2: my Speeling and proofing skills are teh fail

so here is the full example:
$DatacenterName = Get-datacenter
$menu = @{}
For ($i=1;$i -le $DatacenterName.count; $i++){
    Write-host "$i. $($ClusterName[$i-1].name)"
    $menu.Add($i,($DatacenterName[$i-1].name))
[int]$ans = Read-Host 'Enter selection'
$DatacenterSelection = $menu.Item($ans)
Write-host ""
Write-Host "$DatacenterSelection selected."
Write-host ""
This was working just fine until about 12:15 then all the sudden i started getting:
21.
Cannot index into a null array.
At line:2 char:14
+ $ClusterName[ <<<< $i-1].name
    + CategoryInfo          : InvalidOperation: (21:Int32) [], RuntimeException
    + FullyQualifiedErrorId : NullArray
however when I select a number the proper name displays
I did however open another script that performs the same action just no using get-datacenter and it works fine.  I was looking for ideas.
Dislaimer 1:As usual I could be way off so no playing like I'm Frankenstein. Disclaimer 2: my Speeling and proofing skills are teh fail

Similar Messages

  • TS3297 I am unable to make purchases all the sudden the last few days on my Ipad, never had problems before a few days ago. I know my card works fine, I just keep getting a message saying "Please contact Itunes Support to complete this purchase"

    What support? All I get is an endless circle of running around. Things worked fine until recently, apperently real people to talk to don't exist here, just a never ending series of links that lead nowhere. It seems many others have had this same problem with Itunes, but what is the salution?

    Have you tried this link?
    http://www.apple.com/support/itunes/ww/
    Choose country, and then at the bottom of the list on the left there should be an option 'Contact Support' (via expresslane).
    It's only users here on this forum - unfortunately Apple don't seem to have a simple phone number and you have to get support via email or occasionally a live chat option.
    AC

  • Why are some web sites that i have been using for years now all the sudden changing themselves from Standards compliance mode to Quirks mode? How do I change them back to Standards compliance mode?

    Like I will be checking on an account { page is fine} go to a different screen then go back.... This is the fun part. The page starts off normal then all the sudden it shrinks and moves to the right side of the page with out me touching anything. I have had this happen to me a few different times and could not seem to get the help I needed. I bring up another page, look at page info and it says Rendering mode - Standards compliance mode, but on the messed up page it says Quirks mode. How do I get it back to Standards compliance mode?

    Good day ... As I leave California I am still very puzzled at how Yahoo can hijack my pages while on the internet ...? A friend of mine who lives here is also puzzled at how this is happening. I have taken screen grabs and would video it if that is possible ...? The screen grabs have the time taken on each grab, so one can see how fast this happens .. in a matter of seconds Yahoo jumps in with no relevance to my link I was trying to get to or the last hit or any thing stored in my history ... Is this possible ..? As I said I use a Macbook Pro 17", Os X 10.9.5, firefox 33.0.0 ..... Where is the fault ... Is my system compromised ..?
    I am now in South Africa and the problem still exists ... Please see screen grabs that I took and uploaded before ... Please help as I like Firefox over Safari, and do not wish to change ....

  • Otally unable to save a download. Unable to run a download and used up all the faq suggestions

    I am unable to save or run a download. The reason being ' unable to read source code' Contact server administrator. I have used up all the suggestions in faq's and am able to download using explorer

    I'm a designer not a code-geek and people like me need an easy way to grab screenshots. Codelines in developer tool is not an option! And the F1-option mentioned above does not work...
    Please, please give us the screen grab add-ons back!!!
    Or you have to implement a "right-click" feature within FF for screengrabbing...
    If not I'll have to downgrade my FF.
    (By the way - I've deselected the automatic upgrade option! Never again will I accept an auto upgrade!)

  • I have an I Phone 5 White 64G, 1/12 month old , and I was an a call and I use the speaker mode , then all the sudden I couldn't hear anything ... I reset the mute switch , I reset setting to factory setting and still no sound... I think speaker just burn

    I have an I Phone 5 White 64G, 1/12 month old , and I was an a call and I use the speaker mode , then all the sudden I couldn't hear anything ... I reset the mute switch , I reset setting to factory setting and still no sound... I think speaker just burn out:(

    sunshinesunshine wrote:
    So basically if a iphone has a fault after the 1 year warranty period is over, there is nothing the consumer can do but purchase a new phone??
    Pretty much. Except that Apple will replace it for a fixed fee that is far less than the cost of a new phone. In the US the replacement cost for an iPhone 4 is $149. It is comparable in the UK. Unless you can prove that the fault was present at the time of purchase. A switch wearing out would probably be considered normal wear and tear, not a "fault".

  • Where can i find the magnetic lasso tool in adobe photoshop touch? i used it all the time before but suddenly cant find it please help

    i started my photoshop touch after some while and now i cant find the magnetic lasso tool it used to be there i used it all the time for editting but now i cant find it maybe i disabled it somehow. can anyone tell how to enable it again?

    I honestly don't remember a magnetic lasso tool. (I've been using PS Touch since version 1.0.) The closest things I can think of are the Quick Selection Tool, the Scribble Selection Tool and the Magic Wand Tool, all located under the same set of tools (3rd set from the top in the tool panel).

  • I have an ipad 2 all the sudden I cannot use the wifi hoe can I get this fixed?

    I have an ipad 2 the wifi all the sudden will not connect how can I fix this problem?

    Try resetting your router.

  • My Lenovo ThinkStation D20 turn off all the sudden

    I have a ThinkStation D20 which used to work for a quiet few months until it starts to power off all the sudden and now I am unable to use it b/c it happens frequently I do re installing windows cleaning each fans swiping one of the fan and still the problem is happening. Please any ideas?

    Hello,
    I  also have same case recently, power-off suddenly when I using the D20 (around power-on 4 hrs then power-cut suddenly). 
    I have called the support center locally, that stated which may be the power supply problem, mother board problem or memory problem ? 
    I would like to learn from here that IF "memory problem" will cause power-off suddenly or will be blue screen ??
    Or we should say that case by case ?
    Thanks & regards,

  • Won't display my gadgets - explorer does - so not gadgets - what gives - use to all the time - not anymore - how do I get them back

    All of a sudden my gadgets don't display in my igoogle home page. Use to all the time and they will if I use internet explorer it just happens with mozilla firefox.
    How do I get them to display properly they just are listed on the left hand side of the screen.

    Symantec need to update their Firefox add-ons so that they are compatible with Firefox 4. They have indicated that for Norton 360 they plan to release an update to Norton 360 to support Firefox 4 in early May - http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720113635EN&ln=en_US
    Pending the update by Symantec, if you want to use the Norton add-ons you will need to downgrade to Firefox 3.6.
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • Firefox, all the sudden, will now load the site but will not let me go to a chat area in the website, what has happened?

    I have a site that i am on all the time and have never had a problem at all using it, but the other day all the sudden i could log into the site but when i go to use the chat room feature in the site i get kicked back out to the sign in area. I have used on other comp to make sure not site and have been able use w Internet Explorer... So i am at a loss as to what has happened all the sudden. Please help me...very frustrated w this... Jared

    Original problem I noticed was that regular websites I go to (such as msn) were only partially downloading.  I could see the text on the site but no pictures or videos.  All web surfing was extremely slow.  When I would go to a site such as man I would see another address in the lower left corner for "ads1.msads.net" or "cdn.optimizely.com" that is was trying to connect to. I tried using all three of my browsers (firefox, safari, chrome) and got the same response on all browsers.  After I spent some time researching the issue I decided I probably had a adware/malware problem so I decided to try adwaremedic.com.  I could also not access that site along with thesafemac.com or apple.com.  I was also getting the same response on my other devices (iPhone, iPad, and a mac air).  I could not access any of these sites on any of my devices although I could get to almost any other site although it was very slow.  At that point I decided to unplug the router.  I also did a number of other things before then to try and manually get rid of any adware.  Eventually I got msn back working, apple.com, and the speed was much faster.  But, I still can not access adwaremedic and thesafemac.com.  I could access these on my phone with 3G but not on my wifi.  This is where the problem still stands.  I am sure I still have some adware on my computer and need to find a way to remove it.  I am no techie so the complicated manual fixes are difficult for me to do.

  • ITunes 11 custom color changes all the sudden (album)

    Because I use iTunes 11 between 2 PCs, I've noticed this slight issue since, where one particular album on 1 PC gives a slightly different palette of colors than the other.
    All the sudden today, my Kelly Clarkson Greatest Hits: Chapter 1 Deluxe album decided to change colors. It went from this.... :
    To this:
    That said, what makes iTunes decide the color changes? By the way I did not change the album art at all to cause this. Both files are their exact same copies from their respective PCs.
    The last thing I did with my PC was using a software called "calibrize" to calibrate my PC monitor. Did that have something to do with it? Anyone else who have this similar situation?

    Found another thread in Discussions- Closing down then re-opening Itunes solves the problem.
    Worked for me.

  • Windows doesn't recognize WD Elements all the sudden but Ubuntu does

    Hey guys A couple of months ago I bought a WD Elements HDD and everything worked fine up till a few weeks ago. All the sudden the drive became unreadable. It does show in "My Computer", but not with the name I gave it. It has the name "Local Disk (I)" and nothing more. And what's even worse, when I doubleclick it, my explorer crashes. The same goes for device management. The drive is basicly unreachable. Some crucial information though. From the moment I bought the HDD I intended to split it in two partitions. One partition (250 GB) has been formatted to a EXT4 file system so I could install Ubuntu on it and another one was formatted to a FAT32 (250 GB) file system so I could use that space for both Windows and Linux. For like 2 months that worked perfectly so I do not believe it has anything to do with the split-up. However, what I do think is strange is that I can boot to Ubuntu without any problems and even acces my files on my FAT32 file system. I do not use Linux often and I do not want to keep porting files to my USB stick just because the HDD is not being recognized by Windows. It really gets ennoying and I'd like to solve this. Thanks in advanceRuben Labruyere

    Welcome to the Community.
    It's possible for Windows to have a file system conflict. How is the hard drive detected within Windows Disk Management?

  • Incompatible format all the sudden

    I am getting "incompatible format" all the sudden when trying to import into Studio Pro. I have tried many different compressions using compressor 3 but I getting the same result. Any help would be greatly appreciated.
    Thanks!

    Hi
    Probably you are trying to import HD assets in SD projects or vice versa.
    Hope that helps !
      Alberto

  • All the sudden my Lightroom isn't carrying the adjustments over to Photoshop. Any way to reset this?

    When I make adjustments to a photo in Ligthroom, such as Lens Correction, those adjustments are not applying to the image when I pull it into Photoshop.
    All the sudden it just stopped carrying the adjustments over. Any suggestions?

    LR 4.x incorporates the equivalent of ACR 7.x and Photoshop 6.x has the ACR plugin ACR 7.x so if they are both updated to the equivalent ACR version, then if you use the "edit in" function from LR the file with LR adjustments applied should open automatically in Photoshop.
    If you are choosing to open a file directly from Photoshop the only way the adjustments you made in Lightroom can be read by Photoshop is if you had Lightroom write the adjustments to xmp. By default Lightroom writes all adjustments to the LR "Catalog" and Photoshop cannot read from the LR Catalog.
    In LR you can use the option in preferences to "Automaticaly write to xmp" or from the LR Menu choose Photo> Save metadata to file (ctrl/command-s) to enable Photoshop read the adjustments.

  • Sound Card Hissing/Crackling All The Sudden (Xtreme Gamer)

    Hi All,
    I found these forums after doing some searching and not being able to remedy my problem.
    I have a computer with an ASUS mobo with the X-Fi Xtreme Gamer card. This combo has been working perfectly for me for over a year. I use windows vista. All the sudden the other day my sound is horrible. The music is buried under hissing and crackling and popping. ? I recently switched recievers so I thought the new one may have an issue with the computer. This was not the case though as the card now isn't working properly with my old reciever as well.
    I tried uninstalling the driver, moving the card to a different PCI slot and installing that 2.0 pack. Nothing has worked. ?
    The only thing that seems to be ok is when using headphones. This seems very strange as they are going into the exact same jack that my reciever has always been using.
    I'm hoping and praying that someone out there may have some advice about what I could try to help my situation. I really don't have the money to get a new card right now and feel like this shouldn't be happening as I have only owned it a little over a year and it has always worked with my configuration.
    Thank you so much for taking the time to read this!
    -Clipper

    > I had a problem with lockups and bugs with my sound card, until I reinstalled Daniel's pack.
    Hope this help,
    jmacguire
    ?These drivers are meant to solve crackling and pops and do work with NON Titanium cards. I tested this with a PCI-regular Fatality Pro.
    http://support.creative.com/downloads/welcome.aspx?nDriverType=#type_
    Cheers,
    jmacguire

Maybe you are looking for

  • Permissions issue:  can't sync music to ipod after installing leopard

    It says I don't have enough access privileges to write to my music folder, yet I'm the admin and the music folder says I can read and write. Here's the things I've tried: At first I thought it was an itunes problem so I re-installed itunes to no avai

  • Complex mapping question (aggregate)

    Hello all, For example, i have a xml structure in input : <XML Input Structure> <Line1> <Country> Fr </country> <Currency> EUR <Currency> <Town> Paris </Town> <MT> 10 </MT> </Line1> <Line2> <Country> Fr </country> <Currency> EUR <Currency> <Town> Par

  • Is there a Combo updater of 10.10.1?

    Usually, Apple offers two versions of OS-X installers. One simple "Updater", and one Combo version. The KB article mentiones (as usual): "Standalone installers are available from Apple Support Downloads." But: I can not find the download link to acce

  • J2ME Web Services proxy

    I try to register a web service with mobile studio, (I use my account on studio.oraclemobile.com) so as to generate J2ME stub and run the service in proxy mode. The problem is, whichever URL I put for wsdl files, I get "The URL you entered does not c

  • Downgrading subscription failed (no follow up by Adobe)

    Hi there, I just downgraded my Formscentral account by cancelling the Plus account and rebuying the Basic account. However, my clients do get messages that the limit has exceeded. Moreover, I already contacted support on the 2nd of January and they o