Skip to content

Script fails to install if automount is disabledΒ #15

@MasterJubei

Description

@MasterJubei

Hi,
When running the script I was getting:
(Sorry about the formatting)

Format-Volume : Invalid Parameter                                                                                       Activity ID: {1debd1fd-9c6e-0010-0d6e-f71d6e9cdb01}                                                                     At C:\Users\jiggl\Desktop\Enhanced-GPU-PV-main\CopyFilesToVM.ps1:2323 char:41

 CategoryInfo          : InvalidArgument: (StorageWMI:ROOT/Microsoft/...age/MSFT_Volume) [Format-Volume], CimExce     ption                                                                                                                    + FullyQualifiedErrorId : StorageWMI 5,Format-Volume

INFO   : Setting system partition as ESP...                                                                             INFO   : Creating MSR partition...                                                                                      INFO   : Creating windows partition...                                                                                  INFO   : Formatting windows volume...                                                                                   Format-Volume : Invalid Parameter 

Apparently it was because automount was disabled, this is the default on my system.
Using diskpart to enable automounting fixed it, but maybe a check could be added for it.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions