Highlighted

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 the backup of   c drive .

 

 

I want to change backup path from c drive to another drive.

 

 

Please help me to resolve the issue

 

1 Solution

Accepted Solutions
Accepted Solution!

So borrowing from

So borrowing from AddImageJob.ps1 leads to the following:

 

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

with

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

 

View solution in original post

25 Replies

Hello, Not really familiar

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

Hello Imsola & all, this link

Hello Imsola & all, this link consists only scripts but i need how to change the backup path of drives. from default to something else right now it take backup from c drive but i need e drive. Please help me to find out the solution

Did you take a look inside

Did you take a look inside the powershell script?

Hello Markus , I checked the

Hello Markus , I checked the all scripts in automation folder (this folder name is same earlier told by you) but no where I found the location of data path where I can changed. Please provide me your support for the solution of problem. Regards Rashi Jain

Can you please post the code

Can you please post the code of the powershell script? I can't FTP at the moment.

Hello Markus , Please find

Hello Markus , Please find the attachment of scripts.

This is the one to blame

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.

Hello Markus can I changed

Hello Markus can I changed the backup path from system to something else (i.e. C Drive to E drive) ?

If you just remove the if

If you just remove the if statement ALL local disks will be included.

Hello Markus , I want to

Hello Markus , I want to take backup of particular disk not all disk . Scenario is : if a system having 2 or more disk , then i want to take the backup of 1 particular disk . according to your comment , I think it will take the backup of all disk. Regards Rashi

You will have to findout the

You will have to findout the relevant attribute, like $oTempVol.label or so.

Hello Markus , can you

Hello Markus , can you please tell me about any debugging tool so that I can understand the flow of code.

The windows integrated

The windows integrated windows powershell editor ?!

Hello Markus , Thanks for

Hello Markus , Thanks for your support. But i need more help if you or someone help me to find the solution.

OK, would it be OK to have

OK, would it be OK to have the volumes to back up hardcoded in the script?

Hello Markus , It is

Hello Markus , It is definitely good for me . Regards Rashi Jain
Accepted Solution!

So borrowing from

So borrowing from AddImageJob.ps1 leads to the following:

 

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

with

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

 

View solution in original post

Hello Markus , Thanks for

Hello Markus , Thanks for this help .

Hello Markus , This script is

Hello Markus , This script is helping to take the backup of drive type and another question is how to take the backup of folder only (specified folder) . I am sorry for the another question but really I want your support . I got a file in automation folder "Filebackup" which might be help full.