Creating a Script

Mathax

New Member
Reaction score
0
Location
Maine USA
Hi, I am trying to setup eighteen Public access computers.

What I need to have happen is the User Profile Data Deleted on log off of the Patron account, but I need to leave the Administrator account with the data.

The computers have Windows 7 Home Premium. I have done a lot of looking online for a script that can do this for me and have not found anything that works.


I am Using GFI to monitor the computers so I have an easy deploy for the script once I have it.

Since I have no experience writing Scripts I was wondering if someone else had one written that I could make use of.
 
Would something like deepfreeze or such be a better choice? Otherwise default user account restore on log off might do the trick?
 
I have never run a script thru GFI to delete a user account, but I have one that adds a user account and have used it often.

I don't want to delete the User account. More like I want to delete all the Data in the user account on the log off of said account.


Would this script do what you are needing?:

And maybe set it up as a check instead of a script that runs when the event log says the user logged off.

It doesn't look like it but I will try it out and see if it will work for what I need.

Would something like deepfreeze or such be a better choice? Otherwise default user account restore on log off might do the trick?

We considered Deep Freeze but it doesn't look like it will do what we want exactly and has a big price tag for the amount of computers we are doing.
 
Last edited:
Sounds like a Mandatory Profile may work for you, but read up on it there are many pros and many cons to such a thing, personally haven't touched one since XP era:
(ugg still can't post links, well google is your friend)
 
https://social.technet.microsoft.co...and-subfolders-but-not-root-folder?forum=ITCG


This page has the info for you to do it.

You can just delete all files and sub folders of the different directories (videos, pictures, documents...etc) of your lab users profile. Make sure when you're running the script it's scheduled with an administrator acct.

Personally, I'm +1 for the deep freeze, much less of a hassle. And rarely have any issues with setups that use it.

If you need help editing the code let me know and I'll do it when I'm on my desktop.
 
Back
Top