straytoasters Posted April 3, 2010 Posted April 3, 2010 The topic pretty much say it all. This is geared toward Win7, but would equally correspond to Vista I suppose. So far I cannot find any switches for wuapp. I have tried some of the previous switches like "wuapp /detectnow" and even ran a few suggested rundll32 cmds, but so far the only thing I can get Windows Update to do via command line is to bring up the GUI, then I still have to click "check for updates" for it to actually do anything. I guess what I am wanting to know is what process run that makes Windows Update run automatic updates (which can download and install critical updates), or what switch/process is called when you click the "check for updates" in the wuapp panel? I have not seen a Windows Update/wuapp reference in the scheduled tasks.Basically I am wanting to set up an AT command that will run Windows Update, but I dont want to set Windows Update to run automatically on its own every night. Thoughts/Suggestions?Straytoasters
ricktendo Posted April 3, 2010 Posted April 3, 2010 (edited) To find cmd line switches inside exe/dll files I use grep.exe with string.exe and a bat file like so:@echo offsetlocal enableextensionsfor %%a in (a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9 0 - / \) do strings.exe %1 | grep.exe -i %%a>>%1.txtThese are some of the resultsCopyright (C) 1999-2009 Mark RussinovichSysinternals - www.sysinternals.com!This program cannot be run in DOS mode.`.datastartmenuWinSqmEventEnabledWuSqm %ls session datapoint (id:%d) is incremented with dword %d.PrivateGlobalWUApp.exe wWinMain() returning hr=%#lxwuapp.exe: CreateProcess() failed, hr=%#lxwuapp.exeTraceTestThreadsTraceTestMainTraceARPHandlerParserCOMAPIDtaStorWUAppAUClntAgent<unavailable>FalseGlobalFlagsFlagsGlobal\WindowsUpdateTracingMutexWindowsUpdate.logSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\TraceHeapSetInformationSuccessfully set WOW64 file system redirection state to DisabledWow64DisableWow64FsRedirectionSuccessfully reverted WOW64 file system redirection state.Failed to openMicrosoft.WindowsUpdateSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequiredSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired\MandatorySOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\PostRebootReportingSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\Pending\RegisterWithAUClientApplicationIDSoftware\Microsoft\Windows\CurrentVersion\WindowsUpdate\VolatileDataWUAppNotificationWindowsJustSelfUpdatedManagedJustSelfUpdatedUnmanagedWUAppAutoScanInteractiveResultsWUAppShowInstallResultsWUAppShowFeaturedUpdatesChosenUpdateWUAppSqmSessionGuidwuapp.pdbha2@AAJuAAf9AAfA9MAACCNInterlockedCompareExchangeGetProcAddressFreeLibraryLoadLibraryWCloseHandleCreateProcessWGetCommandLineWSetSecurityDescriptorDaclInitializeSecurityDescriptorAddAccessAllowedAceInitializeAclGetUserNameWRegQueryValueExWIsValidSidDuplicateTokenExGetTokenInformationAllocateAndInitializeSidADVAPI32.dllInterlockedExchangeGetStartupInfoWSetUnhandledExceptionFilterGetModuleHandleAQueryPerformanceCounterGetCurrentThreadIdGetSystemTimeAsFileTimeTerminateProcessUnhandledExceptionFilterCreateMutexWWaitForSingleObjectReleaseMutexCompareStringWUnmapViewOfFileMapViewOfFileCreateFileMappingWSetLastErrorGetLastErrorGetModuleFileNameWGetModuleHandleWWideCharToMultiByteVerSetConditionMaskHeapAllocGetProcessHeapHeapFreeExpandEnvironmentStringsWGetFileAttributesWCreateDirectoryWCreateFileWGetTimeZoneInformationSystemTimeToTzSpecificLocalTimeLoadLibraryExWGetVolumePathNameWmallocCoUninitializeCoCreateInstanceCoInitializeExPathIsRootWPathIsUNCWPathStripToRootWPathIsRelativeWSHLWAPI.dllHere is the full file wuapp.exe.txt Edited April 3, 2010 by ricktendo64
ricktendo Posted April 3, 2010 Posted April 3, 2010 (edited) Yes thats what I was about to say, look in wuauclt.exe instead/RunHandlerComServer/RunStoreAsComServer/ShowSettingsDialog/ResetAuthorization/ResetEulas/ShowWindowsUpdate/CloseWindowsUpdate/SelfUpdateManaged/SelfUpdateUnmanaged/UpdateNow/ShowWUAutoScan/ShowFeaturedUpdates/ShowFeaturedOptInDialogcall RunAUClientUI on wucltui.dll/wucltux.dllFull file wuauclt.exe.txt.7z Edited April 3, 2010 by ricktendo64
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now