We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a237f commit 7d80226Copy full SHA for 7d80226
1 file changed
SysAdmin-Tools/SystemConfiguration-and-Deployment/Broadcast-ADUser-LogonMessage-viaGPO.ps1
@@ -1,4 +1,4 @@
1
-<#
+<#
2
.SYNOPSIS
3
Post-logon script to display a standard message via an HTA file.
4
@@ -35,10 +35,10 @@ $consolePtr = [Win32]::GetConsoleWindow()
35
# --------------------------------
36
37
# Logging configuration
38
-$scriptName = [System.IO.Path]::GetFileNameWithoutExtension($MyInvocation.MyCommand.Name)
39
-$logDir = "C:\Scripts-LOGS"
+$scriptName = [System.IO.Path]::GetFileNameWithoutExtension($MyInvocation.MyCommand.Name)
+$logDir = "C:\Scripts-LOGS"
40
$logFileName = "${scriptName}.log"
41
-$logPath = Join-Path $logDir $logFileName
+$logPath = Join-Path $logDir $logFileName
42
43
function Log-Message {
44
param (
0 commit comments