Quantcast
Channel: Remote Desktop Services (Terminal Services) Forum
Viewing all articles
Browse latest Browse all 2335

Bug or Feature? ;) 2012 RDS sysprep unattend.xml doesn't join VD to a domain

$
0
0

Hi,

I try to create vDesktop collection providing unattend.xml file.

PS C:\Windows\system32\WindowsPowerShell\v1.0> 
New-RDVirtualDesktopCollection `
-PooledManaged `
-CollectionName "vDesktop" `
-StorageType LocalStorage `
-VirtualDesktopAllocation $RDDesktopAllocServers `
-VirtualDesktopTemplateHostServer "i5029-app040.regions.tax.nalog.ru" `
-VirtualDesktopTemplateName "vdiTemplate" `
-ConnectionBroker $RDCB `
-Domain "regions.tax.nalog.ru" `
-LocalStoragePath "D:\Hyper-V" `
-OU "ou=VDI,ou=Workstations,ou=IFNS5029,ou=UFNS50,dc=regions,dc=tax,dc=nalog,dc=ru" `
-UserGroups "i5029-AllUsers" `
-UserProfileDiskPath "\\i5029-app031\ProfileDisks" `
-MaxUserProfileDiskSizeGB 5 `
-VirtualDesktopNamePrefix "i5029-vdi-" `
-VirtualDesktopTemplateStoragePath "D:\Hyper-V" `
-VirtualDesktopPasswordAge 31 `
-CustomSysprepUnattendFilePath "\\i5029-app012\Soft\01 Microsoft\RemoteApp\unattend.xml" `
-Verbose -Debug

Powershell says following:

(Translation) Test-ManagedParam : Select unattended installation file without computer name. 

ПОДРОБНО: Testing OU permissions
Test-ManagedParam : Укажите файл ответов для автоматической установки без имени компьютера.
C:\windows\system32\windowspowershell\v1.0\Modules\RemoteDesktop\VirtualDesktopCollection.psm1:398 знак:15
+ if( -not (Test-ManagedParam @validateParams -Type $type -VmNamePrefix $Virtu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Test-ManagedParam

(Translation) Test-ManagedParam : Select unattended installation file without domain join settings.

ПОДРОБНО: Testing OU permissions
Test-ManagedParam : Укажите файл ответов для автоматической установки без информации о присоединении к домену.
C:\windows\system32\windowspowershell\v1.0\Modules\RemoteDesktop\VirtualDesktopCollection.psm1:398 знак:15
+ if( -not (Test-ManagedParam @validateParams -Type $type -VmNamePrefix $Virtu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Test-ManagedParam

Ok, I remove these settings from unattend.xml and then it starts successfully.

But when VD is created, started and sysprepped, it turns out having random computer name and not joined a domain, and asking me for a network location (despite set in unattend.xml). Consequently, Start-RolloutVM process doesn't get "sysprep complete" info, and doesn't continue to the next VD.

.

What is curious, when I point unattend.xml WITH domain join settings and computer name to the new VD collection wizard, it says it needs Local account in unattend.xml, and doesn't say anything for computer name/domain.

After all, wizard doesn't even run Start-RolloutVM, fails with "Cannot get collection" error.

.

Quite surprising, you know... ;)

Welcome to discuss!




Viewing all articles
Browse latest Browse all 2335

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>