locked
Errors while running Install-RADCConnection.ps1 RRS feed

  • General discussion

  • Hey all,

    I discovered an error in the aforementioned script for installing webfeeds on Win7 and Server 2008R2 targets.

    For some reason when Get-ItemProperty is invoke in the script it was applying my file path to the item it was trying to get properties on.  I ended up re-writing the line to properly call for a registry entry rather than trying to parse a file path.  (Not sure when this behavior changed.)  Someone might want to update the script.

    Offending line @ line 43 in the original script read:

    if ( ($connectionKey | Get-ItemProperty -Name URL).URL -eq $URL)
     

    Had to change it to the following:

    if ((Get-ItemProperty -path Registry::$connectionKey).URL -eq $URL)

    I figured I couldn't be the only one that has run into this. 

    Thanks!

    Chris.


    • Changed type Bill_Stewart Thursday, December 3, 2015 2:49 PM Not a question
    Wednesday, December 2, 2015 3:14 PM

All replies