diff --git a/components/Applications/ScanSnapHome.ps1 b/components/Applications/ScanSnapHome.ps1 index 4cde339..1e2fb16 100644 --- a/components/Applications/ScanSnapHome.ps1 +++ b/components/Applications/ScanSnapHome.ps1 @@ -37,7 +37,7 @@ System.String - Progress messages and status information Version: 2.0.0 Author: Enhanced for Datto RMM Function Library Component Category: Applications (Software Deployment) -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment Datto RMM Applications Exit Codes: - 0: Success (installation or update completed) diff --git a/components/Scripts/FocusedDebloat.ps1 b/components/Scripts/FocusedDebloat.ps1 index 3c680f6..15c86e0 100644 --- a/components/Scripts/FocusedDebloat.ps1 +++ b/components/Scripts/FocusedDebloat.ps1 @@ -15,7 +15,7 @@ Category=Applications ; Level=Medium(3) ; Timeout=900s ; Build=1.1.0 .INPUTS customwhitelist(String) ; skipwindows(Boolean) ; skiphp(Boolean) ; skipdell(Boolean) ; skiplenovo(Boolean) .REQUIRES -LocalSystem ; PSVersion >=2.0 +LocalSystem ; PSVersion >=5.0 .PARAMETER customwhitelist Optional array of app names to preserve during removal .OUTPUTS diff --git a/shared-functions/Core/RMMLogging.ps1 b/shared-functions/Core/RMMLogging.ps1 index dcae530..cfe8e04 100644 --- a/shared-functions/Core/RMMLogging.ps1 +++ b/shared-functions/Core/RMMLogging.ps1 @@ -13,7 +13,7 @@ Provides consistent logging functions with structured output formats optimized f .NOTES Version: 3.0.0 Author: Datto RMM Function Library -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment #> # Global counters for tracking script execution metrics diff --git a/shared-functions/Core/RMMSoftwareDetection.ps1 b/shared-functions/Core/RMMSoftwareDetection.ps1 index f76159d..e20ad66 100644 --- a/shared-functions/Core/RMMSoftwareDetection.ps1 +++ b/shared-functions/Core/RMMSoftwareDetection.ps1 @@ -13,7 +13,7 @@ Provides fast, reliable software detection methods optimized for Datto RMM envir .NOTES Version: 3.0.0 Author: Datto RMM Function Library -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment Avoids: Win32_Product WMI class (causes MSI repair) #> diff --git a/shared-functions/Core/RMMValidation.ps1 b/shared-functions/Core/RMMValidation.ps1 index 712a156..62fbbc2 100644 --- a/shared-functions/Core/RMMValidation.ps1 +++ b/shared-functions/Core/RMMValidation.ps1 @@ -13,7 +13,7 @@ Provides validation functions for Datto RMM environment variables, parameters, a .NOTES Version: 3.0.0 Author: Datto RMM Function Library -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment #> function Get-RMMVariable { diff --git a/shared-functions/Utilities/FileOperations.ps1 b/shared-functions/Utilities/FileOperations.ps1 index 338cfbd..94a7cb8 100644 --- a/shared-functions/Utilities/FileOperations.ps1 +++ b/shared-functions/Utilities/FileOperations.ps1 @@ -14,7 +14,7 @@ Provides file and directory utility functions optimized for Datto RMM environmen .NOTES Version: 3.0.0 Author: Datto RMM Function Library -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment #> function New-RMMDirectory { @@ -272,7 +272,7 @@ function Expand-RMMArchive { switch ($ArchiveType) { 'ZIP' { - # Use .NET Framework for ZIP extraction (PowerShell 2.0 compatible) + # Use .NET Framework for ZIP extraction (PowerShell 5.0+ compatible) Add-Type -AssemblyName System.IO.Compression.FileSystem [System.IO.Compression.ZipFile]::ExtractToDirectory($ArchivePath, $DestinationPath) } diff --git a/shared-functions/Utilities/NetworkUtils.ps1 b/shared-functions/Utilities/NetworkUtils.ps1 index da6f27c..ffd89c4 100644 --- a/shared-functions/Utilities/NetworkUtils.ps1 +++ b/shared-functions/Utilities/NetworkUtils.ps1 @@ -13,7 +13,7 @@ Provides network-related utility functions optimized for Datto RMM environment: .NOTES Version: 3.0.0 Author: Datto RMM Function Library -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment #> function Set-RMMSecurityProtocol { diff --git a/shared-functions/Utilities/RegistryHelpers.ps1 b/shared-functions/Utilities/RegistryHelpers.ps1 index 0c10587..702c876 100644 --- a/shared-functions/Utilities/RegistryHelpers.ps1 +++ b/shared-functions/Utilities/RegistryHelpers.ps1 @@ -13,7 +13,7 @@ Provides registry utility functions optimized for Datto RMM environment: .NOTES Version: 3.0.0 Author: Datto RMM Function Library -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment #> function Get-RMMRegistryValue { diff --git a/templates/SelfContainedApplication-Template.ps1 b/templates/SelfContainedApplication-Template.ps1 index 68e2639..96a9a87 100644 --- a/templates/SelfContainedApplication-Template.ps1 +++ b/templates/SelfContainedApplication-Template.ps1 @@ -12,7 +12,7 @@ Features: - Comprehensive error handling and logging - File attachment support for installers - Registry-based software detection -- PowerShell 2.0+ compatible +- PowerShell 5.0+ compatible .COMPONENT Category: Applications (Software Deployment) @@ -36,7 +36,7 @@ ForceReinstall = false .NOTES Version: 1.0.0 Author: Datto RMM Self-Contained Architecture -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment Deployment: DIRECT (paste script content directly into Datto RMM) #> diff --git a/templates/SelfContainedScript-Template.ps1 b/templates/SelfContainedScript-Template.ps1 index 94c9090..2576658 100644 --- a/templates/SelfContainedScript-Template.ps1 +++ b/templates/SelfContainedScript-Template.ps1 @@ -12,7 +12,7 @@ Features: - Comprehensive error handling and logging - Flexible timeout support - System state validation -- PowerShell 2.0+ compatible +- PowerShell 5.0+ compatible .COMPONENT Category: Scripts (General Automation/Maintenance) @@ -36,7 +36,7 @@ DryRun = false .NOTES Version: 1.0.0 Author: Datto RMM Self-Contained Architecture -Compatible: PowerShell 2.0+, Datto RMM Environment +Compatible: PowerShell 5.0+, Datto RMM Environment Deployment: DIRECT (paste script content directly into Datto RMM) #>