
L’imprimante par défaut de l’utilisateur remonte bien dans la session bureau à distance de l’utilisateur mais n’est pas définie en tant qu’imprimante par défaut dans MDE.
 Voici un petit script Powershell a exécuter au démarrage de la session pour fixer l’imprimante 
# Clear any existing errors.
 #
 « Waiting for printers to be created »
 # The following line may need to be uncommitted to wait for session printers to be auto-created.
 #Start-Sleep 10
 $error.clear()
 $registrykey = « Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows »
 # Set the location
 #
 Set-Location -Path $registrykey -ErrorAction SilentlyContinue
 # Retrieve the default printer properties.
 #
 $wmiDefaultPrinter = Get-WmiObject -query « SELECT * FROM WIN32_PRINTER WHERE Default = TRUE »
 # If the default printer exists then set the registry values.
 #
 if ($wmiDefaultPrinter -ne $null)
 {
 « Setting the Windows default printer registry key »
 Set-ItemProperty -Path $registrykey -Name « Device » -Value ($wmiDefaultPrinter.Name+ »,winspool,Ne00: »)
 Write-Host « Your default printer is » $wmiDefaultPrinter.Name
 } else {
 Set-ItemProperty -Path $registrykey -Name « Device » -Value « Microsoft Print to PDF,winspool,Ne01: »
 } 
