GPO, VBScript, Replace files


Recommended Posts

History:

I have a lot of AutoCAD users. There is a folder that holds the pen styles and plotter configs (pc3 files). Some people are in charge of setting up the configurations of these files. The files must be the same on all CAD pc's. Some users change the configurations on their local pc's. Sometimes this is necessary for a specific job.

Problem:

Every morning I need to have the exact same files on all CAD pc's.

The files are updated by the authorised editors from time to time and need to be distributed.

There are too many pc's to update manually.

There are too many pc's to have the folder redirected to the server.

Permissions are not an option as the user do need to create or edit their files on an "as needed" basis.

Most of the users are not capable / too stubborn to remove "custom" files and replace with authorised ones.

Some users insist on creating their owe files over authorised ones or distributing corrupt ones.

Question:

I would like a VB Script that would clear out all files in a specific folder and copy the authorised ones into that folder every time a user logs on.

ie: user logs on -> folder emptied -> authorised files copied over from server.

I will be applying the script via a GPO specific to the users (ie various departments have differing files)

Link to comment
https://www.neowin.net/forum/topic/278937-gpo-vbscript-replace-files/
Share on other sites

Tried it out and it worked.

I created a .cmd file with the Robocopy command and some extra switched (ie log files). Also I added a pause in the cmd file so that I could see it working while testing. That will be taken out when deploying.

I then created a vbs file that would run the cmd file (I can't VB for s***).

Lastly I assigned a group policy to the OU that executes the VBS at logon.

I tested it with my logon and it worked. Now I think I need to assign permissions on the robocopy for authenticated users or will server allow the VBS and cmd to use the file? Robocopy is only on the server. My account is a member of Domain Admins.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Mullvad Browser 14.5.4 by Razvan Serea The Mullvad Browser is a privacy-focused web browser developed in a collaboration between Mullvad VPN and the Tor Project. It’s designed to minimize tracking and fingerprinting. You could say it’s a Tor Browser to use without the Tor Network. Instead, you can use it with a trustworthy VPN. The idea is to provide one more alternative – beside the Tor Network – to browse the internet with more privacy. To get as many people as possible to fight the big data gathering of today. To free the internet from mass surveillance. The Mullvad browser is free of charge, open source, and can be used without Mullvad VPN (although the combination is recommended). It is supported across platforms (Windows, MacOS, Linux). Privacy quality of the Tor Browser. To use with a VPN - Using a VPN is not enough to achieve perfect privacy online. There’s simply too much data being extracted through most browsers. The Mullvad Browser is a web browser with the privacy quality of the Tor Browser, to be used with a trustworthy VPN. Strong anti-fingerprinting from the Tor Project - The Tor Project has a proven track record of building a privacy-focused browser. The Mullvad Browser has the same fingerprinting protection as the Tor Browser – it just connects to the internet with (or without) a VPN instead of the Tor Network. No telemetry - Telemetry refers to unique data collected by the browser to enhance its performance. Mullvad does not support the collection of user data. Therefore, with the Mullvad Browser, all telemetry has been removed. Privacy first - Mullvad VPN has a proven record of putting privacy first. With no strange business models or short-term venture capitalist owners. The Tor Project is a non-profit organization fighting for human rights. Mullvad Browser 14.5.4 changelog: All Platforms Updated Firefox to 128.12.0esr Updated NoScript to 13.0.8 Bug 450: Rebase Mullvad Browser stable onto 128.12.0esr [mullvad-browser] Bug 43782: Add new UX flow for changing security level (Desktop) [tor-browser] Bug 43783: Tighten up the SecurityLevel module to enforce new UX flow [tor-browser] Bug 43784: Get confirmation from NoScript that settings are applied [tor-browser] Bug 43911: Backport security fixes from Firefox 140 [tor-browser] Build System / All Platforms Bug 41477: Update keyring/boklm.gpg for new subkeys (2025) [tor-browser-build] Bug 41498: Update keyring/morgan.gpg with updated public key [tor-browser-build] Download: Mullvad Browser 14.5 | 90.6 MB (Open Source) View: Mullvad Browser Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • "To address the immediate privacy alarms this sets off, Meta says that its "Private Processing technology" will be used. This supposedly ensures that neither Meta nor WhatsApp can see your original messages or the private summaries the AI generates." Meta also says "Your privacy and safety are of utmost importance to us." This is also a lie. You know how you can make social media easier to manage? Get a life, and you'll no longer need it.
  • Recent Achievements

    • First Post
      solidox earned a badge
      First Post
    • First Post
      BA the Curmudgeon earned a badge
      First Post
    • One Year In
      blissa jayden earned a badge
      One Year In
    • One Month Later
      blissa jayden earned a badge
      One Month Later
    • Week One Done
      blissa jayden earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      565
    2. 2
      ATLien_0
      213
    3. 3
      +FloatingFatMan
      173
    4. 4
      Michael Scrip
      153
    5. 5
      Som
      151
  • Tell a friend

    Love Neowin? Tell a friend!