Friday, February 18, 2011

Tuesday, February 15, 2011

Acronis and Powershell, I feel like a trailblazer

I think I'm going to start peppering my blog here with occasional bursts of stuff I am working on, for my own reference, and to help the internets at large. If this means not much to you, I'm sorry. I couldn't find any existing Google citations on this issue, and I thought I could be the first for this rather specific query.


If you are trying to use PowerShell to mount and browse Acronis .TIB files, you may run into a situation where you run the TrueImageCMD command (via PowerShell) to mount the drive, but then your set-location $drive fails. This is apparently because when you start an instance of PowerShell it populates all the available PSDrives, and only allows you to use those. I can't find a command to just refresh that list, but you can explicitly tell PowerShell to start using the backup drive you mounted using TrueImageCMD. And don't forget to remove the drive when you are finished!


Example code:

new-psdrive "RSTmount" -PSProvider filesystem -Root $drive
set-location RSTmount:\
#DO STUFF
set-location c:\
remove-psdrive -name RSTmount