Advertisement

06.02.2008 at 09:49PM PDT, ID: 23452066
[x]
Attachment Details

Use of dynamic Date/Time variable to change the WSUS check in/update time for client machines

Asked by usslindstrom in VB Script, MS DOS, Visual Basic Programming

Tags: Microsoft, VB Script

Long story short - I use a couple scripts that I run accross our network, and force client machines to check into WSUS when we're having an issue with them.

No...  seriously - it's a long story on why we do that, so I'll just leave it as that.  :)

So, in short - two of the scripts that I shoot accross the network are the following:

Reg Add "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /t REG_SZ /d "2008-06-03 14:45:00" /f > Nul
Reg Add "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v ScheduledInstallDate /t REG_SZ /d "2008-06-03 14:45:00" /f > Nul

And that will force the units to check into WSUS today (3 Jun) at 14:45.

Would somebody be able to point me in the right direction for making this script dynamic?  Meaning, have it check what the current time is - and say add 10 minutes.  Currently, I have to edit the script every time I want to deploy it.

Thanks so much for always helping me.Start Free Trial
[+][-]06.02.2008 at 10:34PM PDT, ID: 21697779

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Script, MS DOS, Visual Basic Programming
Tags: Microsoft, VB Script
Sign Up Now!
Solution Provided By: RobSampson
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.22.2008 at 04:41PM PDT, ID: 21842685

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628