Solved

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

Posted on 2014-02-10
4
369 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
ID: 39847361
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
ID: 39847417
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 80

Expert Comment

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

Author Closing Comment

by:TRTurner
ID: 39887264
Thanks
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

830 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