There are some prerequisites and instructions at the top of the script.
It will email the report out to you or save it to a file, or both.Īlthough the script is lengthy, it has been made to be super easy to setup and use so don't over think it. Run the Recommended SQL database Maintenance script on the actual SQL database. This is primarily for Server 2012 WSUS, and is a manual execution only.ġ1. Checks to see if you have a dirty database, and if you do, fixes it.
Application Pool Memory Configuration to display the current private memory limit and easily set it to any configurable amount including 0 for unlimited. Computer Object Cleanup (configurable, with the default of deleting computer objects that have not synced within 30 days).ĩ. Clean out all the synchronization logs that have built up over time (configurable, with the default keeping the last 14 days of logs).Ĩ. Remove declined updates from the WSUS Database.ĥ. NonEnglishUpdates, ComputerUpdates32bit, WinXP.Ĥ. Optional extras: Language Packs, IE7, IE8, IE9, IE10, Embedded, Shrink your WSUSContent folder's size by declining multiple types of updates including by default any superseded updates, preview updates, expired updates, Itanium updates, and beta updates. Remove all Drivers from the WSUS Database (Default Optional).ģ. Add WSUS Index Optimization to the database to increase the speed of many database operations in WSUS by approximately 1000-1500 times faster.Ģ.
It is the last WSUS Script you will ever need! ġ. Have a peek at my Adamj Clean-WSUS script. 10:56:58 : Failed to start and configure the WSUS serviceĪt .Run()Īt .Execute(String arguments)Īnd then when you've got it up and working, (Remember a new server does not mean that it's optimized!) Exception=Unable to connect to the remote server 10:56:58 StartServer encountered errors. End of inner exception stack trace -Īt (TransportContext& context)Īt ()Īt .SoapHttpClientProtocol.Invoke(String methodName, Object parameters)Īt .GetServerVersion()Īt .AdminDataAccessProxy.GetServerVersion()Īt .UpdateServer.CreateUpdateServer(String serverName, Boolean useSecureConnection, Int32 portNumber)Īt .UpdateServer.ctor(Boolean bypassApiRemoting)Īt .StartServer.CreateDefaultSubscription() Exception: : Unable to connect to the remote server -> : No connection could be made because the target machine actively refused it 10.10.11.112:8530Īt .DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)Īt (Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
10:56:58 CreateDefaultSubscription failed. I had already try these but still cannot fix it: When running the post installation task I get an error