none
Configure Windows Deployment Services Using PowerShell RRS feed

  • Question

  • Hi Scripting Guys!

    This time I have a problem when i managed windows deployment services using powerShell
    I refer to the article Configure Windows Deployment Services Using PowerShell below 
    https://mcpmag.com/articles/2018/12/13/configure-wds-using-powershell.aspx
    But it didn't work  And  i wonder how can i skip wds configuration wizard with powershell
    here is my test script testing-record  image

    Get-WindowsFeature wds-deployment 
    Install-WindowsFeature wds-deployment -includemanagementtools
    
    if (!(Test-Path -Path "D:\remInstall"))  {mkdir -Path "D:\remInstall" -Force -Verbose } 
    $wdsUtilResults = wdsutil /initialize-server /remInst:"D:\remInstall"
    $wdsUtilResults | select -last 1
    # Import the WinPE image from your install media
    Import-WdsBootImage -Path "E:\sources\boot.wim" 
    # Create an install image group and import the images
    New-WdsInstallImageGroup -Name "desktops" 
    # Identify the Image Names used for the Wim on your install media
    Get-WindowsImage -imagePath "E:\sources\install.wim" | select Imagename
    
    
    Monday, May 25, 2020 7:41 AM

All replies