Symlink full WAU folder

pull/333/head
Fabian Seitz 2023-05-02 12:28:29 +02:00 committed by GitHub
parent f3b8af08fa
commit 5ba779d171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ function Start-Init {
} }
#Check if Intune Management Extension Logs folder and WAU-updates.log exists, make symlink #Check if Intune Management Extension Logs folder and WAU-updates.log exists, make symlink
if ((Test-Path "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs") -and !(Test-Path "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs\WAU-updates.log")) { if ((Test-Path "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs") -and !(Test-Path "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs\WAU-Logs")) {
Write-host "`nCreating SymLink for log file in Intune Management Extension log folder" -ForegroundColor Yellow Write-host "`nCreating SymLink for log file in Intune Management Extension log folder" -ForegroundColor Yellow
New-Item -Path "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs\WAU-updates.log" -ItemType SymbolicLink -Value $LogFile -Force -ErrorAction SilentlyContinue | Out-Null New-Item -Path "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs\WAU-Logs" -ItemType SymbolicLink -Value "$WingetUpdatePath\logs" -Force -ErrorAction SilentlyContinue | Out-Null
} }