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 a64e29a commit 857150dCopy full SHA for 857150d
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
@@ -41,10 +41,10 @@ try {
41
# ---------------------------------
42
43
# Prepare logging
44
-$scriptName = [System.IO.Path]::GetFileNameWithoutExtension($MyInvocation.MyCommand.Name)
45
-$logDir = "C:\Scripts-LOGS"
+$scriptName = [System.IO.Path]::GetFileNameWithoutExtension($MyInvocation.MyCommand.Name)
+$logDir = "C:\Scripts-LOGS"
46
$logFileName = "${scriptName}.log"
47
-$logPath = Join-Path $logDir $logFileName
+$logPath = Join-Path $logDir $logFileName
48
49
function Log-Message {
50
param (
0 commit comments