/build/static/layout/Breadcrumb_cap_w.png
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

Comments

  • how are you executing the script?
  • With a batch script that calls the ps1
  • try %USERPROFILE%\desktop
    userprofile=%systemDrive%\Users\{username}
  • Another question, in which context are you executing the script?

There are no answers at this time