Can anyone please tell me how to access/ write to the below path without using an environmental variable ?
C:\Users\logged in user\AppData\Local
The reason for this is it will be deployed via a scheduled task…and doing it that way does not allow the environmental variables…ie script runs but doesn’t make any changes, weird I know !
I don’t think this question is relevant to PowerShellProTools but I will respond it anyway.
As you are deploying a scheduled task I assume it is running under Local System account. The logged in user is the one running process explorer.exe therefore the way to find it is using any of the two commands below. I recommend you to trying both and see what results you obtain.