02/12/2016 1009 views
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?

There are no answers at this time