Ok, found where the problem was. There is this code around line 360 :
Set Log Path
switch ($PSCmdLet.ParameterSetName) {
"Debug" {
$LogsDirectory = Join-Path -Path $env:SystemRoot -ChildPath "Temp"
}
default {
$LogsDirectory = $Script:TSEnvironment.Value("_SMSTSLogPath")
}
}
When i tried step by step, this is where is got a null value error ($LogsDirectory = $Script:TSEnvironment.Value("_SMSTSLogPath")). Tried to replace temporarliy by $LogsDirectory = "X:\windows\temp" and it works then.
Originally posted by @RoadToDie in #845
Originally posted by @RoadToDie in #845