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