Using a dependency in KACE
I'm working on a script that requires reading a password from a text file and passing it into a power shell script. I'm trying to call the password in my power shell like this:
$password = Get-Content C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\628\securestring.txt
but it doesn't work. However, if I move the text file off of Kace and into my C drive like this then the code works.
$password = Get-Content C:\Users\tmarshall\Documents\securestring.txt
Has anyone had a similar issue or know of a different way to call the dependency that will work?