I need a logout script that will erase the standard user account data after logout.

I have a lab of 35 Macbook Pros and I am trying to make it where when the user logouts, it will erase the data after they logout.
I have found several articles about deleting user accounts when they login through AD, but this is not the case.
Any help would be much help!

Then when they are at those system they do not Login and if they do have to enter a password it is whatever it is for the Base user account that is setup. Right?
I'd look at the Mac KB system to see if you can restrict saving to the local HDD but yet allow saving to a thumb drive or not.
To do what you want the system would need to keep track of all files saved from time X to time Y, and those times would be every changing. Not sure you are going to get there from here.
Not sure what you mean by Lab machines. I've worked in and gone to school at a Graphic art school and they have hundreds of Lab Mac's that each student must log into with there own user account when in different classes and when saving any of there work it gets saved on the server so it can be retrieved by them when they log into another system someplace else throughout the school or when using their own computer and connected to the schools network.
I wish you the best of luck with this project.

Similar Messages

  • Need a powershell script that will modify the path of an existing Outlook 2010 OST file

    For new users we have a GPO in place that creates the OST file in the correct location.  The GPO also works on existing users who create a new Outlook Profile.
    The problem I am trying to solve is modifying an existing Outlook Profile and changing the location that the OST file is written to.
    I have to put the users OST file on the network.  Yes, I do know that this is not supported by Microsoft, but I have zero clients (WYSE units) on non-persistent VMware virtual machines.  This means they cannot keep the OST file on the PC. 
    Our email provider requires us to run in Cached-Mode so OST files are here to stay.
    Forcing 3000 users to create new Outlook profiles would not have a good outcome.
    I also have to relocate their PST files onto the network, which is also not supported.  I have been able to connect PST's with powershell, but disconnecting them has been challenging (can't make it work even once) so if I could get some help with that
    too that would be excellent.
    Thanks

    Hi,
    You may refer to the following article to create the registry keys and deploy it with logon script:
    http://www.slipstick.com/exchange/moving-outlook-ost-file/
    Best regards,
    Rex Zhang
    TechNet Community Support

  • Simple script that will export the coordinates (layer bounds - top left x,y)

    Hi,
    I'm looking for a simple script that will export the coordinates (layer bounds - top left x,y) of the layers to an seperate xml/txt file.

    Your screen capture looks like it's from Photoshop.
    In InDesign sub layers are page items, the containing layer has no dimension. So you could get all the page item's x, y, width, height. But you might have to consider groups and then the layering could be very complex. The stacking order could also get complex. Page items have an index, but it's relative to its parent container.

  • I need a script that will find the computer a user last logged into.

    I am still learning scripting, I need a script that will allow me to pull in usernames from a csv file. Find what computer they last logged into and output that to an csv file.
    I have looked all over and can't find exactly what I need.
     I found the following script but I need  to add the resuitsize unlimited but can not figure out where to put it we have a large environment. Also I need to be able to grab username from a csv file. Any assistance you can provide is appreciated.
    ##  Find out what computers a user is logged into on your domain by running the script
    ##  and entering in the requested logon id for the user.
    ##  This script requires the free Quest ActiveRoles Management Shell for Active Directory
    ##  snapin  http://www.quest.com/powershell/activeroles-server.aspx
    Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue
    $ErrorActionPreference = "SilentlyContinue"
    # Retrieve Username to search for, error checks to make sure the username
    # is not blank and that it exists in Active Directory
    Function Get-Username {
    $Global:Username = Read-Host "Enter username you want to search for"
    if ($Username -eq $null){
    Write-Host "Username cannot be blank, please re-enter username!!!!!"
    Get-Username}
    $UserCheck = Get-QADUser -SamAccountName $Username
    if ($UserCheck -eq $null){
    Write-Host "Invalid username, please verify this is the logon id for the account"
    Get-Username}
    get-username resultsize unlimited
    $computers = Get-QADComputer | where {$_.accountisdisabled -eq $false}
    foreach ($comp in $computers)
    $Computer = $comp.Name
    $ping = new-object System.Net.NetworkInformation.Ping
      $Reply = $null
      $Reply = $ping.send($Computer)
      if($Reply.status -like 'Success'){
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $Computer -Filter "Name = 'explorer.exe'"
    #Search collection of processes for username
    ForEach ($p in $proc) {
    $temp = ($p.GetOwner()).User
    if ($temp -eq $Username){
    write-host "$Username is logged on $Computer"

    If you are querying by user "resultset size" will be of no use.
    You also have functions that are never used and the body code doe snot look for users.
    Here is what you scrip looks like if printed well.  It is just a jumble of pasted together and unrelated items.
    ## Find out what computers a user is logged into on your domain by running the script
    ## and entering in the requested logon id for the user.
    ## This script requires the free Quest ActiveRoles Management Shell for Active Directory
    ## snapin http://www.quest.com/powershell/activeroles-server.aspx
    Add-PSSnapin Quest.ActiveRoles.ADManagement -ErrorAction SilentlyContinue
    $ErrorActionPreference = "SilentlyContinue"
    # Retrieve Username to search for, error checks to make sure the username
    # is not blank and that it exists in Active Directory
    Function Get-Username {
    $Global:Username = Read-Host "Enter username you want to search for"
    if ($Username -eq $null) {
    Write-Host "Username cannot be blank, please re-enter username!!!!!"
    Get-Username
    $UserCheck = Get-QADUser -SamAccountName $Username
    if ($UserCheck -eq $null) {
    Write-Host "Invalid username, please verify this is the logon id for the account"
    Get-Username
    get-username resultsize unlimited
    $computers = Get-QADComputer | where { $_.accountisdisabled -eq $false }
    foreach ($comp in $computers) {
    $Computer = $comp.Name
    $ping = new-object System.Net.NetworkInformation.Ping
    $Reply = $null
    $Reply = $ping.send($Computer)
    if ($Reply.status -like 'Success') {
    #Get explorer.exe processes
    $proc = gwmi win32_process -computer $Computer -Filter "Name = 'explorer.exe'"
    #Search collection of processes for username
    ForEach ($p in $proc) {
    $temp = ($p.GetOwner()).User
    if ($temp -eq $Username) {
    write-host "$Username is logged on $Computer"
    I suggest finding the original code then use the learning link at the top of this page to help you understand how it works in Powershell.
    ¯\_(ツ)_/¯

  • In need of a script that will update tv shows on external hard-drive

    Hi everyone I have a really specific question about scripts. Okay, so my dad regularly downloads various TV shows and movies etc
    and I have a neighbor named Darian who once a week gives me an external hard drive and I update a whole bunch of TV shows. Now my problem is that each time he gives me the hard drive, it takes me about 20-30 mins to update all of the TV shows because they
    are in different TV show folders, I was wondering if it is possible to make a script that when run would automatically copy all of the shows onto Darian's hard drive and then all I have to do is copy the movies which is pretty quick, here's another problem,
    all of the movies and tv shows are not on my computer but on my dad's computer, so when I copy the stuff I have to access his pc through the network and I always have to type his username and password to access his pc, so if someone could tell me if it is
    possible, the code I need and how to run it or pretty much any help, I would be very gratful, thanks in advance (:

    The best we can do is point you at the resource page and let you figure out what it is you are trying to ask:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Rather than ask a whole shopping list of questions rey to figure out the first step that you need to take and ask a question about that..
    I also believe that it would be good for you to get a book on how to use Windows in a home network.  All of what you ask can be done without any scripts.  It is all part of basic WIndows and is designed to make this possible and easy for home users
    but you stil need to study how the system works.
    ¯\_(ツ)_/¯

  • Trying to set up AV server on mini late 2012.  Will upgrade to Yosemite tomorrow.  Home Internewt is ATT Sierra mobile hotspot only.  So I think I need a wifi router that will tether the hotspot as sole internet source.  Recommendation for system set

    My system: Mac Mini late 2012 w/ 1 TB disk and *GB memory (for AV server), iPad air 2 w/ 64 GB, iPad, iPad 2, iPhone 6, iPhone 4, Macbook running Yosemite, older Macboo w/ 2GB memory & 160 GB hard drive, 1 TB back up drive, WiFi Printer
    Internet:  Wireless hotspot ATT 4G LTE limited to 5 GB/mo (no cable or DSL available. Router to be determined
    AV equip:  Vizio smart TV (WiFi capable & network cable), high end analog audio, DAC, Samsung TV/display w/ HDMI.
    Looking for a router recommendation that will utilize my ATT device and stream music (and of course less demanding DATA)
    What is/are recommended connection(s) between devices?  Hardwire Mini to main TV w/ HDMI, network or USB?  Help?

    Another way to set things up, use an Apple Airport Extreme Basestation.
    My system setup has a cable modem directly connected to the AEBS.
    The AEBS is then setup to do all of the network management,  I use
    both hardwired and WiFi access via the AEBS.  It also has a USB port
    that you can use for attaching HDDs for common data access and even
    Time Machine backups.
    FWIW, here's my system:
    2011 MiniServer used as HTPC - hardwired ethernet to AEBS
    2010 Mini used as server - hardwired ethernet to AEBS
    (these are hardwired simply because of proximity to AEBS but could be WIFi connected)
    Late 2013 27" iMac workstation- hardwired or WIFi depending on needs
    Early 2011 Macbook Pro - WiFi connected
    iPhone 5S - WiFi connected as needed
    The 2010 Mini Server I use as my "iTunes hub" set up with Home Sharing and
    by running Server on it, have Apple download caching of both Mac and iOS
    apps, Time Machine backups and general backups for various content from
    the different computers.

  • How do I convert a document as a fillable pdf that will allow the end user to save?

    When I convert a Word document into a PDF fillable file, the end user cannot save their file. How to I make the file savable for the end user?

    Hi TinaEllis,
    Is your end user using Reader to fill out the PDF form? If so, the PDF needs to be Reader enabled. Please see Adobe Acrobat X Pro * Enable Reader users to save form data.
    Please let us know if you have additional questions.
    Best,
    Sara

  • I want to build an apple script that will parse the name of a file and sort it into folders.

    This is for medical application, so I will do it as such: CLIN_FAM_PAT_FILE_DATE.EXT sorts into Folders: Family/Patient/Type/Date, either sorting into folders that already exist (and make them shared folders eventually for each patient) or creating new folders with names as indicated by the file name.  The Prefix "CLIN" is an indication that the file is a clincial patient document and so needs to be filed.  Files without that prefix would be ignored. 
    So the file format would be:
    Family Folder
    Family DocumentsDocument Type folders
    Patient folders - for each person who is a member of that houshold unitDocument Type Folders (such as x-rays, lab reports, or insurance info)Within each document type, there would be separate folders based on the date (or at least the order of the docs would be by date)
    For example:   A document called CLIN_JONES123_JAMES228_LAB_022614.PDF which is a lab summary for James Jones done on 2/26/14 would go here
    JONES123 FolderJAMES228 FolderLab Results FolderFebruary 2014 Folder.
    Makes sense?  I am initially putting these files into a Filemaker Pro database and having it compile the files based on patient name, type, date, etc.  But need to use Applescript to create the folders so things are organized in a way that I can easily share with patients.
    Makes sense?

    You can call this script from Applescript (just need to do some escaping of quotes):
    This can be run in Applescript:
    do shell script "
    DestinantionFolder=$HOME/Desktop
    MONTHS=(January February March April May June July August September October November December)
    for f in ~/Desktop/*
    do
         if [[ $( echo \"${f##*/}\" | cut -d_ -f1 ) == \"CLIN\" ]] ; then
              ff=$( echo \"${f##*/}\" | cut -d_ -f2 )
              pd=$( echo \"${f##*/}\" | cut -d_ -f3 )
              date=$( echo \"${f##*/}\" | cut -d_ -f5 )
              date=${date%%.*}
              mo=${date:0:2}
              yr=20${date:4:2}
              Dir=$DestinantionFolder/$ff/$pd/${MONTHS[$mo-1]}\\ $yr/
              if [ ! -d \"$Dir\" ]; then
                   mkdir -p \"$Dir\"
              fi
              mv \"$f\" \"$Dir\"
         fi
    done"
    ...is there a way to trigger this whenever a new file is created to check and see if it needs to be moved
    Yes, with Automator.  When you Open Automator, choose Folder Action
    I copied what you did and while the script ran successfully, I don't see any new folders created.  Your shell script makes sense; I am not sure why it doesn't create folders.
    The script as written only looks for files in the Desktop Folder
    (edit by changing: DestinantionFolder=$HOME/Desktop )
    To test I created a file on my Desktop
      touch ~/Desktop/CLIN_JONES123_JAMES228_LAB_022614.PDF
    and Folders were created and the file moved.
    (Note: I only tested that format.  If the file has any other format, it will fail)

  • Script that will show the character count of all carriage resturns

    I have found a bug when exporting an indd to idml. If a a carriage return falls in a character count that is a multiple of 8000 + 1 it is converted to a paragraph separator (u2029). I am in the process of mass exporting around 3000 files to idml for a project. I am trying to come up with a way with a script to check the files to see if carriage returns exist in these locations. I am fairly new to scripting and don't know how this would be done. I know it is possible to get character counts but is it possible to check if a character exists in a certain character count from the beginning of a story? Any help on this would be appreciated.
    Also has anyone else ran into this with exporting to idml? I have submitted a bug report. This is can be recreated across multiple computers, OS's and versions of InDesign.

    @Blujely – about your initial question about showing a specific character at an n-th position in a story, you could use a simple GREP search in InDesign and restrict that search to a specific story (e.g. the story of a selected piece of text):
    Search for the n-th position with the formular in dummy-syntax:
    Positive look behind of any character in the exact length n-1 + character
    E.g. if you want to look for a "carriage return", defined in GREP as \n at every 10th position, search for:
    (?<=.{9})\n
    In your case that would be:
    (?<=.{8000})\n
    Uwe

  • Script that will help validate if there is any data loss after a DB restore

    Hi,
    I need to write a single script that will perform the following
    operations:
    1)return me the highy accessed tables across all databases.
    2)List the count, Min and Max system date of the highy accessed tables returned from step 1.
    The idea is to validate if there is any data loss to the highly transactional tables after a database restore operation has been performed.
    Thanks.

    Hello,
    I would also like you to see nice blog by Aron,you can modify the script a bit to change according to your need
    http://sqlblog.com/blogs/aaron_bertrand/archive/2008/05/06/when-was-my-database-table-last-accessed.aspx
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    Hello Shanky,
    The post would not be helpful too much for OP's requirement. The post was talking about when was the database last accessed. DMLs are not capturing in the script and also there will be many variant forms that can be applied for DML. Hence, I do not think,
    the script would help too much. 
    Or Am I missing something? 
    Latheesh as i mentioed OP has to modify the script little bit may be add User_seek,user_update,user_scans.Still IMO there is no *perfect* way to actually analyze this.So I pointed out point in my original post.Also unless he has some timestamp he cannot
    see min time when it was accessed ,max time can be taken from last user seek,scan,lookup time. Motive was to lethim know what he was trying to achieve cannot be axactly obtained by using sys.dm_index_usage_stats.Below query will give most accessed table
    : Source (Query)
    SELECT
    t.name AS 'Table',
    SUM(i.user_seeks + i.user_scans + i.user_lookups)
    AS 'Total accesses',
    SUM(i.user_seeks) AS 'Seeks',
    SUM(i.user_scans) AS 'Scans',
    SUM(i.user_lookups) AS 'Lookups'
    FROM
    sys.dm_db_index_usage_stats i RIGHT OUTER JOIN
    sys.tables t ON (t.object_id = i.object_id)
    GROUP BY
    i.object_id,
    t.name
    ORDER BY [Total accesses] DESC
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • My computer motherboard and hard drive burn up with CS 4 on it. I got a new computer and cannot installed CS4 on it because it say invaild serial number. I need a serial number that will work to install on my new computer.

    My computer motherboard and hard drive burn up with cs 4 on it. I got a new computer and cannot reinstalled cs 4 on the new computer. The serial number stated invalid. I needed a serial number that will work.

    Contact support by web chat or phone.
    Mylenium

  • Script that will warn users after 9 minutes of idle

    If i have a group policy to lock screen set for 10 minutes. what would be the best way to have a pop up or notification that will appear when the workstation is about to lock in 20 seconds
    in order to help the users?
    From what i can tell i can not implement the message part in group policy. I'm thinking some type of script that literally warns the user after 9 minutes and 40 seconds of idle time. Seems like the easiest way to do it would be in a log on script.
    How should i go about doing this? Please advise

    > Would I have to create the task on every client computer?
    Basically: Yes. It's just a matter of HOW you create the task :)
    I'd suggest using
    https://technet.microsoft.com/library/cc725745.aspx
    Greetings/Grüße,
    Martin
    Mal ein
    gutes Buch über GPOs lesen?
    Good or bad GPOs? - my blog…
    And if IT bothers me -
    coke bottle design refreshment (-:

  • IDCS6(MAC) 10.9.4 - a script that will make an anchored object and paste in clipboard contents

    I'm trying to create a script that will create an anchored object that will paste in clipboard contents.
    So far I have:
    var frameRef = app.selection[0];
        var parentObj = frameRef.insertionPoints.item(0);
        var anchorFrame = parentObj.rectangles.add();
    And this works fine, creating an inline object, that can further be defined (with anchor point settings etc).
    However, it is when I go to use app.paste() or app.pasteInto() that all hell breaks loose.
    The line of code I added was:
    anchorFrame.content = app.pasteInto();
    and the error I get is:
    What am I doing incorrectly?
    Colin

    @Colin – For the paste command you like to use, you have to:
    1. First select an object, in your case the added rectangle object
    2. Then use the pasteInto() method from the app object
    3. There is no content property for a rectangle object
    Watch out what is selected after you added the rectangle.
    What you have is a selection of the text frame when you start your code in line one.
    Adding a rectangle will not change that selection.
    The following code will do the job.
    However, if you use pasteInto() the pasted objects could be only partly visible inside the frame.
    Depends on the size and position of the added rectangle relative to the original copied page items.
    Make sure that you give the rectangle a proper size after or while you are adding it:
    var frameRef = app.selection[0];
    var parentObj = frameRef.insertionPoints.item(0);
    //Will add a rectangle sized 40 x 40 mm
    var anchorFrame = parentObj.rectangles.add({geometricBounds:[0,0,"40mm","40mm"]});
    app.select(null); //Optional
    app.select(anchorFrame);
    app.pasteInto();
    Uwe

  • I need a fax server that will drop to a network folder not email

    I work in a small medical office that recently went to electronic records.  However, all our referrals come in over our fax machine.  I need a fax server that will receive our faxes and drop them into a network folder.  I also want the ability to send outgoing faxes from each desktop.  I've been looking for 6 months and have not an answer.  Help please.

    Posting your email address here is not the wisest move. The spammer can harvest it very easily.
    I requested that Mods edit it so that is not so obvious.
    Allan

  • Is there an AppleScript or Automator Script that will wake a Mac from Sleep?

    Is there an AppleScript or Automator Script that will wake a Mac from Sleep?

    Frank and All,
    The following answer to your question above is complicated, but I hope it explains why my question was formed with so much frustration in it.
    I have an OpenOffice(OO) Macro that was launched with Calendar at 6pm each business night. It ran properly in all Apples operating systems until I Hit Maverick(OSX10.9). From then on, the AppleScript would run from one to 3 days, then would disappear from the Calendar entry. The Calendar alert would still run, but the "OpenFile" section of the alert would disappear. I also was running elgato EyeTV HD during the day, so I would use energy saver to put my MacBook Pro to sleep at 12 Midnight and wake it again at 9am. I picked up a used Mac Mini to do the EyeTV stuff, provide AppleTV the files in H264 format through iTunes' media share, and found it had plenty of power to do the 6pm automated stuff simultaneously as well. Because I still wanted to run the OpenOffice Macro on my MacBook Pro at 6pm, and wanted to use it for a host of other things when I was on the road, I wanted it to sleep most of the time and only wake up automatically to run the 6pm OO Macro. When I called Apple about the issue I was having with Maverick and Calendar loosing the OpenFile command as part of the Alert Message, they told me the no longer supported answering AppleScript Questions but they now would support Automator questions. I pointed out that the OpenFile would also fail after one to three days if I used a Calendar Alert to launch an Automator App. At first, I did not like Automator, but now I see why Apple is pushing us to use it. Automator adds a TIME STAMP ID to the Apps developed in Automator so the first time you launch the App after a change to it, you must reply to a dialog message saying that this is the first time you are running this version of the App. If a Scammer has replaced your app with one that can reek havoc on your computer, the replacement app will not run unless you are there to agree that you know where the modified app came from and click the OK button to continue (BRILLIANT, Enhanced Security idea on Apples part). I also noticed that after Mountain Lion, the Applescript delay timing was all screwed up as well. Well I tried to use LaunchD Task Scheduler to circumvent the Calendar Problem and that worked until I upgraded to Yosemite Last week. Then LaunchD no longer worked and I am only into a few days of using The Calendar Launched Automator App to see if it will continue to run.
    But I think I solved the dilemma I was having with opening an Automator App in a Sleeping Mac. I Googled up the following question, "AppleScript to wake up computer".  I went thru several complex responses until I found this on that is INCREDIBLE EASEY! What came back was a brettterpstra.com  response from Feb 20th,2014. What it said, in a Quick Tip: caffeinated your Terminal Article,  if you wanted to wake a Mac from sleep, use the Terminal command named "Caffeine -u -t 1". I placed it in an Automator Most Used Action called "Run Shell Script -- Caffeine -u -t 1" and it worked!  Now, I can put my Mac to Sleep but at 6pm, the Automator App will launch, run the "Caffeine -u- -t 1" command and proceed to work as if I had awakened the Mac From Sleep mode by pressing a keyboard key and had run the Automator Script with a double click.
    Sorry for the long, drawn-out reply, but maybe this will help others.

Maybe you are looking for

  • Purchased Music Download... Frozen for over 12 hours!

    Album: Pinoy Ako Songs: 14 Price: $9.99 11:50PM - Purchased 2 Singles and Album with iTMS $15 card. Balance is now $0.90 11:52PM - The 2 singles and 4 (out of 14) album songs downloaded. Downloading is frozen. I rebooted the computer, many times. Sam

  • CSV file no data found

    Hi all I am new to APEX development. please help in below I have two report pages (interactive reports). Let say Page1 : Department Page (List of Departments) link to Page2 Page 2: List of Employee for selected Department - PageItem (P_DEPARTMENT) th

  • Regional Settings?

    I'm trying to set up my iTunes account so that I can purchase music, but for some reason the songs are coming up in dollars even though I am based within the UK. When trying to set up my account with Credit Card details, it asks for my billing addres

  • Restrict posting period only a limited set of users using Auth Group

    Hi all, Can someone help me in restricting posting period to only a limited number of users? Currently OB52 settings look like below: From Per.1  Year  To Period           From per.2   Year    To Period     7                 2009         8           

  • Flex License for object developed on sdk 4.6.0

    if I use Flex 4.6.0 Sdk for development of some charts then after development can I use swf object for selling?