Skip to content

Commit c01aff5

Browse files
committed
+ show current user
1 parent 30b1277 commit c01aff5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/Build-Accdb.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ $currentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
1515
if ($serviceAccounts | Where-Object { $currentUser -match $_ }) {
1616
Write-Warning "Warning: This script is running under a Windows service account ($currentUser). Microsoft Access should not be executed as a service!"
1717
}
18+
else {
19+
Write-Host "Running script as user: $currentUser"
20+
}
1821

1922
[string]$tempFileName = "VcsBuildTempApp"
2023
[string]$accdbFileName = $tempFileName

0 commit comments

Comments
 (0)