none
Cached UNC files? RRS feed

  • Question

  • We have a number of scripts that read an XML for data.

    At the beginning of the scripts there is a line like:

    [xml]$configFile = Get-Content '\\<server>\<share>\config.xml'

    For years now, whenever I make a change to the XML file, the change is read into the script the next time the script runs.

    This changed about a month ago. I made a change to the xml file and the scripts are using the old value which absolutely does not exist in the current xml file. The only conclusion I can come to is that the xml file has been cached somehow. I have checked and there are no offline files configured.

    Any explanations?

    Thanks

    David Z

    • Moved by Bill_Stewart Wednesday, September 4, 2019 6:02 PM Unanswerable drive-by question
    Monday, February 25, 2019 10:49 PM

All replies

  • Sorry, but how could we ever know what changed in your environment or how your environment is configured. There is absolutely no way to help you here in this forum.

    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    • Proposed as answer by jrv Monday, February 25, 2019 11:32 PM
    • Unproposed as answer by David Zemdegs Tuesday, February 26, 2019 12:41 AM
    Monday, February 25, 2019 10:55 PM
  • This question has nothing to do with scripting.  It is a question about the environment and, as BOfH_666 has explained, there is no way for us to know why this is happening.


    \_(ツ)_/

    Monday, February 25, 2019 11:34 PM