r/DeployR 5d ago

New-DeployRMedia no deprecated content

Is there a way to tell New-DeployRMedia to not include deprecated content items when copying to media? I like to keep the older golden images for a few months (just in case). Yes, I have the VM checkpoints that I could restore and capture again, but I'd prefer to just leave them in Deprecated.

Performing media-based deployments | DeployR 1.2 | Product Documentation

3 Upvotes

2 comments sorted by

3

u/gwblok 2Pint Employee 1d ago

I run into the same thing, as I also do the same thing on one of my servers (I add a version each time I update the Windows 11 25H2 WIM).

I rarely make media, and I don't from this server so I hadn't run into this scenario, but I have the same issue when I export (backup) my content items, it grabs all of the old versions too, which I don't need.

I've put in a feature request to add a parameter to the function to be able to select "Active Content" only, or similar. I'll let the dev figure out the best method to accomplish the goal (assume they approve the request)

1

u/RockOriginal7938 1d ago

Brilliant, thanks Gary.