vb.net - Install WIndows updates on remote computer using WUApiLib -


i succesfully able update windows locally unauthorized exception when update remotely. updating windows service running system account perform impersonation before calling methods. type of impersonation use works other remote options.

is there special wuapilib , remote calls?

        dim t type = type.gettypefromprogid("microsoft.update.session", strhostname)         try             session = ctype(activator.createinstance(t), updatesession)         catch ex unauthorizedaccessexception             throw new exception("not allowed access: " & strhostname & " - please use credential.")         catch ex exception             if ex.message.contains("800706ba")                 throw new exception("wrong hostname or firewall not open. https://msdn.microsoft.com/en-us/library/windows/desktop/aa387288(v=vs.85).aspx")             else                 throw ex             end if         end try 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -