Advice Request Having issue with scripting Macrium Reflect backup

Please provide comments and solutions that are helpful to the author of this topic.

Studynxx

Level 8
Thread author
Verified
Well-known
Jan 20, 2023
429
368
667
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
 
  • Like
Reactions: Sorrento
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.
 
  • Like
Reactions: Sorrento
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?
 
  • Like
Reactions: Sorrento
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
 
  • Wow
Reactions: Sorrento
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.