Solved

Bat files to automatically add users to WSUS server from outside the network.

Posted on 2014-02-10
4
366 Views
Last Modified: 2014-02-25
I have a internet facing WSUS server and I would like to send my external users a bat file or some type of script that would automatically add them to my WSUS server.

All the users are part of the domain.
0
Comment
Question by:TRTurner
4 Comments
 
LVL 17

Expert Comment

by:Lior Karasenti
Comment Utility
Are the computers part of the domain?
Why don't you add them to the server using Group Policy?
Are they (the computers) positioned outside the network?
0
 
LVL 15

Accepted Solution

by:
ZabagaR earned 500 total points
Comment Utility
I'd think you'd want to use active directory & group policy to set that up.

To do it your requested way, you could use the script here: https://msmvps.com/blogs/athif/archive/2005/09/14/Manually_Configure_WUA.aspx

Or also could make a vbscript (.vbs) file that edits the registry values pertaining to WSUS.

For example the code at the bottom of my post....You could paste it in notepad and call it wsus.vbs.

Put your FQDN or IP where I wrote "your_WSUS_server". Then all of the other values are the other WSUS related settings you'd set to your own liking.



Set oshell = CreateObject("WScript.Shell")

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUServer", "http://your_WSUS_server", "REG_SZ"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUStatusServer", "http://your_WSUS_server", "REG_SZ"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoRebootWithLoggedOnUsers", 0, "REG_DWORD"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate", 0, "REG_DWORD"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\Options", 4, "REG_DWORD"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ScheduledInstallDay", 0, "REG_DWORD"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ScheduledInstallTime", 4, "REG_DWORD"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWUServer", 1, "REG_DWORD"

oshell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\RescheduleWaitTime", 5, "REG_DWORD"

Set oshell = Nothing
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
WSUS or Windows Update are Computer policy items not a per-user item. Just a FYI
0
 
LVL 6

Author Closing Comment

by:TRTurner
Comment Utility
Thanks
0

Featured Post

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now