Le log est désormais stocké dans %temp%
DeployCenter peut être stocké dans un partage en lecture seule Désactivation de l'hibernation via l'unattend Désactivation de la mise en veille lorsque le pc est sur secteur L'installation unattend empêche bitlocker de s'activer (pas de clé stockée en lieu sûr hors domaine et azure en automatique). Cela n'empêche pas de l'activer en connaissance de cause par la suite.
This commit is contained in:
1 parent
6cf58b5646
commit
5a121718d4
7 files changed
+28
-14
No files matched your search
@@ -4,14 +4,15 @@
|
||||
function Initialize-DeployCenterLogging {
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$LogRoot,
|
||||
|
||||
[AllowNull()]
|
||||
[string]$IPv4 = $null
|
||||
)
|
||||
|
||||
$script:LogRoot = $LogRoot
|
||||
$tempRoot = [Environment]::GetEnvironmentVariable('TEMP')
|
||||
if ([string]::IsNullOrWhiteSpace($tempRoot)) {
|
||||
throw 'The TEMP environment variable is not defined.'
|
||||
}
|
||||
$script:LogRoot = Join-Path $tempRoot 'DeployCenter'
|
||||
if (-not (Test-Path -LiteralPath $script:LogRoot -PathType Container)) {
|
||||
New-Item -Path $script:LogRoot -ItemType Directory -Force -ErrorAction Stop | Out-Null
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user