sppatchify
sppatchify copied to clipboard
Windows Server 2008 R2 OS supported?
Hi Jeff, We are using Windows Server 2008 R2 OS for SharePoint 2013. Does this script supports Windows Server 2008 R2? I am seeing below error while running script.
ERROR:
Get-ScheduledTask : The term 'Get-ScheduledTask' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\sppatchify-master\SPPatchify.ps1:214 char:22
Hi Surya,
Thanks for reaching out. Want to add the function below into PS1 and run a test?
Maybe this can add backward compatibility support for older 2008 R2. If you run a test and works OK, I'd be glad to merge PR into main download.
https://gallery.technet.microsoft.com/scriptcenter/Get-ScheduledTasks-Get-d2207def
Sorry to kick up such an old topic, and outside of the bit where Windows 2008 R2 is no longer supported by Microsoft, Get-ScheduledTask is as I recall tied to the Windows PowerShell version installed on the machine.
So provided you upgrade that to, say Windows PowerShell 5.1 - it would work just as well. SharePoint 2013 is not as restrictive anymore as SharePoint 2010 was/is (which must be run/addressed in PowerShell version 2 / mode) so you should be able to install that. Of course, test that in a non-production environment beforehand!