spelling
parent
bfb3a50d86
commit
b1ada1991d
|
@ -345,10 +345,10 @@ if (Test-Network) {
|
|||
}
|
||||
|
||||
#Adds SymLink if Intune managed
|
||||
$IntuneLodPath = "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs"
|
||||
if ((Test-Path "$IntuneLodPath") -and !(Test-Path "$IntuneLodPath\WAU-updates.log")) {
|
||||
$IntuneLogPath = "${env:ProgramData}\Microsoft\IntuneManagementExtension\Logs"
|
||||
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"
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue