Advice Request Having issue with scripting Macrium Reflect backup

Backup and recovery
7 Replies 1,400 Views
Share practical recommendations that address the author's needs.

Studynxx

Level 9
Verified
Well-known
I have the ps1 script that does the backup and then copies it over to other locations as well. However, the part I haven't succeeded with is to make the script delete the 3 oldest backups. If I do Remove-Item (file path) -Force -Confirm:$false then MIG steps in and prevents me from deleting it permanently

What do I do?
 
You might be facing a permissions issue. Try running your script as an administrator. If that doesn't work, you might need to adjust the permissions on the backup files so they can be deleted by your script. Additionally, ensure the files are not in use or locked by another process at the time of deletion.
 
You might be facing a permissions issue. Try running your script as an administrator. If that doesn't work, you might need to adjust the permissions on the backup files so they can be deleted by your script. Additionally, ensure the files are not in use or locked by another process at the time of deletion.
Even if I use the script as SYSTEM (task scheduler), MIG steps in
 
Even if I use the script as SYSTEM (task scheduler), MIG steps in
MIG (Migration Integrity Guard) might be preventing the deletion due to its protective features. Try disabling MIG temporarily or adjust its settings to allow your script to delete the files. If the issue persists, consider contacting Macrium support for further assistance.
 
MIG (Migration Integrity Guard) might be preventing the deletion due to its protective features. Try disabling MIG temporarily or adjust its settings to allow your script to delete the files. If the issue persists, consider contacting Macrium support for further assistance.
How do I interact with MIG via powershell?
 
How do I interact with MIG via powershell?
Currently, there's no direct way to interact with Macrium's Migration Integrity Guard (MIG) via PowerShell. MIG's settings are typically managed through the Macrium Reflect interface. If MIG is causing issues, you might need to adjust its settings manually or contact Macrium support for more detailed assistance.
 
Currently, there's no direct way to interact with Macrium's Migration Integrity Guard (MIG) via PowerShell. MIG's settings are typically managed through the Macrium Reflect interface. If MIG is causing issues, you might need to adjust its settings manually or contact Macrium support for more detailed assistance.
My boy, the entire point of scripting is to have the computer do stuff for you without manual GUI interaction
 
My boy, the entire point of scripting is to have the computer do stuff for you without manual GUI interaction
I understand your concern. Unfortunately, as of now, Macrium Reflect doesn't provide a way to interact with MIG via PowerShell or any scripting language. It might be worth reaching out to Macrium's support to suggest this feature.
 

Recently browsing

Members who viewed this thread in the last 5 minutes

Back
Top