Hello all, i am working on the project that i am struggling a little bit. I am tasked with creating a shortcut for a website but i need to use a custom icon for it. Here is my folder structure.
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.
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.
OK, I actually did not get where your script files is saved but you could make your life easier by placing it in the root folder of the package source. Then this would work.
But since you seem satisfied with the solution you have all is fine now.