Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > Re: Reenable Automatic updates by script

Reply
Thread Tools Display Modes

Re: Reenable Automatic updates by script

 
 
Jim Graham
Guest
Posts: n/a

 
      09-06-2004
Throw these two lines into a batch file:

sc config BITS start= demand
sc config wuauserv start= auto

Can I ask, though... why did you disable the Automatic Updates and BITS
services in the first place...? If it is bandwidth that you worry about
(which is most user's reason), BITS only uses idle bandwidth, so even at
56k, you won't notice a slowdown. I also believe, and I mean no insult to
you, but if you do know know the answer to your question, or at least how to
find the answer on Microsoft's site (as I did), then you shouldn't be
disabling services anyway.... well, here is a link explaining BITS:
http://msdn.microsoft.com/library/de..._bandwidth.asp


"6th time lucky" <> wrote in message
news:0FF4E20A-3738-4D12-86AA-...
> OK, In the past i have disabled the Automatic updates service and BITS so
> that i can run WU manually and have trained family to do the same. Now
> that
> WU V5 has *broken* this, i have to set AU and BITS back to the default.
>
> Rather than manually talk several different people though this, is there a
> way to access these settings by script so i can just send them a bat file?
> (i
> will also be sending XPSP2blocker to avoid that hassel)
>
> So by script how can i set AU to Automatic and enable and BITS to manual
> and
> enable?
>
> Thanks for any help!



 
Reply With Quote
 
 
 
 
6th time lucky
Guest
Posts: n/a

 
      09-06-2004
Wow, thanks for the quick responce.
But will these setting change the equivenlent of the "Log on" tab to enable
also, for the user profile???

> Can I ask, though... why did you disable the Automatic Updates and BITS
> services in the first place...?


To save memory 6.5mb still sounds like a lot to me (wuauserv which runs even
if i am not using it-why?)

>If it is bandwidth that you worry about
> (which is most user's reason), BITS only uses idle bandwidth, so even at
> 56k, you won't notice a slowdown.


Well, i dont (didnt) trust it. Perhaps misguided, but why cant i be in
control. The current BITS service i have used, so have warmed to it slightly.

> I also believe, and I mean no insult to
> you, but if you do know know the answer to your question, or at least how to
> find the answer on Microsoft's site (as I did), then you shouldn't be
> disabling services anyway....


Probably just a misunderstanding here, what i want to do is send an Email so
i can fix other computers without having to be there. I am fully aware of how
to control them from services.msc i just didnt want to talk my 80y.o
grandfather through it (not-kidding, and others). Plus isnt cut and paste
this, much easier than open this, click this, do that, what does that say,
change this... A script that just "does it" is easier, and in this case i can
find the commands!

I am looking right now at online resources and just turned up "sc" but dont
think it can enable a service (not talking about the startup type). Or can
it? the helpfile is shocking.
 
Reply With Quote
 
Jim Graham
Guest
Posts: n/a

 
      09-06-2004
I don't know of an sc command to do that because it is in the actual
hardware profile.... but I have a command that should work also:

add these next two lines as well...

reg add "HKLM\SYSTEM\CurrentControlSet\Hardware
Profiles\0001\System\CurrentControlSet\Enum\ROOT\L EGACY_WUAUSERV\0000" /v
CSConfigFlags /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Hardware
Profiles\0001\System\CurrentControlSet\Enum\ROOT\L EGACY_BITS\0000" /v
CSConfigFlags /t REG_DWORD /d 0 /f

you also may want to throw in a "shutdown -r -t 0" to reboot the system when
the batch is done...



"6th time lucky" <> wrote in message
news:204006B1-3093-4B77-9D8C-...
> Wow, thanks for the quick responce.
> But will these setting change the equivenlent of the "Log on" tab to
> enable
> also, for the user profile???
>
>> Can I ask, though... why did you disable the Automatic Updates and BITS
>> services in the first place...?

>
> To save memory 6.5mb still sounds like a lot to me (wuauserv which runs
> even
> if i am not using it-why?)
>
>>If it is bandwidth that you worry about
>> (which is most user's reason), BITS only uses idle bandwidth, so even at
>> 56k, you won't notice a slowdown.

>
> Well, i dont (didnt) trust it. Perhaps misguided, but why cant i be in
> control. The current BITS service i have used, so have warmed to it
> slightly.
>
>> I also believe, and I mean no insult to
>> you, but if you do know know the answer to your question, or at least how
>> to
>> find the answer on Microsoft's site (as I did), then you shouldn't be
>> disabling services anyway....

>
> Probably just a misunderstanding here, what i want to do is send an Email
> so
> i can fix other computers without having to be there. I am fully aware of
> how
> to control them from services.msc i just didnt want to talk my 80y.o
> grandfather through it (not-kidding, and others). Plus isnt cut and paste
> this, much easier than open this, click this, do that, what does that say,
> change this... A script that just "does it" is easier, and in this case i
> can
> find the commands!
>
> I am looking right now at online resources and just turned up "sc" but
> dont
> think it can enable a service (not talking about the startup type). Or can
> it? the helpfile is shocking.



 
Reply With Quote
 
Jim Graham
Guest
Posts: n/a

 
      09-06-2004
Those wrapped...sorry... each of the two lines starts with "reg add" and
ends with "/f"

"Jim Graham" <> wrote in message
news:OJ6Mm2$...
>I don't know of an sc command to do that because it is in the actual
>hardware profile.... but I have a command that should work also:
>
> add these next two lines as well...
>
> reg add "HKLM\SYSTEM\CurrentControlSet\Hardware
> Profiles\0001\System\CurrentControlSet\Enum\ROOT\L EGACY_WUAUSERV\0000" /v
> CSConfigFlags /t REG_DWORD /d 0 /f
> reg add "HKLM\SYSTEM\CurrentControlSet\Hardware
> Profiles\0001\System\CurrentControlSet\Enum\ROOT\L EGACY_BITS\0000" /v
> CSConfigFlags /t REG_DWORD /d 0 /f
>
> you also may want to throw in a "shutdown -r -t 0" to reboot the system
> when the batch is done...
>
>
>
> "6th time lucky" <> wrote in message
> news:204006B1-3093-4B77-9D8C-...
>> Wow, thanks for the quick responce.
>> But will these setting change the equivenlent of the "Log on" tab to
>> enable
>> also, for the user profile???
>>
>>> Can I ask, though... why did you disable the Automatic Updates and BITS
>>> services in the first place...?

>>
>> To save memory 6.5mb still sounds like a lot to me (wuauserv which runs
>> even
>> if i am not using it-why?)
>>
>>>If it is bandwidth that you worry about
>>> (which is most user's reason), BITS only uses idle bandwidth, so even at
>>> 56k, you won't notice a slowdown.

>>
>> Well, i dont (didnt) trust it. Perhaps misguided, but why cant i be in
>> control. The current BITS service i have used, so have warmed to it
>> slightly.
>>
>>> I also believe, and I mean no insult to
>>> you, but if you do know know the answer to your question, or at least
>>> how to
>>> find the answer on Microsoft's site (as I did), then you shouldn't be
>>> disabling services anyway....

>>
>> Probably just a misunderstanding here, what i want to do is send an Email
>> so
>> i can fix other computers without having to be there. I am fully aware of
>> how
>> to control them from services.msc i just didnt want to talk my 80y.o
>> grandfather through it (not-kidding, and others). Plus isnt cut and paste
>> this, much easier than open this, click this, do that, what does that
>> say,
>> change this... A script that just "does it" is easier, and in this case i
>> can
>> find the commands!
>>
>> I am looking right now at online resources and just turned up "sc" but
>> dont
>> think it can enable a service (not talking about the startup type). Or
>> can
>> it? the helpfile is shocking.

>
>



 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      09-06-2004
6th time lucky wrote:

> Wow, thanks for the quick responce.
> But will these setting change the equivenlent of the "Log on"
> tab to enable also, for the user profile???
>


No, the command will not do that.

> (snip)
>
> I am looking right now at online resources and just turned up
> "sc" but dont think it can enable a service (not talking about
> the startup type). Or can it? the helpfile is shocking.


Normally, when talking about enabling and disabling services, it
is the startup type that is changed. As far as I know (for resource
use etc.) it will not give you any additional benefits to disable a
service in the hardware profile (under the "log On" tab) if it is
already disabled under the startup type.


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      09-06-2004
Jim Graham wrote:
> I don't know of an sc command to do that because it is in the actual
> hardware profile.... but I have a command that should work also:
>
> add these next two lines as well...
>
> reg add "HKLM\SYSTEM\CurrentControlSet\Hardware
> Profiles\0001\System\CurrentControlSet\Enum\ROOT\L EGACY_WUAUSERV\0000" /v

Hi

Instead of HKLM\SYSTEM\CurrentControlSet\HardwareProfiles\000 1\System\...,
wouldn't HKLM\SYSTEM\CurrentControlSet\HardwareProfiles\Cur rent\System\...
be better to use (in case the hardware profile does not point to 0001)?



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
Jim Graham
Guest
Posts: n/a

 
      09-06-2004
Yes, that is correct. Thank you. Using current will work in more situations.


"Torgeir Bakken (MVP)" <Torgeir.Bakken-> wrote in message
news:%...
> Jim Graham wrote:
>> I don't know of an sc command to do that because it is in the actual
>> hardware profile.... but I have a command that should work also:
>>
>> add these next two lines as well...
>>
>> reg add "HKLM\SYSTEM\CurrentControlSet\Hardware
>> Profiles\0001\System\CurrentControlSet\Enum\ROOT\L EGACY_WUAUSERV\0000" /v

> Hi
>
> Instead of HKLM\SYSTEM\CurrentControlSet\HardwareProfiles\000 1\System\...,
> wouldn't HKLM\SYSTEM\CurrentControlSet\HardwareProfiles\Cur rent\System\...
> be better to use (in case the hardware profile does not point to 0001)?
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scr...r/default.mspx



 
Reply With Quote
 
6th time lucky
Guest
Posts: n/a

 
      09-08-2004
Thanks for your input, and as you might see in this thread, a solution is
given which does what was required.

> Normally, when talking about enabling and disabling services, it
> is the startup type that is changed. As far as I know (for resource
> use etc.) it will not give you any additional benefits to disable a
> service in the hardware profile (under the "log On" tab) if it is
> already disabled under the startup type.


Perhaps, but it was done, and it needed to be changed.
 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      09-08-2004
6th time lucky wrote:

> Thanks to all for your help.
>
> This is what i was after i think (i havnt tested it yet).
>
> And i hope you can see why this wasnt an obvious solution and why i asked
> for some knowlegeable help. Can i ask how you found this? Do you just know,
> or is there a good resource for this? (not just google which was no help)

Hi

In this type of situations, I use a program that takes a snapshot of
the system before and after a configuration change and then presents
a difference report you can investigate.


Some free programs that should be able to help you monitor
configuration changes:

Search for InCtrl5 here (does not report changes in binary
registry values):
http://www.xpefiles.com


Total Uninstall - track and undo system changes
http://www.snapfiles.com/get/totaluninstall.html
http://www.geocities.com/ggmartau/tu.html


InstallWatch
http://www.epsilonsquared.com/


Installation Monitor
http://www.microsoft.com/windows2000...instaler-o.asp


InstallSpy
http://www.2brightsparks.com/freeware/freeware-hub.html


You also have Regmon and Filemon from Sysinternals that does a
realtime logging of registry and file access, but they will not
give you a difference report, so they are more for other types
of problems/investigations.

http://www.sysinternals.com/


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable \ reenable ... can not Dave Horne Windows Vista Networking 1 02-08-2009 08:03 PM
QUERY_INTERFACE crashes USBHUB following reenable Walter Oney Windows Vista Drivers 9 01-08-2005 03:21 AM
Automatic Updates Set To Automatic But Still Doesn't Work? HELP!! Scotty Windows Update 4 08-13-2004 09:25 PM
How to disable and reenable a network adapter Andrew Watkins Windows Vista Drivers 3 11-26-2003 04:30 PM
automatic updates install but scan for updates hang at 0% ??? chinito Windows Update 1 09-04-2003 04:26 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59