Hello everyone I'm trying to create a shortcut using a GPO. For some reason I get the 0x80070002 error code when applying my GPO.
My goal is to create a shortcut named Mailspring in %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs
I added the gpresult /h and a screenshot of my gpo.
I configured this in my GPO:
name: %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Mailspring
target type: File system object
Location: Specify full path
Target path: %LocalAppData%\Mailspring\mailspring.exe
When I use this GPO and change the target type to URL it does work.
When I change %ALLUSERSPROFILE% to C:\ProgramData and %LocalAppData% to C:\Users\tim_hui it still does not work.
Does anyone have experience with this problem? I hope I gave enough information to work with I am willing to provide more when necessary.
Thanks in advance,