Hello there everyone, needed some guidelines as to what I am trying to do. I have an SCCM deployment that is running in System Context and I need to remove a start menu short from the logged-on user. I have tried a few things after searching the internet, but no dice. Is what I am trying to do possible?
Thank you for your time and help with this question
Assuming the shortcut is in each user’s profile. (not a shortcut in \Program Data)
The best way to deal with user profile changes is using Active Setup.
You’ll have to create a script or an EXE to delete shortcut but PSADT has the Set-ActiveSetup function to handle all the dirty work.
Another way is to create code to enumerate all the current profiles and delete the shortcuts.
Because you are running the script as admin, you’ll be able to see all the profiles.