Solved

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

Posted on 2014-02-10
4
368 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 79

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

777 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