Skip to content

Instantly share code, notes, and snippets.

$DebugMode = $true # Set to $true for debugging
# ================================
# [LOGGING] Initialize Log File
# ================================
$log = "$env:TEMP\UnisysIPFieldAssistant.log"
"[$(Get-Date)] Script launched." | Out-File $log -Append
# ================================
# [ELEVATION] Relaunch as Admin if Needed
$DebugMode = $true # Set to $true for debugging
# ================================
# [LOGGING] Initialize Log File
# ================================
$log = "$env:TEMP\UnisysIPFieldAssistant.log"
"[$(Get-Date)] Script launched." | Out-File $log -Append
# ================================
# [ELEVATION] Relaunch as Admin if Needed
@GobleSt
GobleSt / gist:09f431ffec008cab85fad7cf5bd90a35
Created October 7, 2025 09:22
modified version with issues
$DebugMode = $true # Set to $true for debugging
# ================================
# [LOGGING] Initialize Log File
# ================================
$log = "$env:TEMP\UnisysIPFieldAssistant.log"
"[$(Get-Date)] Script launched." | Out-File $log -Append
# ================================
# [ELEVATION] Relaunch as Admin if Needed
$DebugMode = $true # Set to $true for debugging
# ================================
# [LOGGING] Initialize Log File
# ================================
$log = "$env:TEMP\UnisysIPFieldAssistant.log"
"[$(Get-Date)] Script launched." | Out-File $log -Append
# ================================
# [ELEVATION] Relaunch as Admin if Needed