Target Logged on User with powershell
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
Answers (0)
Please log in to answer
Be the first to answer this question
userprofile=%systemDrive%\Users\{username} - SMal.tmcc 8 years ago