New Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to create win2012r2 standard image for Ubuntu MAAS

Hi, I want to use Ubuntu MAAS to deploy windows server 2012 on some of my bare metal nodes. Therefore I followed: http://wiki.cloudbase.it/maas to build the windows server 2012 standard image. But I got error when executing this step: ".\BuildInstallImage.ps1 -InstallMediaPath F:". Error messages are listed below:


PS C:\Users\Administrator\adk-tools-maas> .\BuildInstallImage.ps1 -InstallMediaPath F:

Get-WimFileImagesInfo : The term 'Get-WimFileImagesInfo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Administrator\adk-tools-maas\BuildInstallImage.ps1:64 char:11 + $images = Get-WimFileImagesInfo $installWimPath + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-WimFileImagesInfo:String) [], ParentC ontainsErrorRecordException + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\Administrator\adk-tools-maas>


I checked the script, there is a function named "Get-WimFileImagesInfo" exists in WimFileInfo.ps1. I have no idea what causes such an error. Did I miss anything? Or is there any software I need to install first?

Thank you, Jeff

Failed to create win2012r2 standard image for Ubuntu MAAS

Hi, I want to use Ubuntu MAAS to deploy windows server 2012 on some of my bare metal nodes. Therefore I followed: http://wiki.cloudbase.it/maas to build the windows server 2012 standard image. But I got error when executing this step: ".\BuildInstallImage.ps1 -InstallMediaPath F:". D:". Error messages are listed below:


PS C:\Users\Administrator\adk-tools-maas> .\BuildInstallImage.ps1 -InstallMediaPath F:D:

new-object : Exception calling ".ctor" with "1" argument(s): "Unable to find the specified file." At C:\Users\Administrator\adk-tools-maas\WimFileInfo.ps1:1085 char:14 +

Get-WimFileImagesInfo : The term 'Get-WimFileImagesInfo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Administrator\adk-tools-maas\BuildInstallImage.ps1:64 char:11 + $images $w = Get-WimFileImagesInfo $installWimPath new-object WIMInterop.WimFile -ArgumentList $WimFilePath + ~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-WimFileImagesInfo:String) [], ParentC ontainsErrorRecordException InvalidOperation: (:) [New-Object], MethodInvocationException + FullyQualifiedErrorId : CommandNotFoundExceptionConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

PS C:\Users\Administrator\adk-tools-maas>


I checked the script, there is a function named "Get-WimFileImagesInfo" exists in WimFileInfo.ps1. I have no idea what causes such an error. Did I miss anything? Or is there any software I need to install first?anything?

Thank you, Jeff