hello
do you know why running service returns $env:Appdata path :
C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\
while regular script points to standard user appdata folder c:\users\<user>\appdata\Roaming
PS Service env:APPDATA path
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- daniel kusnir
- Posts: 75
- Last visit: Tue May 23, 2023 10:50 am
Re: PS Service env:APPDATA path
ah just found out. since its running under service account, it has different path to profile