Tuesday, October 16, 2012

Operation is not valid due to the current state of the object. at Microsoft.Office.Server.Administration.UserProfileApplication Job.get UserProfileApplication()

Solutioin: Get-SPTimerJob | where {$_.name -match "User Profile Service*"} |  % { $_.Delete()}


if shows below message

The term ‘Get-SPSite’ is not recognized as the name of cmdlet, function, script file, or operable program

first   execute  Add-PSSnapin Microsoft.SharePoint.Powershell 
then  Get-SPTimerJob | where {$_.name -match "User Profile Service*"} |  % { $_.Delete()}