This post is more than 5 years old

1 Rookie

 • 

20 Posts

542

September 10th, 2015 03:00

Suppress question after changing browse and retention on savesets

Hi!

I'm creating a script to change the retention on lots of savesets.. and the syntax I use is:

for /f %A in (retention.lst) do @nsrmm -S %A -w "+15 Months" -e "+15 Months"

But when running the script I get questions like this:

"Are you sure you want to change the browse policy expiration to `Sat Dec 10 12:31:37 2016' and the retention policy expiration to `Sat Dec 10 12:31:37

2016' for this saveset? (yes/no)  [no] "

and the question repeats for each saveset in the retention.lst. I get the same result when running the command:

nsrmm -S 1039082049 -w "+15 Months" -e "+15 Months"

Any way to avoid this?

A

2.4K Posts

September 10th, 2015 03:00

nsrmm -y .... should already do the job.

1 Rookie

 • 

20 Posts

September 10th, 2015 22:00

Thank you, worked like a charm :-)

No Events found!

Top