Using Group Policy to delete a file

Discussion in 'Active Directory' started by Clint, Apr 24, 2005.

  1. Clint

    Clint Guest

    I need to be able to use group policy to delete a particular file from an
    application directory (i.e. C:\Program Files\Business Objects\BusinessObjects
    5.0\LocData\busobj.lsi). How do I accomplish this w/ Group policy objects or

    Clint, Apr 24, 2005
    1. Advertisements

  2. Clint

    ptwilliams Guest

    You can assign a startup script that performs this deletion to a GPO.
    Assigning scripts via GPO is much easier than the traditional ways due to
    the variety of scopes available to a GPO.
    ptwilliams, Apr 24, 2005
    1. Advertisements

  3. Clint

    Clint Guest

    Thanks, Paul,

    I did think of that, but I really need it to run every 30 minutes, not just
    when the computer starts up. Do you have any suggestions? Isn't there a
    policy to delete a file?

    Clint, Apr 25, 2005
  4. Clint

    ptwilliams Guest

    I believe that startup scripts are reapplied with computer background
    processing. Which would mean that this would run every 90-120 minutes.

    The problem is I've read conflicting arguments on this. Some [people] are
    under the impression that startup scripts, like application deployment
    policies, only apply at startup. However, an MVP that I _REALLY_ trust
    stated what I've said --that this DOES reapply. But I'm this could have
    been a typo or I might have read the post wrong...I'll get back to you on

    Try using a startup script.

    There's no native way to delete files with GPO.

    The other option is to deploy a script and schedule it to run every 60-120
    minutes. The problem here is deploying the script and the scheduled task.
    You could script the copying of the script and then use a .bat file to set
    the scheduled task on each machine using the AT command line tool.
    ptwilliams, Apr 25, 2005
  5. Clint

    Clint Guest

    Thanks, Paul. I'll give it a whirl :)

    Clint, Apr 25, 2005
  6. Clint

    Farcas Razvan

    Jul 6, 2016
    Likes Received:
    Hei Clint ,

    Could you send me please an example of that script file or how did you rezolved the problem ?

    Thanks !
    Farcas Razvan, Jul 6, 2016
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.