@@ -10,7 +10,7 @@
# This Script takes emails from pipe and group and access level from cli to invite them
$GITLAB_INVITE = "$PSScriptRoot\gitlab-invite.ps1"
-Set-Log ([IO.Path]::GetFullPath("$PSScriptRoot\..\runtime\groupusers-$(hostname)-.log")) 1mb 2
+Set-Log ([IO.Path]::GetFullPath("$PSScriptRoot\..\runtime\groupusers-${env:computername}-.log")) 1mb 2
foreach ($module in @("ActiveDirectory")){
@@ -1,5 +1,5 @@
# all logging settins are here on top
-$logFile = "log-$(gc env:computername).log"
+$logFile = "log-${env:computername}.log"
$logLevel = "DEBUG" # ("DEBUG","INFO","WARN","ERROR","FATAL")
$logSize = "100b"
$logCount = 3