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

Paste

Pasted as Plain Text by admin ( 14 years ago )
PS C:Program FilesUpdate Servicesadministrationsnapin> .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 FilesUpdate ServicesadministrationsnapinWsus-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 FilesUpdate ServicesadministrationsnapinWsus-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 FilesUpdate ServicesadministrationsnapinWsus-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 FilesUpdate ServicesadministrationsnapinWsus-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 FilesUpdate ServicesadministrationsnapinWsus-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 FilesUpdate ServicesadministrationsnapinWsus-CleanUp.ps1:26 char:25
+ $cr = $cm.PerformCleanup <<<< ($cs)
    + CategoryInfo          : InvalidOperation: (PerformCleanup:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

The term 'C:Program FilesUpdate ServicesadministrationsnapinWsus-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 FilesUpdate ServicesadministrationsnapinWsus-CleanUp.ps1:39 char:2
+ . <<<<  $ScriptDirWsus-SendMail.ps1 $WsusSrv "$($Wsusrv.ServerName) - Informazioni Cleanup Manager" $MailBody
    + CategoryInfo          : ObjectNotFound: (C:Program File...us-SendMail.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

 

Revise this Paste

Parent: 19475
Your Name: Code Language: