Hello, I have a script to remove the desktop icon and pinned icon for chrome. How can I get the script to target the currently logged on user ?
%username% does not work. Any advice would be great thank you !!
4 Comments   [ + ] Show Comments


  • how are you executing the script?
  • With a batch script that calls the ps1
  • try %USERPROFILE%\desktop
  • Another question, in which context are you executing the script?
Please log in to comment

There are no answers at this time


Answer this question or Comment on this question for clarity