Automation of SQL Patching with DBATools #7395
-
Update-DbaInstance -ComputerName $Servers -Path '\xyz\SQL2012\CU' -Credential $cred -Version $version -Restart -Confirm:$false I want to generate a log that can tell if there is any failure in the script. Can someone please suggest how to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
isn't the "Notes" property reporting what you're seeking already ? |
Beta Was this translation helpful? Give feedback.
-
Hi Guys(and gals) would this apply Windows patches as well? Somehow we have to apply Windows patches every month on a 100+ servers, some with AG and some not. |
Beta Was this translation helpful? Give feedback.
nope. look at https://github.com/mgajda83/PSWindowsUpdate