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

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.
Who is Participating?
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:

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
Lior KarasentiCommented:
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?
David Johnson, CD, MVPOwnerCommented:
WSUS or Windows Update are Computer policy items not a per-user item. Just a FYI
TRTurnerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.