Results 1 to 4 of 4

Thread: Roaming Profile Cookies

  1. #1
    System Suspect
    Join Date
    Aug 2004
    Location
    Kingston Upon Thames
    Posts
    427
    Thanks
    0
    Thanked
    0 times in 0 posts

    Roaming Profile Cookies

    Hi Guys - I've been thinking about how to setup a scheduled service on the File and print server that would run weekly or monthly and could say look on e:\profiles\xxxx\cookies (where xxxx is the 4 letter userid) and delete all the cookies with last access date older than 14 days for each profile beings cookies build up and slow login times down a lot when there are 2000 cookies in a profile to download. I don't want to have to have to script each userid in beings we have around 1400 employees and I want to run it on around 35 F+P's, does anyone know an easy method as currently i'm working on the principle that i'm going to need to read each userid into a env variable and then loop using somthing like xset then delete cookies older than 14, any help or suggestions would be appreciated.

  2. #2
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    you could do this sort of maintance as a log on script?
    throw new ArgumentException (String, String, Exception)

  3. #3
    System Suspect
    Join Date
    Aug 2004
    Location
    Kingston Upon Thames
    Posts
    427
    Thanks
    0
    Thanked
    0 times in 0 posts
    Thats a good idea, it didn't cross my mind to delete them locally so that it'd then write back, was just thinking scheduled service, wood for trees type thing. The only stickin point is that I don't think the command shell comes with the functionality to delete a file with a x amount since last access that I could script?

  4. #4
    Ex-MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Asus Maximus VIII
      • CPU:
      • Intel Core i7-6700K
      • Memory:
      • 16GB
      • Storage:
      • 2x250GB SSD / 500GB SSD / 2TB HDD
      • Graphics card(s):
      • nVidia GeForce GTX1080
      • Operating System:
      • Windows 10 x64 Pro
      • Monitor(s):
      • Philips 40" 4K
      • Internet:
      • 500Mbps fiber
    A similar VBScript is here:
    VBScript example

    This particular one is set to move files older than 8 days, but it could easily be modified to delete files older than 14 days.

    MSDN Article on System.IO.File.Delete

    I would configure this to run as part of a client logon script rather than a server-side one, as a domain user logon will only succeed if the client clock is correct (within ~5 minutes) - so you don't run the risk of accidentally blitzing every cookie of every user because of a system clock error on a server.
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    PC: Win10 x64 | Asus Maximus VIII | Core i7-6700K | 16GB DDR3 | 2x250GB SSD | 500GB SSD | 2TB SATA-300 | GeForce GTX1080
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Low profile and dual head AGP?
    By Mike Fishcake in forum Graphics Cards
    Replies: 0
    Last Post: 29-11-2005, 10:57 AM
  2. Replies: 5
    Last Post: 10-10-2005, 11:38 AM
  3. User profiles in 2003 Terminal Services
    By madman045 in forum Software
    Replies: 2
    Last Post: 05-10-2005, 01:53 PM
  4. Decent low profile AGP graphics card?
    By kipdakip in forum PC Hardware and Components
    Replies: 2
    Last Post: 12-12-2004, 01:59 AM
  5. best place for cookies and cookiejars?
    By prehensile in forum Retail Therapy and Bargains
    Replies: 13
    Last Post: 19-11-2003, 08:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •