Empty OLK folder Outlook 2010

I am trying to empty the OLk folder from Outlook 2010 in WIndows 7. The location is appdata\local\microsoft\windows\temporary internet files\....I have checked that and it seems good. Put this script in a cmd file and run it thru gpo logoff computer gpo. The OLK folder is not emptyd however so it is not working what can be wrong with this script to empty the OLK folder?rem ***** this script is answer for wollowing:  http://support.microsoft.com/kb/817878 
rem *** tested on Wiindows XP, 7; office 2007, 2010 
VERIFY OTHER 2>nul 
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION 
if errorlevel 1 goto :eof  
for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Microsoft\Office\11.0\Outlook\Security /v OutlookSecureTempFolder') doset office2003=%%~sb 
if defined office2003 ( 
    call :clear %office2003% 
    set office2003=)  
for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Policies\Microsoft\Office\11.0\Outlook\Security /v OutlookSecureTempFolder') doset office2003=%%~sb 
if defined office2003 ( 
    call :clear %office2003% 
    set office2003=)  
for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Microsoft\Office\12.0\Outlook\Security /v OutlookSecureTempFolder') doset office2007=%%~sb 
if defined office2007 ( 
    call :clear %office2007% 
    set office2007=) 
for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Policies\Microsoft\Office\12.0\Outlook\Security /v OutlookSecureTempFolder') doset office2007=%%~sb 
if defined office2007 ( 
    call :clear %office2007% 
    set office2007=) 
for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Microsoft\Office\14.0\Outlook\Security /v OutlookSecureTempFolder') doset office2010=%%~sb 
if defined office2010 ( 
    call :clear %office2010% 
    set office2010=) 
for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Policies\Microsoft\Office\14.0\Outlook\Security /v OutlookSecureTempFolder') doset office2010=%%~sb 
if defined office2010 ( 
    call :clear %office2010% 
    set office2010=) 
call :clear %temp%\ 
goto :eof 
:clear 
 attrib -H /D /S "%1*" 
 DEL /S /Q /F "%1*.*"for /D %%d in ("%1*.*") do RD /S /Q "%%d"       
freddie

I would suggest that you might fix you Office installation.  I just scanned through my folders and no system has more than two files,
The temp folders on all versions of Office from 2003 to yhr present will be located here:
%userprofiile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook
On XP and 2003 they should be here:
%userprofile%\Local Settings\Temporary Internet Files\Content.Outlook
Delete everythingin that folder. Outlook will create a new secure folder the next time it is opened.
Any file with attachments in you inbox will likely download the attachments again.  YOU should not use inbox for storage.  Move mail to a folder you don't open often.  Set outlook to not download attachments.
If Outlook is not working correctly it may leave files behind when it closes.
¯\_(ツ)_/¯

Similar Messages

  • OLK folder delete Office 2010

    I am trying to delete the content of Outlook 2010. The location is right. Using the following script as a logoff script to delete the content (location of Office2010 is the right one there are the files but they stay there after several restart of the Windows
    7 system the scipt is also not working when start it manually. The scipt is in a batchfile OLK.cmd:
    rem ***** this script is answer for wollowing:  http://support.microsoft.com/kb/817878 
    rem *** tested on Wiindows XP, 7; office 2007, 2010 
    VERIFY OTHER 2>nul 
    setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION 
    if errorlevel 1 goto :eof  
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Microsoft\Office\11.0\Outlook\Security /v OutlookSecureTempFolder') do set office2003=%%~sb 
    if defined office2003 ( 
        call :clear %office2003% 
        set office2003=)  
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Policies\Microsoft\Office\11.0\Outlook\Security /v OutlookSecureTempFolder') do set office2003=%%~sb 
    if defined office2003 ( 
        call :clear %office2003% 
        set office2003=)  
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Microsoft\Office\12.0\Outlook\Security /v OutlookSecureTempFolder') do set office2007=%%~sb 
    if defined office2007 ( 
        call :clear %office2007% 
        set office2007=) 
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Policies\Microsoft\Office\12.0\Outlook\Security /v OutlookSecureTempFolder') do set office2007=%%~sb 
    if defined office2007 ( 
        call :clear %office2007% 
        set office2007=) 
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Microsoft\Office\14.0\Outlook\Security /v OutlookSecureTempFolder') do set office2010=%%~sb 
    if defined office2010 ( 
        call :clear %office2010% 
        set office2010=) 
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Policies\Microsoft\Office\14.0\Outlook\Security /v OutlookSecureTempFolder') do set office2010=%%~sb 
    if defined office2010 ( 
        call :clear %office2010% 
        set office2010=) 
    call :clear %temp%\ 
    goto :eof 
    :clear 
     attrib -H /D /S "%1*" 
     DEL /S /Q /F "%1*.*" 
     for /D %%d in ("%1*.*") do RD /S /Q "%%d" 
    freddie

    I have reduced the script as follows and put a pause in the batchfile: The scipt looks like it is running without erros but the folder is not emptied...
    VERIFY OTHER 2>nul 
    setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION 
    if errorlevel 1 goto :eof  
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Microsoft\Office\14.0\Outlook\Security /v OutlookSecureTempFolder') do set office2010=%%~sb 
    if defined office2010 ( 
        call :clear %office2010% 
        set office2010=) 
    for /f "skip=2 tokens=2*" %%a in ('reg query HKCU\Software\Policies\Microsoft\Office\14.0\Outlook\Security /v OutlookSecureTempFolder') do set office2010=%%~sb 
    if defined office2010 ( 
        call :clear %office2010% 
        set office2010=) 
    call :clear %temp%\ 
    goto :eof 
    :clear 
     attrib -H /D /S "%1*" 
     DEL /S /Q /F "%1*.*" 
     for /D %%d in ("%1*.*") do RD /S /Q "%%d" 
    freddie
    freddie

  • Outlook 2010 - Move to public folder brings an error "the folder is not available"

    Hi
    we have exchange 2010 SP3 in our organization
    clients use both 2010 SP2 \ 2013 outlooks
    when moving an item from the mailbox to a public folder directory the item moves successfully, and the directory is added to the recent directories under the "Move" button.
    then, when I try to move another item to a public folder directory from the dropdown recent list I get the error message:
    "The folder is not available"
    obviously it's available as I can do the same action manually. it happens on Outlook 2010, Outlook 2010 SP2 and Outlook 2013
    for all the users
    so it's not a profile or a user's issue
    I saw many posts with the same error but they mostly talk about pst files and the solution is the kb
    2405793‎ which is already included in SP2 + out users don't use pst. everything is in exchange
    hope to get some answers before I open support case at MS
    Tamir Levy

    Hi Tamir Levy,
    From your description, when you drag an item to public folder, it is successful. When you use the "Move" button to move an item to public folder, it occurred the above error. If I have misunderstood your concern, please let me know.
    I recommend you check if the issue also exists via OWA. If the issue doesn't occur when you use OWA, please verify if the issue happens on Outlook online mode or in cached mode.
    Hope it helps.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Outlook 2010 - Data File Properties/Folder Size verses Windows Explorer pst file size

    I am running Outlook 2010 32bit Version 14.0.6129.5000 on a Windows PC running Windows 7 Professional.  All updates from MS are up to date.
    I have several pst files I open with Outlook 2010. The size of the files displayed in Outlook are very different than what is displayed in Windows Explorer. 
    For example one of the pst file called "business.pst" when opened Outlook displays it under "Data File Properties -> Folder Size" that the Total Size (including subfolders) is 764,354 KB.  Windows Explorer says
    the file size is 1,190,417 KB.
    For some reason MS Outlook 2010 is displaying the wrong folder size.  Any ideas why this is the case?
    Thanks,
    Pat

    Outlook mailbox grows as you create and receive items. When you delete items, the size of the Outlook Data File (.pst and .ost) file might not decrease in proportion to the data that you deleted, untill it has been compacted.
    Normally, after you have deleted items from an Outlook Data File (.pst), the file will be automatically compacted in the background when you’re not using your computer and Outlook is running.
    For an exception, when the Outlook Data File (.pst) is somehow corrupt, the compaction might not finish correctly. So the size of the Outlook Data File (.pst) file might remain the same before compaction.
    To solve this, try run the
    scanpst to fix the Outlook Data File (.pst) file first, after that, we can
    manually start the compact command.
    When finished, compare the file size again.
    Max Meng
    TechNet Community Support

  • Outlook 2010 not saving Sent emails in Sent Items Folder

    This problem does not exist on this forum.  Using Outlook 2010 (V 14.0.7106.5001 (64-bit) on Windows 7 64-bit with three accounts: 1 account is Gmail and 2 accounts are IMAP.  The IMAP accounts inexplicably stopped saving Sent emails.  The
    Gmail account still saves the Sent emails.
    Tried already:
    1. Changing the Sent Items setting from Save on folder on computer to Save on server and then changed back to the way it was, which is correct.
    2. Created a new profile and entered the email settings.  Still no sent mails being saved.
    3. Ran Outlook repair.  No luck.
    Not sure where to go with this next.  Never have run into a problem like this before.

    Hi,
    Please make sure you have the emails sent to the recipients successfully, if not, the emails may be saved to other folders if you have the following setting:
    File tab -> Options -> Mail -> If you checked
    Automatically save items that have not been sent after this many minutes,
    Save to this folder, you may have your emails stored in the selected folder if the emails are not sent successfully. 
    Please visit the Webmail site, could you find the sent items there?
    Try Reset View, then try to search for the sent emails by keywords in Advanced Find, can you find the emails?
    Kindly check the following settings:
    File tab -> Options -> Mail
    -> under Save messages, make sure you have checked Save copies of messages in the Sent Items folder
    If none of the above helps, feel free to contact me again.
    Regards.
    Melon Chen
    TechNet Community Support

  • Rules not working in Outlook 2010 Sent Items folder (Personal Folder)

    I've been trying to automatically categorize and send emails I've written and sent to the archive's Sent Items folder.  However, everytime I create a rule for a particular type of email it doesn't carry it out.  The rule will only work when I manually
    click 'Run this rule now...'.
    Here is what my rule looks like:
    Apply this rule after the message arrives
    from Byron33
      and sent to 'XXX'
      and with 'YYY' in the subject'
    assign it to the 'ZZZ' category
      and move it to the Sent Items folder (here, 'Sent Items' is in the Archive section)
    But it doesn't work.  All my other rules work (for the inbox folder).  Any way in which I can get this rule to function automatically?

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, I understand that the rule will only work when you manually click 'Run this rule now...'. If there is any misunderstanding,
    please feel free to let me know.
    Turn off Cached Exchange Mode to test this issue:
    http://office.microsoft.com/en-us/outlook-help/turn-on-or-off-cached-exchange-mode-HP010355560.aspx?CTT=1
    Click the File tab.
    Click Account Settings, and then click Account Settings.
    On the E-mail tab, click the Exchange account, and then click
    Change.
    Under Microsoft Exchange server, clear the Use Cached Exchange Mode check box.
    Exit and then restart Microsoft Outlook 2010.
    If it work fine after turn off cached exchange mode ,please repair your .OST file follow this article steps:
    http://office.microsoft.com/en-us/outlook-help/repair-outlook-data-files-pst-and-ost-HA010354964.aspx?CTT=1
    More additional information
    Troubleshoot rules you can refer to this link:
    http://office.microsoft.com/en-us/outlook-help/troubleshoot-rules-HP005242904.aspx?CTT=1
    Similar thread you can refer this link:
    http://www.msoutlook.info/question/133
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this
    information.
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHNPlease remember to mark the replies as answers if they help and unmark them if they provide no help.

  • My outlook 2010 Contact Groups are not visible in iTunes; only syncs main Outlook Contact Folder, others not synching

    I have an iPhone (running the latest device software) and have Outlook 2010 for PC on my desktop.  I have several Outlook 2010 Contact Folders/Groups but when I try to sync with my iPhone I only have the option to sync all of my contacts.
    When I sync this -- the only Outlook folder/group that is synced is my main 'Contacts' folder/group.  All the rest of my folders/groups are not being transferred to my iPhone.  I've had this issue for a few months now -- and though I like the iPhone, my old Blackberry nev er presented this problem when it came to the simple base function of syncing.  Appreciate your help -- as I am out of answers.  Thanks.

    Hello kungpow112,
    The following article provides some useful information and troubleshooting steps that can help get Outlook and iTunes speaking the same language again.
    iPhone, iPad, iPod touch: Troubleshooting contact and calendar syncing via USB on Windows
    http://support.apple.com/kb/HT1692
    Cheers,
    Allen

  • Outlook 2010 won't update new messages unless you update folder

    Hi,
    Outlook 2010 sp1 with Exchange 2010 latest sp.
    Scenario:
    Some users are not receiving emails unless they click on update Folder. Once they do emails come in.
    Troubleshooting:
    No virus scanning outlook folder.
    Delete the profile with OST and re-created it.
    Send immediately when connected is enabled.
    Cache Exchanged mode is enabled (Must be ...there are 15000 users with mailboxes here).
    (If Cache mode is disabled everything works fine) This is not an option for us.
    Download shared folders whether it is enabled or disabled still the same problem.
    Help please,
    Alexis

    I would suggest your to start Outlook with /cleanips switch and check behavior,
    Just click Start, click Run, type
    outlook/cleanips, and then click OK. Microsoft KB article:
    http://support.microsoft.com/kb/968773
    Please have try first and feel free to post back.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • Public folder calendar will not add to favorites or users default view in Outlook 2010

    I have created a shared public calendar in the public folders of our exchange server set-up (priovided by a popular cloud supplier). It appears under public folders in Outlook 2010 but right-clicking add to favorites does nothing and I cant make the calendar
    show up in the normal calendar view (alongside other calendars) for the people that need to share it. What am I doing wrong?

    Hi ,
    This folder was added to the “public favorites” folder and then added to your favorites menu and don’t shows up in the Navigation Pane under “Other Contacts”.
    1.If so , please check the calendar folder you initially added to the public folder as being available .
    2.Open the Outlook E-mail account –more setting—chose Download Public Folder Favorites.
    3.Add the “Show in Favorites” button to your Quick Access Toolbar at the top of your Outlook by expanding the menu next to it, choosing Customize, and
    finding the “Show in Favorites” item under all commands.
    4.Switch to Folder View and click to open your Public Foder in your main Outlook window.
    5.Switch to Mail View but don’t click any folders. You should see that your “Show in Favorites”button turns from grey to colored. Click it and it will
    add the public foder to your Favorites list.
    Wendy Liu

  • Can you convert the Outlook 2010 Tasks folder to PDF?

    Hi All,
    Please can you let me know how to convert the Outlook 2010 Tasks folder to PDF?  When I select "Convert Selected Folders" from the PDFMaker Add-In in Outlook the Tasks folder is greyed out.
    Is this because PDFMaker doesn't support this?  If not, is there another way to convert the Tasks folder to PDF?
    Cheers

    Hello hillsmeister,
    Could you please let me know what version of Acrobat are you using.
    If it is Acrobat version 10 and later, then only PDFMaker application would be compatible with Outlook 2010.
    Try converting some other mails to Adobe PDF and check if the same issue persists.
    Please let me know.
    Regards,
    Anubha

  • Outlook 2010 not display public folder/calendar

    We have a calendar in a public folder which is no longer visible when navigating through the public folder list. User which have previously opened this calendar and added to my favorites are still accessing the calendar without issue. But no one else can
    open the calendar. I've tried to manually enter the path in the open shared calendar dialog and not found. How can users be accessing the calendar from an old favorite but the calendar not be visible any longer? Everyone is using Outlook 2010.

    Hi,
    From the description, the calendar is no longer available (been deleted or something else) in the public folder. Logically, it's not possible to access the calendar.
    For these users who still have access to the calendar, I'd like to confirm if they cached the public folder to local by enabling "Download Public Folder Favorites" under Account Settings. In this case, the users may access the calendar in the cached
    Public Folder Favorites. To check if these users have the "Download Public Folder Favorites" enabled, please follow:
    1. Click File > Account Settings > Account Settings.
    2. Highlight the Exchange Account and click Change button.
    3. Click More Settings button and switch to Advanced tab.
    4. Check if the "Download Public Folder Favorites" option is enabled.
    We can try unchecking the option to verify if this issue is due to the Public Folder Favorites cache.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Trying to send a meeting request in Outlook 2010. Error: "the meeting is not in the calendar folder for this account. responses to this meeting will not be tallied

    Trying to send a meeting request in Outlook 2013 Error: "The meeting is not int he calender folder for this account. responses to this meeting will not be Tallied.
    Please let me know what should I do?
    I have set the account as default what should be my next step?

    Hi,
    Please try the following points to narrow down the issue:
    1. Please check whether the default Calendar folder is checked when you created the meeting request and sent it out.
    2. Please check whether there is any shared calendar opened in your Outlook and the meeting request is created on behalf of the shared calendar instead of your own calendar.
    3. Create a new Outlook profile and create a test meeting request to have a try.
    Additionally, here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/b9e9e47c-13f2-4522-a0c4-14a4371e740c/trying-to-send-a-meeting-request-in-outlook-2010-error-the-meeting-is-not-in-the-calendar-folder?forum=exchangesvrclientslegacy
    Regards,
    Winnie Liang
    TechNet Community Support

  • Cannot sync outlook 2010 mail, sent folder, to iphone

    Здравейте,
    знае ли някой как да синхронизима изпратените писма от outlook 2010 със телефона си

    You have to make sure both your iPhone and Outlook are configured to use IMAP.
    https://help.yahoo.com/kb/mobile-mail/SLN4071.html
    And see the other articles in the left side panel.

  • Contacts folder in Outlook 2010 (Exchange server) is not being updated on my iPhone.

    Hello
    I am using Exchange email account with Contacts on Outlook 2010..
    Updated contacts are not being updated to my iPhone and vice versa.
    The iPhone software is the latest 7.01
    iCloud is deactivated and iTunes is not being used.
    Any ideas how to resolve this bug?
    Interesting, it is working with my iPad.
    Many thanks!

    Hi alpinespace,
    If you are having issues syncing your contacts between your iPhone and Outlook 2010, you may find the following article helpful:
    Apple Support: Troubleshooting Sync Services on Windows with Microsoft Outlook 2003, Outlook 2007, or Outlook 2010
    http://support.apple.com/kb/TS2776
    Regards,
    - Brenden

  • Syncing with outlook 2010, if i leave empty the Home address it cames United States as default and if i fill home address and left work address empty Saudi Arabia appears after sync in Iphone.

    Salam,
    In contacts i am facing strange problem, i have all the contacts in outook 2010 and i sync it with my new Iphone 4s with IOS 5.1.1.
    Some contacts in my outlook 2010 has work address filled and some has home address filled so i make them all shifted to work address (work city and work country), then after sync i found that those contacts which i update from home address to work are showing default home country "united states" in iphone even home address is blank in outlook 2010; and then i shift all the contact's work address to home address in outlook and leaving all work address fields blank and then sync with iphone, i was again amazed that iphone is showing work address as "Saudi Arabia" even the work country is blank in outlook.
    Kindly help me in this problem.
    Regards,
    M. Faisal

    Seriously folks?  I know it was long but I added all info to negate a need for endless back/forth clarifications.  No answers???
    FYI, i tried syncing contacts to google/gmail and it was a total clusterF as well.  No gmail contacts, synced iphone, gmail contacts populated w/ all info but w/lots of repeat entries.  Used seek and merge repeats in gmail and then resync but no such luck.  Lots of iterations and nothing but fails.  Seems everytime the phone and the gmail lists are "as desired" a new sync puts a ton of repeats back into gmail or onto phone.  Still perplexed and still needing help....
    pretty please....

Maybe you are looking for

  • FOX formula works wrong. Why?

    Hello, My scenario: <b>My planning layout filled with data:</b> 0CMMT_ITEM:  0FM_AMOUNT1  0AMOUNT(data from fact cube) <i><b> A.2.2.2____________0_____________500        A.3.3.3____________0_____________0        A.1.1.1____________0_____________0</b>

  • How to determine domain name in db_link?

    Hi all, when executing: create database link TST connect to myuser identified by pippo using 'MYTNS';I obtain the db link name with a suffixed domain, for example: TST.DOMAIN.COM Where does that domain come out from? How to determine it before db lin

  • Where do i see which computer to deauthorize

    i need to authorize my new computer how do I see which one to de authorize

  • In 10.5 the Library Folder has a Logs Folder. What is the Google Logs for?

    In Mac OS X Leopard there is a Library Folder in there I have a Logs Folder. What is the Googles Logs folder for? The Google Logs Folder on my computer is 47GB. I am looking to clear up space. What are these logs? Search logs? What happens If I delet

  • IPhone screen brightness/colour

    So my mate just got a replacement iphone from an apple store, and as i was looking at it next to mine i was amazed at how much brighter and better his screen was. when you open something like the settings page he had a nice bright white background, w