05-30-2014 04:25 AM
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 the backup of c drive .
I want to change backup path from c drive to another drive.
Please help me to resolve the issue
Solved! Go to Solution.
06-02-2014 11:02 PM
So borrowing from AddImageJob.ps1 leads to the following:
Replace if($oTempVol.System -eq $true) {.....}
with
if($oTempVol.MountPoint -eq "C:\")
{
$oVolume = $oTempVol
}
05-30-2014 08:38 AM
Hello,
Not really familiar with running this type of script but have you seen this: ftp://70.167.244.147/Sym_System_Recovery_2013_11.0.0.46600_Multilingual_Product/Docs/Automation/CreateImageNow.ps1.html
hope it helps
05-30-2014 09:06 PM
06-01-2014 01:23 PM
Did you take a look inside the powershell script?
06-01-2014 08:09 PM
06-01-2014 10:39 PM
Can you please post the code of the powershell script? I can't FTP at the moment.
06-01-2014 11:33 PM
06-01-2014 11:52 PM
This is the one to blame for:
if($oTempVol.System -eq $true)
If I'm right this statement ensures that only the systemvolume is backed up.
06-01-2014 11:56 PM
06-02-2014 01:20 AM
If you just remove the if statement ALL local disks will be included.
06-02-2014 01:24 AM
06-02-2014 01:34 AM
You will have to findout the relevant attribute, like $oTempVol.label or so.
06-02-2014 02:51 AM
06-02-2014 02:54 AM
The windows integrated windows powershell editor ?!
06-02-2014 09:46 AM
06-02-2014 02:01 PM
OK, would it be OK to have the volumes to back up hardcoded in the script?
06-02-2014 07:59 PM
06-02-2014 11:02 PM
So borrowing from AddImageJob.ps1 leads to the following:
Replace if($oTempVol.System -eq $true) {.....}
with
if($oTempVol.MountPoint -eq "C:\")
{
$oVolume = $oTempVol
}
06-03-2014 01:55 AM
06-03-2014 02:25 AM