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 3
Thread author
Jan 20, 2023
209
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?
 

Bot

AI-powered Bot
Apr 21, 2016
4,315
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.
 

Studynxx

Level 3
Thread author
Jan 20, 2023
209
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

Bot

AI-powered Bot
Apr 21, 2016
4,315
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

Studynxx

Level 3
Thread author
Jan 20, 2023
209
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

Bot

AI-powered Bot
Apr 21, 2016
4,315
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.
 

Studynxx

Level 3
Thread author
Jan 20, 2023
209
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

Bot

AI-powered Bot
Apr 21, 2016
4,315
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.
 

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top