Solved

Windows 2008 Group Poloicy Preferences

Posted on 2011-09-30
8
427 Views
Last Modified: 2012-05-12
I'm creating a new Windows 2008 Group Policy Computer Preference to delete a number of TEMP file directories. I have set he preference type as to Replace and to purge all files. Will this run when the server is rebooted?? I want to know when the server will purge these files listed in my policy
0
Comment
Question by:compdigit44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 11

Expert Comment

by:Ackles
ID: 36893347
It will run either when the policy refresh interval is reached I.e. group policy is updated or machine restart.
0
 
LVL 10

Expert Comment

by:abhijitwaikar
ID: 36893388
WHat exactly you want to achieve? Which location in AD you applied this setting? where do you want apply this policy? server or on client?

Here's how policies are applied in domain controller.
>Everything under the USER CONFIGURATION node is applied upon logging in.
>Everything under the COMPUTER CONFIGURATION node is applied prior to getting the login box (in other words, prior to being able to press ctrl alt del).

Now, if you apply a policy and don't want to logoff and back on again to have it apply, do the following to apply the policy immediately:
Go to START + RUN + type the following: CMD and press ENTER
At the command prompt type the following: gpupdate /force

By default, computer Group Policy is updated in the background every 90 minutes, with a random offset of 0 to 30 minutes.

Regards,
Abhijit Waikar.
0
 
LVL 11

Expert Comment

by:Ackles
ID: 36893431
To be 100% sure, just reboot the server.
There are many instances when gpupdate /force won't give you the desired results.

A
 
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 20

Author Comment

by:compdigit44
ID: 36893470
I want to delete all files in C:\windows\temp & %userprofile%\appdata\local\temp
0
 
LVL 11

Expert Comment

by:Ackles
ID: 36893488
0
 
LVL 20

Author Comment

by:compdigit44
ID: 36904326
I tried that and it doesn't work. when I use %userprofile%\appdata\local\temp" in the GP folder preferences I get the error in the event logs the servers can can find the Computer temp??????
0
 
LVL 11

Accepted Solution

by:
Ackles earned 500 total points
ID: 36923809
Hi,
There is a different approach, you can use PowerShell Script for this. Please see the link below which will tell you exactly how to achieve the script:
http://www.computerperformance.co.uk/powershell/powershell_temp.htm

Since the path you mentioned is corresponding to Windows 7, then you definately have ISE enabled.
Considering this, it should just run.

Now, how to run a script on machine via GPP, please see below to execute the above script:
http://www.grouppolicy.biz/2010/01/how-to-schedule-a-delayed-start-logon-script-with-group-policy/


Please tell if you need some help or you are not comfortable with this approach?

A
0
 
LVL 11

Expert Comment

by:Ackles
ID: 36924037
Thanks.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question