Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to configure WSUS so that employees arrive in main location they use WSUS to download stuff, and when they are in other locations (different locations / home etc) they use Windows Updates.

It was suggested in this question to use subnets/locations to do that. This is fine solution however we decided that only about 10-15 computers will get automatic installation of updates, and rest will get an update/download only information.

So we're in situation where we should use a combination of GPO for Location and GPO for OU based (the automatic guys will get their own OU).

Is there a way to configure the windows clients so that WSUS will take it's information from 2 GPO's? Also what about Home / customers locations where we don't know the subnets? Can we somehow configure GPO so that computer when outside of known subnets/locations will turn on another GPO using Windows Updates from Microsoft but keeping our "choice" of automatic download vs download-only (depending on employee).

We choose to install everything for backoffice employees and download-only for programmers (which is 90% of company).

share|improve this question

4 Answers 4

up vote 2 down vote accepted

You need multiple GPOS.

  1. Create 1 GPO to download using the WSUS server. Apply this to the site.
  2. Create a group containing the computers that you want to auto update
  3. create a GPO that sets the WSUS to auto install. Apply security filtering to the GPO that only lets the group in set 2 apply the policy. Apply this (as second priority to the GPO in step 1) to the site.

As far as connecting to WU, You need to have a company policy that remote users VPN in at some interval, to facilitate updates. create a replica server in your DMZ with no content so the systems will get the content from the microsoft update servers (so you won't need to be connected to the VPN to get the updates

share|improve this answer

I've done this with wsus and found that odd things go wrong. Do you want to use wsus to approve the updates but download from MS?

I set up something like this where the main office had its own wsus server and PCs in the branch offices had a secondary wsus server. The secondary server was configured not to download anything and the approvals were chained from the main server. I used GPO's to assign PC's to one or the other.

What I found what that users who took their laptops to the main office would show up once on the main server and never be able to connect to the secondary wsus server. I would have to delete the node from the main one to allow it to sync.

The same would occur for people who went to a branch office with their laptop.

Once a PC has contacted a particular wsus node it appears to 'stick' and you cannot switch over to another one.... but not always. Often this would correct itself. As far as I know this should work but I kept finding nodes which had not updated in months. Deleting the node in wsus would solve the issue.

in short - it didn't work well at all.

When people were offsite (but connected by vpn) the gpos should have directed the users directly to MS - but I would find that they would keep applying the old GPOs, sometimes for months before a gpupdate/force would correct the situation. This is a group policy problem but I never did find out why this occurred.

I switched over to a single server which feeds out the patches to everyone. Guess what? Noone noticed the difference but everything works perfectly.

share|improve this answer
    
We want to have 1 WSUS server in main location. We want updates to be approved by us for programmers and downloaded from WSUS when people are locally connected but they choose whether to install them or not. But we also want to download and install automatically for chosen computers (backoffice). When people are outside of company or branch offices they should get stuff from Microsoft but they should keep asking WSUS whether the updates were approved or not (if that's not possible then switching to MS to get everything). –  MadBoy Jan 23 '12 at 10:15
    
The only way to do this is to have 2 wsus servers as the option to store locally or to pull from MS is an option on the server and not something you can force on the cliente using a GPO. The problem comes with switching back and forth. I found it didn't work very well. Give it a try, maybe you have better luck. You'll hit the problem of needing to apply a policy when its not in contact with the office to switch to not using wsus (or using the secondary wsus and accessing it by vpn) –  Ian Murphy Jan 24 '12 at 11:08

IMHO, it's not possible to do that using vanilla WSUS.

But you can write a script that configure windows update to a failover alternative if WSUS server is inaccessible.

Using a GPO, configure Windows Task Scheduler to run this (loosely tested) powershell script at machine startup with SYSTEM permissions.

Draft script to choose windows updates source based on WSUS server availbility

# Check server availability
function pingServer ([String]$server) {

    Write-Host "Checking server $server"
    $ping = New-Object System.net.networkinformation.ping

    1..3 | foreach {
        write-host $result = ($ping.send($server)).status.toString();
        sleep 1
    }

    return "$result"
}

# Discover WSUS Server address
function getWSUSServer {

        $inserver  = (get-itemproperty -erroraction "SilentlyContinue" hklm:\software\microsoft\policies\windows\windowsupdate-bkp\ WUServer).WUServer
        $outserver = (get-itemproperty -erroraction "SilentlyContinue" hklm:\software\microsoft\policies\windows\windowsupdate\     WUServer).WUServer

        if ($inserver){
            $wuserver = $inserver
        } elseif ($outserver) {
            $wuserver = $outserver
        } else {
            throw "Could not find nor internal or external WSUS configuration."
        }

        Write-Host "WUServer is $wuserver"
        return $wuserver

}

# Change between locations configuratons
function changeLocation ([String]$location) {
    if ( $location -eq 'internal' ){

        rename-item      -erroraction "SilentlyContinue" hklm:\software\microsoft\policies\windows\windowsupdate -NewName "windowsupdate-bkp"

        Set-ItemProperty -erroraction "SilentlyContinue" hklm:\software\Policies\Microsoft\Windows\WindowsUpdate\AU UseWUServer 0

        write-host "Location changed to $location."

    } elseif ( $location -eq 'external' ){

        rename-item      -erroraction "SilentlyContinue" hklm:\software\microsoft\policies\windows\windowsupdate-bkp -NewName "windowsupdate"

        Set-ItemProperty -erroraction "SilentlyContinue" hklm:\software\Policies\Microsoft\Windows\WindowsUpdate\AU UseWUServer 1

        write-host "Location changed to $location."

    } else {

        trhow "Location can be either internal or external, not $location."

    }

}

# main

if ( (pingServer(getWSUSServer)) -eq "Success") {

    Write-Host 'WSUS server available.'
    changeLocation ('internal')

} else {

    Write-Host 'WSUS server unavailable.'
    changeLocation ('external')

}

Write-Host "End of script."
share|improve this answer

If you want to do it indepentenly of GPO via scripting: You can use the /bypass_wsus option of the command line WuInstall to bypass the WSUS and go directly to the Microsoft Site - so you can script the check if a maching should take the WSUS or not, and then use the /bypass_wsus option to install the updates directly from MS

other useful options might be /use_wsus where you can select a certain WSUS server and /use_mu_on_error which uses the Microsoft Site when the WSUS is not reachable for some reason. For options see http://help.wuinstall.com

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.