pull/431/head
romanitho 2023-10-17 21:12:44 +02:00
parent bfb3a50d86
commit b1ada1991d
1 changed files with 3 additions and 3 deletions

View File

@ -345,10 +345,10 @@ if (Test-Network) {
} }
#Adds SymLink if Intune managed #Adds SymLink if Intune managed
$IntuneLodPath = "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs" $IntuneLogPath = "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs"
if ((Test-Path "$IntuneLodPath") -and !(Test-Path "$IntuneLodPath\WAU-updates.log")) { if ((Test-Path "$IntuneLogPath") -and !(Test-Path "$IntuneLogPath\WAU-updates.log")) {
Write-ToLog "`nCreating SymLink for log file (WAU-updates) in Intune Management Extension log folder" "Yellow" Write-ToLog "`nCreating SymLink for log file (WAU-updates) in Intune Management Extension log folder" "Yellow"
New-Item -Path "$IntuneLodPath\WAU-updates.log" -ItemType SymbolicLink -Value $LogFile -Force -ErrorAction SilentlyContinue | Out-Null New-Item -Path "$IntuneLogPath\WAU-updates.log" -ItemType SymbolicLink -Value $LogFile -Force -ErrorAction SilentlyContinue | Out-Null
} }
#End #End