Float Icon for Atera - readily available upfront to all customers. Easy Access when needed to raise a ticket.
Float Icon for Atera - readily available upfront to all customers. Easy Access when needed to raise a ticket.
 Neriza Mae Dalanon
    
 shared this idea
Neriza Mae Dalanon
    
 shared this idea
      
    - 
       Uriel Sapir
    
 commented Uriel Sapir
    
 commentedTry the scrip below. 
 # Set the path of the folder to be created
 $folderPath = "C:\Foldername\"# Check if the folder already exists 
 if(!(Test-Path $folderPath)){
 # If the folder does not exist, create it
 New-Item -ItemType Directory -Path $folderPath
 }# Download image from AWS S3 
 # Define the URL of the image you want to download
 $url = "https://s3.us" # Replace with the image URL you want to download# Define the local file path where you want to save the image 
 $localFilePath = "C:\Foldername\"# Create a web client object 
 $webClient = New-Object System.Net.WebClient# Download the image from the URL to the local file path 
 $webClient.DownloadFile($url, $localFilePath)# Create shurtcut for portl on the user desktop # Define the URL of the webpage 
 $url = "http://ClientName.servicedesk.atera.com"# Get the All Users desktop folder path 
 $desktopPath = [System.IO.Path]::Combine([System.Environment]::GetFolderPath("CommonDesktopDirectory"), "Customer Portal.lnk")# Create a shell object 
 $shell = New-Object -ComObject WScript.Shell# Create the shortcut 
 $shortcut = $shell.CreateShortcut($desktopPath)# Set the properties of the shortcut 
 $shortcut.TargetPath = $url
 $shortcut.WindowStyle = 1 # 1 = Normal window, 3 = Maximized
 $shortcut.IconLocation = "C:\FoldeName\icon.ico" # Set the path to your custom icon (optional)
 $shortcut.Description = "Shortcut to ClientName.servicedesk.atera.com" # Set the shortcut description (optional)# Save the shortcut 
 $shortcut.Save()# Clean up objects 
 $shell = $null
 $shortcut = $null
