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!

Popular posts from this blog

Domain Controller Machine Password Reset

Configuring a Certificate on Exchange Receive Connector

Managing Active Directory User Certificates using PowerShell