From 5ba779d17147193e941a7e7efe8404a5cb54518f Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Tue, 2 May 2023 12:28:29 +0200 Subject: [PATCH] Symlink full WAU folder --- Winget-AutoUpdate/functions/Start-Init.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate/functions/Start-Init.ps1 b/Winget-AutoUpdate/functions/Start-Init.ps1 index e0b6a83..faf6b2c 100644 --- a/Winget-AutoUpdate/functions/Start-Init.ps1 +++ b/Winget-AutoUpdate/functions/Start-Init.ps1 @@ -44,9 +44,9 @@ function Start-Init { } #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 - 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 }