Posts

Showing posts with the label Shadow Copy

CPolydorou.ShadowCopy Powershell Module

Yet another of my Powershell modules has been uploaded to the Powershell Gallery. This time it's the CPolydorou.ShadowCopy module that allows us to create, remove, mount and unmount volume shadow copies. Please note that all the functions of the module have to be run with elevated rights. More information about the module and instructions on how to install it can be found here.

Task with Powershell Script Suddenly Started to Fail

Some weeks ago I created a powershell module that contained function to create, view and remove Volume Shadow Copies. I used that module in a script in order to create a new shadow copy and clean up the old ones. I added that script as an action on a Task in Task Scheduler and everything was working fine. After some additions to the module I copied the new file, with the same name, over to the server. I checked the logs a little bit later and there were no new events (my script is writing to a custom log). Then I tried to run the task manually and I got an error code. As it turned out I had to unblock the module file in Windows Explorer in order to avoid the security warning that was waiting for user input from the import-module command. After that everything is working fine again!