DevFrag,
Please review and copy the code from above. Microsoft changed the documentation on how to determine if this patch was applied, so I changed my script accordingly.
The above code also has the command to call the Main function. Only modify the stuff that pertains to the names and usage of your servers.
If you are all one Domain then the GetLogServer() function could be removed or modified with appropriate changes to the calling Function as well.
For testing, in place of the SHELL command maybe replace it with a ? and then add some @ERROR @SERROR code to see the returned values.
Make sure you have the SERVER/SHARES/PATHS working correctly.
Also, please post any CODE within the [ ] code brackets so that it preserves the formatting, or better yet, use POST PREP to post to this board.
There is a link in my signature to get PostPrep.
|