The icon that i MUST use is located in a Spport Files Folder. Somehow i need to tell the script to copy that file from Support folder to “C:\ProgramData” and i don’t really know how to do that. Any help would be great.
Thank you for your reply. Here is the scenario. I will be building a package with SCCM to deploy the shortcut. it will end up on a users computer in a cache folder with some random name. So it will look like this.
SCCM Cache folder with a random name → ServiceNow Web Shortcut. Inside that folder there will be Powershell Script and another folder called Supported Files. Script needs to copy file from the Support Files folder to C:\ProgramData.
I just don’t know how to point the script to that Support Files Folder since there is no way for me to know that would be a name of that cache folder that SCCM will create.
no. the folder structure is like this. SCCM Cache folder with some name → ServiceNow Web Shortcut. Inside ServiceNow Web Shortcut folder is the powershell script and another folder called SupportFiles.