Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Update were installed' doesn't get the new date #6

Open
micelshima opened this issue Nov 4, 2016 · 0 comments
Open

'Update were installed' doesn't get the new date #6

micelshima opened this issue Nov 4, 2016 · 0 comments

Comments

@micelshima
Copy link

I have noticed that when updating with PoshPAIG the 'Updates were installed' that you can see in "wuapp" in remote servers doesn't update.
this date is stored in LastSuccessTime under the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install
May I suggest you to add these three lines in installPatches function?

$updateregistry='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install" /t REG_SZ /v LastSuccessTime /d "{0:yyyy-MM-dd HH:mm:ss}" /f' -f (get-date)
out-file ".\registrywindowsupdate.bat" -input $updateregistry -enc ascii
.\psexec.exe -accepteula -s -i \$Computername -c "$pwd\registrywindowsupdate.bat"

CraigTolley pushed a commit to CraigTolley/PoshPAIG that referenced this issue Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant