Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as Plain Text by Timon_Crazy ( 16 years ago )
PS C:\Program Files\Update Services\administrationsnapin> .\Wsus-CleanUp.ps1
Unable to find type [Microsoft.UpdateServices.Administration.AdminProxy]: make sure that the assembly containing this t
ype is loaded.
At C:\Program Files\Update Services\administrationsnapin\Wsus-CleanUp.ps1:12 char:63
+ $wsusrv = [Microsoft.UpdateServices.Administration.AdminProxy] <<<< ::GetUpdateServer()
    + CategoryInfo          : InvalidOperation: (Microsoft.Updat...tion.AdminProxy:String) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Invoking WSus CleanUpManager:
You cannot call a method on a null-valued expression.
At C:\Program Files\Update Services\administrationsnapin\Wsus-CleanUp.ps1:17 char:32
+ $cm = $Wsusrv.GetCleanupManager <<<< ()
    + CategoryInfo          : InvalidOperation: (GetCleanupManager:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

New-Object : Cannot find type [Microsoft.UpdateServices.Administration.CleanupScope]: make sure the assembly containing
 this type is loaded.
At C:\Program Files\Update Services\administrationsnapin\Wsus-CleanUp.ps1:18 char:17
+ $cs = new-object <<<<  Microsoft.UpdateServices.Administration.CleanupScope
    + CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentException
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

Property 'CleanupObsoleteUpdates' cannot be found on this object; make sure it exists and is settable.
At C:\Program Files\Update Services\administrationsnapin\Wsus-CleanUp.ps1:22 char:5
+ $cs. <<<< CleanupObsoleteUpdates = $True
    + CategoryInfo          : InvalidOperation: (CleanupObsoleteUpdates:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

Property 'CleanupUnneededContentFiles' cannot be found on this object; make sure it exists and is settable.
At C:\Program Files\Update Services\administrationsnapin\Wsus-CleanUp.ps1:23 char:5
+ $cs. <<<< CleanupUnneededContentFiles = $True
    + CategoryInfo          : InvalidOperation: (CleanupUnneededContentFiles:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

You cannot call a method on a null-valued expression.
At C:\Program Files\Update Services\administrationsnapin\Wsus-CleanUp.ps1:26 char:25
+ $cr = $cm.PerformCleanup <<<< ($cs)
    + CategoryInfo          : InvalidOperation: (PerformCleanup:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

The term 'C:\Program Files\Update Services\administrationsnapin\Wsus-SendMail.ps1' is not recognized as the name of a c
mdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify th
at the path is correct and try again.
At C:\Program Files\Update Services\administrationsnapin\Wsus-CleanUp.ps1:39 char:2
+ . <<<<  $ScriptDir\Wsus-SendMail.ps1 $WsusSrv "$($Wsusrv.ServerName) - Informazioni Cleanup Manager" $MailBody
    + CategoryInfo          : ObjectNotFound: (C:\Program File...us-SendMail.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

 

Revise this Paste

Children: 37623 38505
Your Name: Code Language: