You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do I keep getting this. I tried installing both with MSI and from PSGallery. Seems like the "home/youruser...." location is hardcoded and applied somewhere after running the script/ctrl-F5. Script look like this:
"Add-LabMachineDefinition -Name FirstServer -OperatingSystem 'Windows Server 2016 Standard Evaluation (Desktop Experience)'
Install-Lab
Show-LabDeploymentSummary"
Result:
14:23:51|00:00:00|00:00:00.000| Initialization
14:23:51|00:00:00|00:00:00.112| - Host operating system version: 'Microsoft Windows 11 Enterprise, 10.0.22631.0'
14:23:51|00:00:00|00:00:00.118| - Creating new lab definition with name 'GettingStarted'
14:23:51|00:00:00|00:00:00.132| - Location of lab definition files will be '/home/youruser/.alConfig/Labs/GettingStarted'
14:23:51|00:00:00|00:00:00.196| - Location of LabSources folder is '/home/youruser/labsources'
Get-ChildItem : Cannot find path 'C:\home\youruser\labsources' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLabDefinition\5.51.0\AutomatedLabDefinition.psm1:2995 char:19
... if (-not (Get-ChildItem -Path "$(Get-LabSourcesLocation)\ISOs" -Fil ...
14:23:51|00:00:00|00:00:00.291| - No ISO files found in /home/youruser/labsources\ISOs folder. If using Hyper-V for lab machines, please add ISO files manually using 'Add-LabIsoImageDefinition'
14:23:51|00:00:00|00:00:00.000| - Auto-adding ISO files
Get-ChildItem : Cannot find path 'C:\home\youruser\labsources' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLabCore\5.51.0\AutomatedLabCore.psm1:11541 char:17
14:23:51|00:00:00|00:00:00.131| - Scanning 0 files for operating systemsFound 0 OS images.
The specified iso file could not be found or no ISO file could be found in the given folder: /home/youruser/labsources\ISOs
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLabDefinition\5.51.0\AutomatedLabDefinition.psm1:493 char:9
throw "The specified iso file could not be found or no ISO fi ...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Why do I keep getting this. I tried installing both with MSI and from PSGallery. Seems like the "home/youruser...." location is hardcoded and applied somewhere after running the script/ctrl-F5. Script look like this:
"Add-LabMachineDefinition -Name FirstServer -OperatingSystem 'Windows Server 2016 Standard Evaluation (Desktop Experience)'
Install-Lab
Show-LabDeploymentSummary"
Result:
14:23:51|00:00:00|00:00:00.000| Initialization
14:23:51|00:00:00|00:00:00.112| - Host operating system version: 'Microsoft Windows 11 Enterprise, 10.0.22631.0'
14:23:51|00:00:00|00:00:00.118| - Creating new lab definition with name 'GettingStarted'
14:23:51|00:00:00|00:00:00.132| - Location of lab definition files will be '/home/youruser/.alConfig/Labs/GettingStarted'
14:23:51|00:00:00|00:00:00.196| - Location of LabSources folder is '/home/youruser/labsources'
Get-ChildItem : Cannot find path 'C:\home\youruser\labsources' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLabDefinition\5.51.0\AutomatedLabDefinition.psm1:2995 char:19
14:23:51|00:00:00|00:00:00.291| - No ISO files found in /home/youruser/labsources\ISOs folder. If using Hyper-V for lab machines, please add ISO files manually using 'Add-LabIsoImageDefinition'
14:23:51|00:00:00|00:00:00.000| - Auto-adding ISO files
Get-ChildItem : Cannot find path 'C:\home\youruser\labsources' because it does not exist.
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLabCore\5.51.0\AutomatedLabCore.psm1:11541 char:17
14:23:51|00:00:00|00:00:00.131| - Scanning 0 files for operating systemsFound 0 OS images.
The specified iso file could not be found or no ISO file could be found in the given folder: /home/youruser/labsources\ISOs
At C:\Program Files\WindowsPowerShell\Modules\AutomatedLabDefinition\5.51.0\AutomatedLabDefinition.psm1:493 char:9
Beta Was this translation helpful? Give feedback.
All reactions