Forum Discussion

rashi_jain's avatar
rashi_jain
Level 5
11 years ago

problem with running of "CretaeImageNow.PS1"

i am running this script  "./createImageNow.ps1 [UNCPATH] . steps to tun the script :  "./createImageNow.ps1  //192.168.125.30/est2 .This command is run successfully but this script always take th...
  • Markus_Koestler's avatar
    11 years ago

    So borrowing from AddImageJob.ps1 leads to the following:

     

    Replace if($oTempVol.System -eq $true) {.....}

    with

    if($oTempVol.MountPoint -eq "C:\")
            {
                $oVolume = $oTempVol
            }