Create Public Desktop Shortcut to Network Share
Creates a .lnk shortcut on the Public Desktop pointing to a network share or application path.
Script Actions
Script Actions
Credibility
Last reviewed
Jul 8, 2026
Last tested
Jun 1, 2026
PowerShell
Windows PowerShell 5.1
Safety score
100/100
Documentation
100/100
Community rating
Coming soon
Downloads
Coming soon
Review status
approved
Verified by OperatorOS
Review
OperatorOS verified
Catalog
Official library
Safety
Static scan completed
Create Public Desktop Shortcut to Network Share is part of the official OperatorOS ScriptForge catalog. It has been reviewed for metadata completeness, safety scan results, PowerShell compatibility, and technician-facing documentation.
Script Body
# OperatorOS ScriptForge imported Xodus library script
# Workbook ref: SCR-013
# Title: Create Public Desktop Shortcut to Network Share
# Category: Endpoint Configuration
# Ready state: Ready
# Workbook risk: low
# Body type: PowerShell / Command Block
$OperatorOSFrameworkCandidates = @(
(Join-Path -Path $PSScriptRoot -ChildPath '..\..\..\framework\OperatorOS-ScriptFramework.psm1'),
(Join-Path -Path $PSScriptRoot -ChildPath '..\..\..\..\framework\OperatorOS-ScriptFramework.psm1')
)
$OperatorOSFrameworkPath = $OperatorOSFrameworkCandidates | Where-Object { Test-Path -LiteralPath $_ } | Select-Object -First 1
if ($OperatorOSFrameworkPath) {
Import-Module $OperatorOSFrameworkPath -Force
}
$ErrorActionPreference = 'Stop'
$ShortcutName = "Shared Folder.lnk"
$TargetPath = "\\server\share"
$PublicDesktop = [Environment]::GetFolderPath("CommonDesktopDirectory")
$ShortcutPath = Join-Path $PublicDesktop $ShortcutName
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($ShortcutPath)
$Shortcut.TargetPath = $TargetPath
$Shortcut.Description = "Shared folder shortcut"
$Shortcut.Save()
Get-Item $ShortcutPath
Requirements
- Windows PowerShell 5.1 or newer for Windows Endpoint.
- Required tooling: PowerShell / WScript.Shell.
- Recommended run context: RMM LocalSystem/Admin.
Parameters
ShortcutName
string / required
Workbook input carried forward from: $ShortcutName, $TargetPath, $Description
TargetPath
path / required
Workbook input carried forward from: $ShortcutName, $TargetPath, $Description
Description
string / required
Workbook input carried forward from: $ShortcutName, $TargetPath, $Description
Examples
Run script
Runs the imported OperatorOS script after reviewing parameters and placeholders.
./endpoint-configuration-create-public-desktop-shortcut-to-network-share.ps1Changelog
1.0.0 - Imported from Xodus / OperatorOS Script Library workbook with OperatorOS metadata, redaction notes, and framework bootstrap.