feat(RDPSign): Get-DesktopPaths OneDrive Desktop support + compressed changelogs

- Opdatér Get-DesktopPaths i alle 7 app-scripts: brug Get-ChildItem
  -Filter 'Desktop' -Depth 2 i stedet for Join-Path/Test-Path
  så OneDrive-omdirigeret Desktop også fanges
- Tilføj -Exclude 'Public','Default' for at springe systemprofiler over
- Komprimér og opdatér changelog i alle scripts med ny version
- Fjern old_app/ (arkiveret v1.0 scripts)
- Opdatér README.md og README.html
This commit is contained in:
GCH
2026-06-02 08:23:16 +02:00
parent 8e6dffa229
commit 2225abed9d
18 changed files with 575 additions and 1337 deletions
+3 -5
View File
@@ -1,10 +1,8 @@
# ============================================================
# CHANGELOG
# v1.1 - Added -AllUsers switch to remove signatures from RDP
# files on all user desktops instead of only the public
# desktop.
# Added Get-DesktopPaths helper function.
# v1.0 - Initial version, clears signing on public desktop only.
# v1.2 - Get-DesktopPaths: Depth 2 search for OneDrive Desktop
# v1.1 - AllUsers switch + Get-DesktopPaths helper
# v1.0 - Initial
# ============================================================
param(
+4 -12
View File
@@ -1,17 +1,9 @@
# ============================================================
# CHANGELOG
# v1.2 - Checks for specific expected .rdp filenames instead
# of just "any .rdp file exists on desktop".
# v1.1 - Added -AllUsers switch to check all user desktops
# instead of only the public desktop.
# Added Get-DesktopPaths helper function.
# v1.0 - Initial version, checks public desktop only.
# ============================================================
param(
[switch]$AllUsers
)
# v1.3 - Get-DesktopPaths: Depth 2 search for OneDrive Desktop
# v1.2 - Detect by expected filename list
# v1.1 - AllUsers switch + Get-DesktopPaths helper
# v1.0 - Initial
# ============================================================
# Update this list whenever .rdp files are added or removed
# from the rdp-files\\ folder.
+3 -4
View File
@@ -1,9 +1,8 @@
# ============================================================
# CHANGELOG
# v1.1 - Added -AllUsers switch to deploy to all user desktops
# instead of only the public desktop.
# Added Get-DesktopPaths helper function.
# v1.0 - Initial version, deploys to public desktop only.
# v1.2 - Get-DesktopPaths: Depth 2 search for OneDrive Desktop
# v1.1 - AllUsers switch + Get-DesktopPaths helper
# v1.0 - Initial
# ============================================================
param(
+3 -4
View File
@@ -1,9 +1,8 @@
# ============================================================
# CHANGELOG
# v1.1 - Added -AllUsers switch to sign RDP files on all user
# desktops instead of only the public desktop.
# Added Get-DesktopPaths helper function.
# v1.0 - Initial version, signs on public desktop only.
# v1.2 - Get-DesktopPaths: Depth 2 search for OneDrive Desktop
# v1.1 - AllUsers switch + Get-DesktopPaths helper
# v1.0 - Initial
# ============================================================
param(
+3 -5
View File
@@ -1,10 +1,8 @@
# ============================================================
# CHANGELOG
# v1.1 - Added -AllUsers switch to check certificate and signed
# RDP files across all user desktops instead of only the
# public desktop.
# Added Get-DesktopPaths helper function.
# v1.0 - Initial version, checks public desktop only.
# v1.2 - Get-DesktopPaths: Depth 2 search for OneDrive Desktop
# v1.1 - AllUsers switch + Get-DesktopPaths helper
# v1.0 - Initial
# ============================================================
param(
+3 -4
View File
@@ -1,9 +1,8 @@
# ============================================================
# CHANGELOG
# v1.1 - Added -AllUsers switch to remove files from all user
# desktops instead of only the public desktop.
# Added Get-DesktopPaths helper function.
# v1.0 - Initial version, removes from public desktop only.
# v1.2 - Get-DesktopPaths: Depth 2 search for OneDrive Desktop
# v1.1 - AllUsers switch + Get-DesktopPaths helper
# v1.0 - Initial
# ============================================================
param(
+3 -42
View File
@@ -2,48 +2,9 @@
# INSTALL + DETECT - Sandbox test script
# ============================================================
# CHANGELOG
# v1.1 - Added -AllUsers switch to deploy and detect across all
# user desktops instead of only the public desktop.
# Added Get-DesktopPaths helper function.
# v1.0 - Initial version, public desktop only.
# ============================================================
param(
[switch]$AllUsers
)
# Setup logging
$baseFolder = Join-Path $env:SystemDrive "Intune"
$logFile = Join-Path $baseFolder "DesktopShortcuts.log"
# Check if Sysnative exists (means script is running in 32-bit mode on x64 OS)
if (Test-Path "$($env:windir)\Sysnative") {
$rdpSignPath = "$($env:windir)\Sysnative\rdpsign.exe"
} else {
$rdpSignPath = "$($env:windir)\System32\rdpsign.exe"
}
if (-not (Test-Path $baseFolder)) {
New-Item -Path $baseFolder -ItemType Directory -Force | Out-Null
}
function Write-Log {
param($Message)
$logMessage = "$(Get-Date -Format 'dd-MM-yyyy HH:mm'): $Message"
Add-Content -Path $logFile -Value $logMessage
Write-Host $logMessage
}
function Get-DesktopPaths {
if ($AllUsers) {
Get-ChildItem "$env:SystemDrive\Users" -Directory -Exclude "Public","Default" | ForEach-Object {
Get-ChildItem $_.FullName -Directory -Filter "Desktop" -Depth 2 -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty FullName
}
} else {
[Environment]::GetFolderPath("CommonDesktopDirectory")
}
}
# v1.2 - Get-DesktopPaths: Depth 2 search for OneDrive Desktop
# v1.1 - AllUsers switch + Get-DesktopPaths helper
# v1.0 - Initial
# ============================================================
# INSTALL
# ============================================================