I have a little script that places some fields and values in an XML file which I need to roll out to the estate.
This works fine when I have the path defined explicitly thus:
$path = “C:\IS\XMLTest\user.config”
However the file I actually need to modify resides quite a way down in a users profile. In fact it is here:
Is there a way to use the %username% variable in $Path to replace the username part of the statement?