Solved

VB script to remove unwanted application data from profiles

Posted on 2008-10-28
3
257 Views
Last Modified: 2012-05-05
We currently have several hundred PC users with roaming profiles. We would like a script to remove any unesseccary application data from the profiles on the PC's so that this data is not copied back to the profile server at logoff.
We currently use a VB login script and we would like to incorporate the data deletion into this script. Unfortunately the person that created this script no longer works for us and we have no VB script knowledge in the team. Can you help?
0
Comment
Question by:Sam_Bullock
[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
  • 2
3 Comments
 
LVL 65

Expert Comment

by:RobSampson
ID: 22827791
Hi, I'm currently trying to do the same thing, using the Group Policy approach here:
http://support.microsoft.com/kb/814592

but haven't had much time to test it properly....if you have success with it, let me know.

Regards,

Rob.
0
 

Author Comment

by:Sam_Bullock
ID: 22829401
Hi Rob - I had seen the group policy change before but this would cause us problems with laptop users as there would be no local profile on the machine. Thanks anyway
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 250 total points
ID: 22834947
Hi, in that case, with a "logoff" script, you could do something like the following, but I'm sure if the Logoff script would fire before the roaming profile replication....

Regards,

Rob.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
strAppData = objShell.ExpandEnvironmentStrings("%USERPROFILE%") & "\Application Data"
objFSO.DeleteFolder strAppData & "\Unwanted Folder", True

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

734 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