Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB script to remove unwanted application data from profiles

Posted on 2008-10-28
3
Medium Priority
?
260 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 750 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

704 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