Jump to content


  • 0
packager

Script to delete files and SCCM's help

Question

5 answers to this question

Recommended Posts

  • 0

Depends on the requirements... When all the machines are connected to the network all the time, then I would use SCCM with a rerunning advertisement. Otherwise I would use SCCM once to create a scheduled task, so it will always run even if the machine is not connected to the network..

Share this post


Link to post
Share on other sites

  • 0

Hi Peter,

 

I need to run a script on hundreds of machines.This script would delete the files from a particular folder on a weekly basis and on a particular time.Is my follwing steps right ?

 

1) Create a scheduled task using vbscript or powershell.This would also take care that it runs when the user is logged on

 

2) Deploy the script using SCCM

 

 

Or

 

2) Deploy the script using Group policy

 

 

All the workstattions are connected to the network all the time.

Share this post


Link to post
Share on other sites

  • 0

Hi,

 

If you know that your computers are on all the time then you can have the script on an admin computer or server and make only one schedule.

As long as your computers firewalls or policys in any way doesent probit that you access your computers from another computer like \\computer\c$\pathtofiletodelete.

 

If you don't like to create schedule tasks for every computers you can make a script that you run with a group policy when your computers starts and If it's the right day of the month the file is deleted.

 

If you want to use schedule tasks then I think you should deploy them with group policy.

 

Best Regard,

Fredrik Wall

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.