Script to automatically archive messages on Server

I'm trying to train SpamAssasin and have set up junkmail and notjunkmail accounts on OS X Server. SpamAssasin alledgedly runs through its "training session" every morning at 2:15 am.
I'd like to set up a cron/launchd/whatever job to automatically archive the inboxes of those accounts to some other location when spamassasin is done with them so they're not re-scanned the next day. Ideally "move" the messages to an 'archive' folder.
Anyone care to walk me through how to do something like this on OS X Server? Or perhaps a better way of handling this?
Thanks!

A correct POP3 server will leave the messages on the server unless you explicitly deleted them.
Some POP3 servers assume that once you've "read" a message, you've downloaded it to your
machine and stored it there, so it's safe to remove it from the server. For some servers that
do this, "rsetbeforequit" solves the problem. If that's not working for your server, you might
need to ask your server vendor about it.
To be sure rsetbeforequit is doing what you expect, examine the protocol trace. Consider posting
an example trace here, or send it to me at [email protected]
I'm not sure how Thunderbird is causing the server to leave the messages; how have you
configured Thunderbird?

Similar Messages

  • Script to automate the display language on windows server

    Hi,
    I'm looking for a script which should change the windows display language from non-english to english (vizversa).
    Here is the scenario:
    On windows server 2008 R2 I have two language installed - Japanese and English with the help of MUI packs available on microsoft site. The native language of windows server 2008 R2 is Japanese. Consider there are 10 sys admins only knows
    Japanese but not english. Similarly there are 10 sys admins knowing only English. I  being english administrator, i should each time go to regional setting in the control panel and click on change display language to english. After
    I finish my task I need to set back the language to japanese(native).
    I'm looking for script which can auotmate this process.
    Objective:
    The script should automatical change the language to Japanese when I logoff from the system. 
    Here is the steps to reach "Change Display language" on windows server 2008
    Go to control Panel > Category view (on right side top ) > System and Security > Clock ,Language and Region > Under “Regional Language” > Change display
    language > Go to Tab “Keyboards and Languages” > Look for the dropdown menu “Choose a display language” and choose the appropriate language you prefer from the dropdown list
    Kindly note this menu/option is available for Vista,Windows 7 and Windows Server 2008. This option is also available on Windows XP/Server 2000/2003 provided the LIP/MUI is installed.
    Thanks
    Ezakial

    Hi,
    I'm looking for a script which should change the windows display language from non-english to english (vizversa).
    Here is the scenario:
    On windows server 2008 R2 I have two language installed - Japanese and English...
    Thanks
    Ezakial
    Guys,
    Forgive me, but I think you are making this far too complicated. Using a script to achieve this is, in my view the wrong tool, and a little dangerous. If your logoff script fails to run for any reason, 11 Japanese sysadmins will be waving Samurai swords
    at you :-).
    There is a single Group Policy setting that will do exactly what you want on Vista, W7, W2K8 & R2.
    Create a new Group Policy object ("English_interface", for example.
    Edit the new policy object
    Drill down to "User Configuration, Policies, Administrative Templates, Control Panel, Regional and Language Options"
    Pick the setting "Restricts the UI languages Windows should use for the selected user" and Enable it.
    Drop down the "Restrict users to the following language" and pick "English"
    Click "OK"
    Link your new GPO somewhere in the OU hierarchy that contains the English user
    If other (Japanese?) users are also in the same container, you can filter application of the GPO by security group so that the policy can only be read and applied by the English group.
    That's all you need to do!
    As a point of principle. I ALWAYS install my OS in US English then add languages, and set the locals to use their own language. This is because service packs and hotfixes invariably arrive for US English first, and some hot fixes are NEVER translated.
    I'm just doing this for a single W7 build in English, to be deployed in 6 countries, with 7 different languages and 9 different keyboard layouts. Fun...
    Come back if you need more help. I volunteer to visit and help if you want!
    Richard
    MCSE, MCITP, MCT etc.
    Switzerland
    RS

  • Script stops automatically on windows server 2008, IE8 is not launched or it doesn't navigate

    QTP 11.0 - Script stops automatically on windows server 2008, IE8 and works fine on other standalone machines having Windows 7. Pls advise. It is very weird, it suddenly stops launching IE8. Sometimes it launches IE8 but des not navigate from one step to another. I have scheduled it using a vbscript though windows scheduler.  I tired to uninstall QTP, then reinstall, it works fine for first run but stops again.

    To Wendy23,
    Just for clarity, the Windows Server 2008 OS that I ran ROBOCOPY and XCOPY on was the non-R2 version. Microsoft might have fixed this issue in R2.
    You'll probably need to logon as local Administrator or use an account belonging to the local Administrators group.
    Also, open the Command Prompt using "Run as Administrator" (right-click on Command Prompt), then run the XCOPY and ROBOCOPY commands from within this prompt.
    To answer G.Write, the storage is local hard disks.
    Thanks, was a long time ago, I was having a problem with robocopy not copying permissions on a SAN, and was wondering if the SAN was the problem, but your method worked fine for me, thanks.

  • Leave messages on server options checked automatically

    I have been using Thunderbird with two Godaddy email accounts for few years now. I always had for both accounts the option "Leave messages on server" checked, while "For at most" and "Until I delete them" unchecked. Today I've accessed one of the accounts via the web interface and noticed that only messages from the past 14 days had been left there. I've opened the settings in Thunderbird and noticed to my amazement that only in one of the accounts "For at most" and "Until I delete them" were magically checked. I'm sure I have not changed this myself (or any other setting recently), and I'm the only user of this PC. The only thing I can think of that may have caused this is the recent automatic update of Thunderbird.

    <blockquote>''The only thing I can think of that may have caused this is the recent automatic update of Thunderbird.''</blockquote>
    It is my opinion that settings do mysteriously change when Thunderbird updates. I don't think it's ever happened to me (but there again, I had to re-set some Saved Searches yesterday) but there is/has been much anecdotal evidence where a system that has worked previously suddenly doesn't work and is found to have illogical or inconsistent settings, such as SSL with the usual non-secured ports. Another is HTML vs plain text message composition, where users complain about the HTML formatting tools vanishing, and the message composition Toolbar hiding, leading to users complaining about the non-existent Send button, and so on, hinting at settings which have changed all by themselves.

  • How do you change the Event Viewer archive location in Server 2008 R2?

    We're wanting to redirect the security and system event viewer logs to the D:\ on a Server 2008 R2 box
    We've got the current logs to save there, however all archived system/security logs are still being saved on the c:\ in their default location in %windir%\system32... and killing the OS partition.
    I can write something up in PoSh and schedule it, but I'd rather use any built-in capabilities first...
    I've taken a peek in the HKLM\Services\CurrentControlSet... hive where the event viewer behavior is configured and do not see an option to set a path for the archive location...

    Unfortunately, you cannot customize the location of archived event logs in Windows. The logs will always be archived to %windir%\system32\Winevt\Logs\Archive-xxxxxx
    There'd be some scripts can help you automatically archived logs to another location. You can find them here: http://gallery.technet.microsoft.com/scriptcenter/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=security
    Regards,
    Zhang     
    TechNet Subscriber Support
    If you are
    TechNet Subscriptionuser
    and have any feedback, please send your feedback here.

  • Will scripts run automatically ?

    If I shut down my Mac everynight(I live in a time zone 6 hours ahead of Eastern US time), will the scripts run automatically when I start it up the next morning...or...do I need a special utility application for this ?

    these scripts are not worth worrying about. you should just leave them alone. the OS does a very good job of running them all by itself. and they are all quite useless anyway. many people (apparently yourself included) seem to think that these periodic scripts are important maintenance tools and will make your system run better and faster. nothing can be further from the truth.
    *monthly scripts* :
    1. archive and recycle fax logs. have you used your mac as a fax machine lately?
    2. write accounting information (total uptime of every account) in the monthly.out log.
    That's IT. so unless you use your mac as a fax machine (do you, really?) you don't need to run monthly scripts. EVER.
    *weekly scripts*:
    in snow leopard they do one thing ONLY: rebuild whois database. it's only useful if you are a unix user and actually use the whois terminal command at least on occasion. I'll bet my bottom dollar you never have and never will. then you don't need to run the weekly scripts either. EVER.
    *daily scripts*
    they do several things
    1. clean up the logs from /Library/Logs/CrashReporter which are more than 60 days old. hardly an urgent task. and those logs are really very few unless your system is seriously messed up. you can go a year without deleting any and will collect a few MBs at the most.
    2. delete junk from /tmp directory that's more than 3 days old.
    This is done automatically on every reboot without any periodic scripts. if you don't reboot the computer then daily scripts will run *no matter* the schedule. if you don't sleep the computer at night they'll run at night. if you do sleep the computer at night they will run first thing in the morning when the computer is turned on. again, zero need to reschedule anything.
    3. deletes files older than 7 days from /var/rwho. this is only relevant if you are running a unix network. otherwise there is nothing to delete - EVER.
    4. rotate accounting files. again, those are nonexistent unless you are a unix administrator.
    5. run the terminal command *df -l -h* and print out the output to daily.out. all this command does is list currently mounted hard drives. useless.
    6.print the current network status in daily.out. this is again just reporting not maintenance.
    7. Delete system messages. Once again this is relevant only for multi-user Unix systems.
    8. remove scratch fax files. see my comment above about using your mac as a fax machine.
    9. it writes some other accounting and system status info to daily.out. this is again only reporting and is ONLY actually present on unix networks.
    and that's all, folks.

  • Keep Exchange Messages on Server after Mail Downloads Them

    First, I'm still not good with computer/Mac language, so I apologize if the following is confusing and for the vocabulary mistakes I'm sure I'm making!
    I set up Mail.app to work with my work's Exchange email just a few weeks ago, and everything seems to work fine except for one thing - Mail.app "steals" all of my work messages from the server.
    When I'm at work, I use Outlook to manage my work mail. When I'm on my laptop at home, I use Mail.app for my work mail. When I'm not at work or at home, I just log into my work email through a website (which, I think, is the main server where all the work emails are stored). Until I brought Mail.app into the mix, Outlook would download copies of these emails fro the server, but the emails would stay on the server unless I actually logged into the mail website/server and deleted them. At that point, they'd also automatically delete from Outlook. This was perfect, as I could access work email from work and from the website when I wasn't at work.
    Once I started using Mail.app at home, I noticed that when I came to work the next morning, all of my emails were gone from Outlook. I logged into the work email website/server, and noticed that all of the messages were also gone from the server. My guess is that when Mail.app downloads messages from the server, it downloads the actual message and doesn't keep one on the server. Then, Outlook automatically syncs with the server, which shows all of the messages as being deleted.
    If that made any sense, is there any way to tinker with the Mail.app settings to make it so that it only downloads copies of messages on my work server? I don't want it to remove the message from the server; that way, I can still access my work email from work through Outlook and from other places, through the website/server.
    Thank you so much for any advice!

    Not putting any messages in the trash (unless I want to delete them) - they're just disappearing from the server and my work Outlook. I deleted the account in Mail and re-added it, and the same thing happened with the messages that came to my work email server in the meantime.
    Would it help (or even be possible) to set up the account as a POP or Exchange 2007 account in Mail.app? It seems like when I enter in the email address, Mail sets it up as an "Exchange IMAP" account automatically. If I press the Option button while doing that, I noticed I can then choose to add it as a POP or Exchange 2007 account. I wonder if that would help?

  • How to delete the archived messages?

    Archiving is setup and running in our PI systems.  ( I used the SDN doc, "Archive and Delete Messages in SAP. XI: A Step-by-Step Guide") 
    I'm now looking to automate the deletion of the archived messages (NOT the deletion of the original message in the DB, but the data that has been written out to the O/S -- the actual archived data file.
    Any pointers on how to accomplish this?
    Thanks in advance.
    -Joe Rufo

    The archive job creates the files in the files system you configured. These files contain the archived messages..
    What you can do is run periodic jobs to deletes files which are older than a certain date...
    If there are certain types of messages you want to hold on for a longer period...then archive them seperately... and run a different batch job to clear the files...
    regards,
    Arvind R

  • How can I stop Mail from automatically archiving every incoming and outgoing email?

    Mail is automatically archiving every incoming and outgoing message, and then synch'ing that with my iPhone -- thus sucking up all available memory.  I have never asked it to automatically archive everything, and can't figure out how to stop it.  Any ideas?

    Launch Mail.
    Mail > Preferences > Accounts > Advanced
    Uncheck the box beside "Include when automatically checking for new messages".
    Do it for all accounts if you want.
    Best.

  • Disable Outlook Integration-Automatic Archival Feature

    Greetings,
    I'm trying to find a way to disable Adobe X Standard/Professional's feature of Automatic Archival of e-mail in Outlook 2010.
    We have a no-archiving policy in our organization, and this feature permits users to very easily circumvent the policy (and locking outlook from making its own archive)
    I don't want to disable the entire Outlook toolbar (I've done this, and while it will work, it removes other adobe features in outlook that I would like to retain.)
    I have already looked in the Adobe Configuration Tool, and the AIM for Acrobat, and unfortunately, i cannot find reference to this feature and how to disable it/remove it from the toolbar.

    I'll clarify.
    The Adobe Customization Wizard X doesn't reveal any way to disable this part of the add-in installs (in my case Adobe X Standard)
    The feature also isn't listed in the Preferences Reference (AIM) available at:
    http://learn.adobe.com/wiki/download/attachments/46432650/AIM.air
    Here's a pic of the ribbon, and the button that I need to disable when deploying Acrobat X Standard to my users.
    (in some way other than simply removing it from the ribbon manually, user by user).
    Message was edited by: GovernmentGreg

  • TS2998 After upgrading to Snow Leopard, Mail will not let me archive any mail. All archived messages re-appear in my inbox (I have tried archiving and placing in the trash bin).

    After upgrading to Snow Leopard, Mail will not let me archive any mail. All archived messages re-appear in my inbox (I have tried archiving and placing in the trash bin). How do i regain control of my inbox?

    The main differences that can cause a problem are scripting additions (64-bit vs 32-bit and security reasons) and the usage of dates (it is not as forgiving). AppleScript itself is basically the same, so if empty paragraphs are what caused your problems the update would have just been a coincidence.

  • How to enable automatic archiving?

    Hi!
    This is about Oracle 10.2.0.4 on Solaris.
    First the most important information.
    SQL>archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination ?/dbs/arch
    Oldest online log sequence 12
    Next log sequence to archive 12
    Current log sequence 17
    SQL> show parameter recov
    NAME TYPE VALUE
    db_recovery_file_dest string /data/MVS_P0/reco01
    db_recovery_file_dest_size big integer 98G
    recovery_parallelism integer 0
    SQL> show parameter archive
    NAME TYPE VALUE
    archive_lag_target integer 0
    log_archive_config string
    log_archive_dest string
    log_archive_dest_1 string
    log_archive_dest_10 string
    log_archive_dest_2 string
    log_archive_dest_3 string
    log_archive_dest_4 string
    log_archive_dest_5 string
    log_archive_dest_6 string
    log_archive_dest_7 string
    NAME TYPE VALUE
    log_archive_dest_8 string
    log_archive_dest_9 string
    log_archive_dest_state_1 string enable
    log_archive_dest_state_10 string enable
    log_archive_dest_state_2 string enable
    log_archive_dest_state_3 string enable
    log_archive_dest_state_4 string enable
    log_archive_dest_state_5 string enable
    log_archive_dest_state_6 string enable
    log_archive_dest_state_7 string enable
    log_archive_dest_state_8 string enable
    NAME TYPE VALUE
    log_archive_dest_state_9 string enable
    log_archive_duplex_dest string
    log_archive_format string %t_%s_%r.dbf
    log_archive_local_first boolean TRUE
    log_archive_max_processes integer 2
    log_archive_min_succeed_dest integer 1
    log_archive_start boolean FALSE
    log_archive_trace integer 0
    remote_archive_enable string true
    standby_archive_dest string ?/dbs/arch
    The problem
    When I do a 'alter system log switch' the lines below are shown in the alertlog:
    Errors in file /data/MVS_P0/admin/bdump/mvs_r1_arc0_12115.trc:
    ORA-16014: Message 16014 not found; No message file for product=RDBMS, facility=ORA; arguments: [6] [12]
    ORA-00312: Message 312 not found; No message file for product=RDBMS, facility=ORA; arguments: [6] [1] [data/MVS_P0/redo01/log06.rdo]
    SQL> select recid, completion_time, name from v$archived_log
    RECID COMPLETIO NAME
    1 23-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_23/o1_mf_1_1_48gf98jq_.arc
    2 23-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_23/o1_mf_1_2_48gfjvq1_.arc
    3 28-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_28/o1_mf_1_3_48vf0cns_.arc
    4 02-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_02/o1_mf_1_4_497pys3n_.arc
    5 06-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_06/o1_mf_1_5_49mfqbrb_.arc
    6 11-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_11/o1_mf_1_6_4b16ml0y_.arc
    7 17-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_17/o1_mf_1_7_4bhd48pc_.arc
    8 21-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_21/o1_mf_1_8_4bvlck3b_.arc
    9 22-AUG-08 /data/MVS_P0/reco01/arch/1_9_660770425.dbf
    10 22-AUG-08 /data/MVS_P0/reco01/arch/1_10_660770425.dbf
    11 22-AUG-08 /data/MVS_P0/reco01/arch/1_11_660770425.dbf
    11 rows selected.
    It looks like the archives are not written, or I can not find them. I check $ORACLE_HOME/dbs/arch and /data/MVS_P0/reco01 but it is not there. It worked before, but the person who configured it is on holiday. I know that I did 'something' that created archives (check the last three lines above), but that is somehow not working anymore.
    Can someone help me by finding the archives?
    (I need to make a online copy to create a standby-database, that is quite hard without archives. ;-))

    The query above does not show errors:
    DESTINATION STATUS FAIL_DATE VALID_NOW ERROR
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    INACTIVE UNKNOWN
    9 rows selected.
    I have set the log_archive_dest_1 to location=/data/MVS_P0/reco01/arch reopen=5
    When I archive manually, the archives are written to /data/MVS_P0/reco01/arch

  • Mail's "Messages on Server" in "Account Info"  not working

    Since upgrading to Maverick, it has become extremely tedious to manage my Pop server accounts via Mail's Account Info, Messages on Server function.  In the first place, none of the sorting tabs work--the messages are sorted by size only and will not re-sort in any other way.
    Secondly, and more frustratingly, it takes an interminable amount of time to delete messages from the server via the Messages on Server window--more than a full minute in most instances.
    This is a real nuisance in that my practice is to view what is on the server before downloading email, deleting any that are spam or otherwise not needing to be downloaded.  The practice allows me to leave email on the server until I have downloaded it on both (or either) of two machines that I use to access my email accounts--of which I have four to check.
    For the record, I am running OS X 10.9.1 and Mail 7.1 (1827).
    Is anyone at Apple aware of these issues?  And if so, is anything being done?  Is there anything that I can do to address this?
    Thank you.
    Onfoot

    I assume you are talking about your gmail account. If you choose to store the messages on the server, you will be able to access them from the gmail website from any computer. If you leave it unchecked, you won't. If you have set up your Mac Mail application with your gmail account, your MobileMe will automatically sync your computer with the online MobileMe website whether you store the emails on the gmail server or not. So what it comes down to is that if you choose to keep your messages on the gmail server, you will be able to access them from two places online - MobileMe and the Gmail website.
    Hope this helps,
    Chris

  • Using a script to automate UNC definition updates for FEP 2010

    Hi all,
    I tested the script mentioned in this article
    http://blogs.technet.com/b/clientsecurity/archive/2010/09/16/using-a-script-to-automate-unc-definition-updates.aspx with no success. I am getting the following error:
    Line: 11
    Char: 5
    Error: The operation timed out
    Code: 80072EE2
    Source: WinHttp.WinHttpRequest
    the script content is as follows:
    strMSEx86URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x86"
    strMSEx86Location = "D:\defs\Updates\x86\mpam-fe.exe" 
    strNISX86URL = "http://go.microsoft.com/fwlink/?LinkId=197095" 
    strNISX86Location = "D:\defs\Updates\x86\nis_full.exe" 
    strMSEx64URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x64" 
    strMSEx64Location = "D:\defs\Updates\x64\mpam-fe.exe" 
    strNISX64URL = "http://go.microsoft.com/fwlink/?LinkId=197094" 
    strNISX64Location = "D:\defs\Updates\x64\nis_full.exe"
    Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")  
        objWINHTTP.open "GET", strMSEx86URL, false  
        objWINHTTP.send
    If objWINHTTP.Status = 200 Then
    Set objADOStream = CreateObject("ADODB.Stream")
       objADOStream.Open
      objADOStream.Type = 1 'adTypeBinary
    objADOStream.Write objWINHTTP.ResponseBody
    objADOStream.Position = 0 'Set the stream position to the Start
    Set objFSO = Createobject("Scripting.FileSystemObject") 
        'check if file exists if so delete 
        If objFSO.Fileexists(strMSEx86Location) Then objFSO.DeleteFile strMSEx86Location
    objADOStream.SaveToFile strMSEx86Location 
    objADOStream.Close
    end if
    Anybody can help?

    This is the script that I use and it works:
    strMSEx86URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x86" 
    strMSEx86Location = "C:\defs\Updates\x86\mpam-fe.exe" 
    strNISX86URL = "http://download.microsoft.com/download/DefinitionUpdates/x86/nis_full.exe" 
    strNISX86Location = "C:\defs\Updates\x86\nis_full.exe" 
    strMSEx64URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x64" 
    strMSEx64Location = "C:\defs\Updates\x64\mpam-fe.exe" 
    strNISX64URL = "http://download.microsoft.com/download/DefinitionUpdates/amd64/nis_full.exe" 
    strNISX64Location = "C:\defs\Updates\x64\nis_full.exe"
    Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")  
        objWINHTTP.open "GET", strMSEx86URL, false  
        objWINHTTP.send
    If objWINHTTP.Status = 200 Then 
    Set objADOStream = CreateObject("ADODB.Stream") 
        objADOStream.Open 
        objADOStream.Type = 1 'adTypeBinary 
        objADOStream.Write objWINHTTP.ResponseBody 
        objADOStream.Position = 0 'Set the stream position to
    Set objFSO = Createobject("Scripting.FileSystemObject") 
        'check if file exists if so delete 
        If objFSO.Fileexists(strMSEx86Location) Then objFSO.DeleteFile(strMSEx86Location)
    objADOStream.SaveToFile strMSEx86Location 
    objADOStream.Close
    End IF
    Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")  
        objWINHTTP.open "GET", strNISx86URL, false  
        objWINHTTP.send
    If objWINHTTP.Status = 200 Then 
    Set objADOStream = CreateObject("ADODB.Stream") 
        objADOStream.Open 
        objADOStream.Type = 1 'adTypeBinary 
        objADOStream.Write objWINHTTP.ResponseBody 
        objADOStream.Position = 0 'Set the stream position to
    Set objFSO = Createobject("Scripting.FileSystemObject") 
        'check if file exists if so delete 
        If objFSO.Fileexists(strNISx86Location) Then objFSO.DeleteFile (strNISx86Location)
    objADOStream.SaveToFile strNISx86Location 
    objADOStream.Close
    END IF
    Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")  
        objWINHTTP.open "GET", strNISx64URL, false  
        objWINHTTP.send
    If objWINHTTP.Status = 200 Then 
    Set objADOStream = CreateObject("ADODB.Stream") 
        objADOStream.Open 
        objADOStream.Type = 1 'adTypeBinary 
        objADOStream.Write objWINHTTP.ResponseBody 
        objADOStream.Position = 0 'Set the stream position to
    Set objFSO = Createobject("Scripting.FileSystemObject") 
        'check if file exists if so delete 
        If objFSO.Fileexists(strNISx64Location) Then objFSO.DeleteFile (strNISx64Location)
    objADOStream.SaveToFile strNISx64Location 
    objADOStream.Close
    END IF
    Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")  
        objWINHTTP.open "GET", strMSEx64URL, false  
        objWINHTTP.send
    If objWINHTTP.Status = 200 Then 
    Set objADOStream = CreateObject("ADODB.Stream") 
        objADOStream.Open 
        objADOStream.Type = 1 'adTypeBinary 
        objADOStream.Write objWINHTTP.ResponseBody 
        objADOStream.Position = 0 'Set the stream position to
    Set objFSO = Createobject("Scripting.FileSystemObject") 
        'check if file exists if so delete 
        If objFSO.Fileexists(strMSEx64Location) Then objFSO.DeleteFile(strMSEx64Location)
    objADOStream.SaveToFile strMSEx64Location 
    objADOStream.Close
    END IF

  • How do I get a reliable schedule for automatic update in Windows Server 2012 R2?

    I don't understand why MS broke the automatic update in Windows Server 2012 R2. In previous versions, I used to set it for automatic updates - Saturdays at 2AM. I can no longer pick a weekly update in the GUI and the time seems to have no impact on its capricious
    reboots due to updates.   It might happen 2 days later at noon.   The best option for now is to just shut off the automatic updates but I'm reading this issue has been around since 2012 R1.   There supposedly is a fix/patch for
    2012 but it doesn't say if the patch is for 2012 R2 and the automatic updates haven't installed a fix that actually fixes what is broken with the automatic updates.
    Why even leave the GUI for automatic updates if it doesn't mean anything?
    Is there a simple registry key I can change so updates occur according to the schedule that you created in the GUI?      Please no powershell - worst crutch MS ever created to not fix their own gui.
    I'm seeing people have tried some advanced work around using GPO but many said those don't work reliably either on hosts or domain controllers.

    This may explain:
    http://blogs.technet.com/b/wsus/archive/2013/10/08/enabling-a-more-predictable-windows-update-experience-for-windows-8-and-windows-server-2012-kb-2885694.aspx
    http://blogs.technet.com/b/wsus/archive/2013/06/11/wsus-blog-managing-updates-with-deadlines-in-an-era-of-automatic-maintenance.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

Maybe you are looking for

  • Cannot open iTunes

    When I try to open iTunes, it immediately freezes. I have uninstalled it and reinstalled it several times.

  • Can't enable iCloud documents on iPad

    I had an old MobileMe account, and a separate Apple ID for my iTunes account.  My iTunes ID is now associated with my iCloud account, which appears to be syncing Calendar and Contacts just fine.  However, I have been unable to get my iPad to enable i

  • New external drive:  Copy existing masters onto it?

    This is a hard drive setup question. Current setup: 2013 iMac27 with SSD. Aperture on internal.  All masters are referenced on an external 1TB USB2 drive. Backup 1 is on a 3TB external using Time Machine Backup 2 is on CrashPlan cloud This has been w

  • Implementing heirarichal structure in data warehouse

    I want to create a data warehouse for credit card application. Each user can have a credit card and multiple supplementary credit cards. Each credit card has a main limit, which can be sub-divided into sub-limits to supplementary credit cards as requ

  • DVI connector

    1.Is the DVI connector on my PB mimi-DVI or DVI-D and what is the difference? 2. Which one do I need to connect my PB to my HDTV that has hdmi connectors? Message was edited by: Olemacr