Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

error in command line to do a wsus cleanup

$
0
0

Hi,

I wanted to make a script to automate cleaning of the wsus.  All my rules work quite good, just on (last) rule gives me a time-out. (i'm fairly new to scripting).  I've been looking to solve it but can't seem to find what the problem is.

The last line that gives the error is :   $CleanupManager.PerformCleanup($CleanupScope)

When i execute this line i get the following message :
Exception calling “PerformCleanup” with “1″ argument(s): “Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.”
At line:1 char:31
+ $CleanupManager.PerformCleanup <<<< ($CleanupScope)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

I suggest that the cleanup is not executed then ?  How can i avoid the timeout ?
Any help would be appriciated.

Regards,
Jo


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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