3/22/2023 0 Comments Powershell set icon for shortcut$iconlocation = "C:\ProgramData\AutoPilotConfig\Icons\SharePointicon.ico" $path = "C:\Users\Public\Desktop\SharePointOnline.url" $null = $WshShell = New-Object -comObject WScript.Shell This script contains this code: if (-not (Test-Path "C:\Users\Public\Desktop\SharePointOnline.url")) For example, when you have a custom application which requires a custom removal script this is where I store these scripts.Īfter that we copy the 2 files to these folders and last but not least we run the Powershell script. I always create these folders to run and store installation/removal scripts. Powershell.exe -Executionpolicy bypass -File "C:\ProgramData\AutoPilotConfig\SharePointShortCut.ps1" Xcopy "SharePointicon.ico" "C:\ProgramData\AutoPilotConfig\Icons" /Y Xcopy "SharePointShortCut.ps1" "C:\ProgramData\AutoPilotConfig" /Y If not exist "C:\ProgramData\AutoPilotConfig\Icons" md "C:\ProgramData\AutoPilotConfig\Icons" The install.cmd cointains the following code: if not exist "C:\ProgramData\AutoPilotConfig" md "C:\ProgramData\AutoPilotConfig" To deploy this shortcut I need to following files: I am deploying a shortcut for my SharePoint Online environment. ![]() ![]() PreparationĬreate a folder where you store the files that you need to deploy. For that reason I have created a manual which you can use to deploy this using a Win32App. When we as IT People deploy Windows 10 AutoPilot we often get the feedback from users that they miss their shortcuts for SharePoint and such. Microsoft365, Office365, powershell, SharePoint\, SharePointOnline
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |