Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Sharepoint 2010 Powershell Script Extract Problem

$
0
0

Hi, I have a SharePoint 2010 custom timer job that runs monthly. This timer job uses Pipeline for Powershell script that extracts all documents in our document library and puts them into a zip file.  Although it's been working fine for a year, this morning the run had an error in the script part: "Category: SharePoint Guidance: An exception has occurred.   ExceptionType: 'CmdletInvocationException'   ExceptionMessage: 'The term 'extract' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.'"

The script line(s) that generated the error is:

...

get-childitem *.cab | foreach-object {

extract /e $_.Name /l "E:\E" ...

Again, this has been running just fine on our SharePoint farm for a year, we've made no changes to the program or script, but suddenly today it's not working and throws an exception that looks like "extract" is not recognized all of a sudden?

I'm not even sure where to begin looking or what could be causing a reliable script to suddenly throw an error?  And not even sure if this question belongs in scripting or SharePoint forum (but the scripting piece is throwing the error, so I thought I'd start here).

Thanks for any help!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>