MDT Refresh doesn't clean recycle bin

Hello,
Has anyone dealt with the fact that the, "Clean Disk" performed by LTIApply.wsf marks the Recycler folder as a protected folder and doesn't clear it out? Essentially leaving the contents of the user's recycle bin beyond after reimage?
Is there any reason why recycler needs to stay a protected folder? Are there any issues with removing it?

Not sure about removing the folder.
However, if you are concerned, you can always run a disk cleanup as a step in the task sequence:
http://support.microsoft.com/kb/253597
Keith Garner - Principal Consultant [owner] -
http://DeploymentLive.com

Similar Messages

  • How come now every time i throw something into the recycle bin it asks for my password and when I do it doesn't show in my bin help please!

    How come now every time i throw something into the recycle bin it asks for my password and when I do it doesn't show in my bin help please!

    You're throwing away files that either don't belong to you or are in a folder that doesn't belong to you. Since your user account has Administrator privileges, it just ask you for authentication, else it would forbid the operation.
    To better understand the concept, select one of your files from your home directory and press Control-I. In the info window, check the Sharing & Permissions section at the bottom. Do the same with one of the files that asks for the password.

  • ITunes will not delete file (after confirming & sending to recycle bin)

    Files deleted within iTunes do not disappear from my hard drive.
    I answer "Are you sure you want to remove the selected podcast from your iTunes library" and select the "Remove" button.
    I then answer "Do you want to move the selected podcasts to the Recycle Bin, or keep them in the iTunes Music folder?" with "Move to Recycle Bin".
    Music files (mp3) occasionally delete properly but video podcasts (Geek Brief to be specific) will not delete.
    Music is stored in J:\My Music\iTunes\iTunes Music which is slightly non-standard but seems to fit the rule of being "inside" the iTunes folder.
    Any ideas? [I've seen similar but not quite the same posts where people are trying to delete files outside the iTunes folders......]

    I too have this same problem with deleting video podcasts. The problem doesn't happen all the time, but probably a majority of the time. It is quite annoying as many of the video podcasts I subscribe to are in HD format so it is rather frustrating to have to manually delete them from the iTunes folder after deleting them thru iTunes, but since they take up gigs of space it is necessary to go in and clean them out every once in a while.

  • Delete songs from itunes library, no option to keep file or move to recycle bin

    iTunes Version 11.0.1.12
    I just finished moving my library to a different drive and all seemed to be fine until I started cleaning out some duplicate songs.  When I delete a song from the library, it does not ask if you want to keep the file or move to the recycle bin.  Only 1 window comes up asking - Are you sure you want to delete the selected song?.....and there are only 2 choices - Delete Song or Cancel.  "Do not ask me again" still shows in the window with the box.
    In Preferences under Advanced, the path shows  - G:\iTunes\iTunes Media\iTunes Music.
    I checked for other references to this but could not locate.
    Would certainly appreciate some help - thanks

    I have this question too - Help tells me option is there but it's not

  • Enable Recycle Bin on mapped network drives

    A few years ago I discovered how redirected user profile folders in Windows get Recycle Bin protection, even when the folders are redirected to a network location. This was a huge find for me, and I used this feature to add Recycle Bin coverage to some of
    my mapped network drives. I shared this information on another forum here:
    http://forums.mydigitallife.info/threads/16974-Tip-Network-Recycle-bin
    Today I figured out a better way to achieve the same goal that doesn't rely on user profile folder redirection, and am sharing that information for other users to try out. You might want to take a look at these forum topics for additional information:
    http://technet.microsoft.com/en-us/library/cc787939(v=ws.10).aspx
    http://blogs.technet.com/b/askds/archive/2012/07/16/managing-the-recycle-bin-with-redirected-folders-with-vista-or-windows-7.aspx
    http://msdn.microsoft.com/en-us/library/bb882665.aspx
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/10bfcfb9-14f3-434e-9ffa-0289b8b32e01/folder-redirection-recycle-bin
    The standard disclaimer applies - this might break stuff. I've only tested in Windows 8, and my testing is limited. Try this at your own risk.
    This is what I've learned (or think I've learned - I might be wrong):
    Windows Vista and later store the configuration settings for the Recycle Bin for redirected user profile folders in this registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder
    Under this key are separate keys for each redirected folder that is protected by the Recycle Bin. The keys contain the configuration information for each protected folder, and are named to match the GUIDs for "Known Folders." A list of the Known
    Folder to GUID mappings is available in one of the links above.
    The registry also contains a list of "known folders" at this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions
    So, I reasoned that if I could create my own custom "known folder," I could add that to the list of folders that were protected by the Recycle Bin and protect any mapped network drive I wanted. So I looked at the list of existing "known folders"
    and created a key that was similar to the Documents key. I then fiddled with the values in the key until I narrowed it down to the minimum number needed to make the recycle bin work.
    This .reg file will protect a mapped X: drive with a ~50GB recycle bin. You should modify the file to fit your needs:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
    "RelativePath"="X:\\"
    "Category"=dword:00000004
    "Name"="XDrive"
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\{9147E464-33A6-48E2-A3C9-361EFD417DEF}]
    "MaxCapacity"=dword:0000c7eb
    "NukeOnDelete"=dword:00000000
    A few things of note:
    The GUID in the above .reg file {9147E464-33A6-48E2-A3C9-361EFD417DEF} came from this PowerShell command: "{"+[guid]::NewGUID().ToString().ToUpper()+"}"
    Each "known folder"/Recycle Bin combination requires a unique GUID. If you don't want to use PowerShell to generate a GUID, you can use an online GUID generator.
    I don't know what the "Category" value does, but the key I copied had it set to 4, and that works, so I didn't test any other values.
    The "Name" value is required, but is not the name that will be shown if you right-click on the Recycle Bin and select properties. (At least not in my environment.) In my environment, the name that is shown is the name of the network drive.
    Making this change adds a "Location" tab to the properties page of your mapped network drives. I suspect this could be removed by changing the "Category" value, but didn't bother to find out.
    I only tested with mapped network drives. I suspect this would work with UNC paths as well, but I didn't bother testing.
    I hope you're as excited to find this as I was to figure it out. Let me know if this works for you. I now plan to deploy the registry keys with Group Policy Preferences and will update this forum post with any information I discover.
    Best regards
    --Russel
    Update: I am now using Group Policy Preferences to deploy the needed registry keys, and all my mapped network drives are now protected by the recycle bin.
    Update 2: I have tested now with UNC paths, and this works fine. I still use mapped network drives, but if your environment requires UNC paths instead, you can use them. Note however that if you have a mapped network drive that points to a UNC path, and
    you protect the UNC path with a registry change, if a user deletes a file from the mapped network drive that points to that UNC path, the file will be permanently deleted. See below for more details.

    FANTASTIC work Russel !
    This is extremely helpful.
    I've turned your work into a Bat Script that will automatically make the reg file.
    It creates a unique guid each time it is run, so no worries on overlaps.
    Just copy and paste the following into notepad
    and save it as "Network Recycling Bin - auto make registry file.bat"
    echo off
    REM ========== MAIN FUNCTION  ========================
    Call :CreateREGfile
    PAUSE
    goto :eof
    REM ========== SUB FUNCTIONS  ========================
    :CreateREGfile
    set /p RelativePath=Enter
    current mapped path of drive (e.g. X:\FileShare\D_Drive):
    REM replace \ with \\ (for reg value its a requirement)
    Set RelativePath=%RelativePath:\=\\% 
    set /p MaxBinSize_Dec=Enter
    max size (in mb) (eg 11gb=11000):
    call :toHex
    %MaxBinSize_Dec% MaxBinSize_Hex
    Set outputREG="Network
    Recycling Bin - %RelativePath:~0,1% Drive (%MaxBinSize_Dec%mb).reg"
    call :MakeGUID_VBS NewGUID
    REM echo My new GUID : %NewGUID%
    echo Windows Registry Editor Version 5.00
    >
    %outputREG%
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\%NewGUID%]
    >>
    %outputREG%
    echo "RelativePath"="%RelativePath%"
    >>
    %outputREG%
    echo "Category"=dword:00000004
    >>
    %outputREG%
    echo "Name"="NetworkDrive2RecyclingBin_%NewGUID:~1,5%"
    >>
    %outputREG%
    REM The "Name" value is required, but is not the name that will be shown if you right-click on the Recycle Bin and select properties. That will be autoset to the network drive name.
    echo.>>
    %outputREG%
    echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\KnownFolder\%NewGUID%] 
    >>
    %outputREG%
    echo "MaxCapacity"=dword:%MaxBinSize_Hex%
    >>
    %outputREG%
    echo "NukeOnDelete"=dword:00000000
    >>
    %outputREG%
    goto :eof
    :MakeGUID_VBS
    echo set obj
    = CreateObject("Scriptlet.TypeLib")
    > TEMP_generateGUID.vbs
    echo WScript.Echo obj.GUID
    >> TEMP_generateGUID.vbs
    FOR /F "usebackq tokens=*"
    %%rin (`CSCRIPT "TEMP_generateGUID.vbs"`)DO
    SET RESULT=%%r
    set
    %1=%RESULT%
    del TEMP_generateGUID.vbs
    goto :eof
    :toDec
    :: todec hex dec -- convert a hexadecimal number to decimal
    ::             -- hex [in]      - hexadecimal number to convert
    ::             -- dec [out,opt] - variable to store the converted decimal number in
    SETLOCAL
    set /a dec=0x%~1
    ( ENDLOCAL & REM RETURN VALUES
        IF "%~2"
    NEQ "" (SET %~2=%dec%)ELSE
    ECHO.%dec%
    EXIT /b
    :toHex
    :: eg  call :toHex dec hex -- convert a decimal number to hexadecimal, i.e. -20 to FFFFFFEC or 26 to 0000001A
    ::             -- dec [in]      - decimal number to convert
    ::             -- hex [out,opt] - variable to store the converted hexadecimal number in
    ::Thanks to 'dbenham' dostips forum users who inspired to improve this function
    :$created 20091203 :$changed 20110330 :$categories Arithmetic,Encoding
    :$source http://www.dostips.com
    SETLOCAL ENABLEDELAYEDEXPANSION
    set /a dec=%~1
    set "hex="
    set "map=0123456789ABCDEF"
    for /L
    %%Nin (1,1,8)do
        set /a "d=dec&15,dec>>=4"
        for
    %%Din (!d!)do
    set "hex=!map:~%%D,1!!hex!"
    rem !!!! REMOVE LEADING ZEROS by activating the next line, e.g. will return 1A instead of 0000001A
    rem for /f "tokens=* delims=0" %%A in ("%hex%") do set "hex=%%A"&if not defined hex set "hex=0"
    ( ENDLOCAL & REM RETURN VALUES
        IF "%~2"
    NEQ "" (SET %~2=%hex%)ELSE
    ECHO.%hex%
    EXIT /b
    :eof

  • Items dissapear from Recycle Bin

    Hi, currently I'm facing a problem in my farm, I've detected that items which are sent to first stage Recycle bin dissapears from Recycle bin and farm at some time. These items are not being stored the number of days that has
    been configured in CA (30 days by default). I have checked the configuration of the farm and I see that all is correct, also I checked the size of the Recycle Bin in order to revise if these could be the problem, but no lucky. 
    I checked the timer job, but this it was configured in order to clean the files on Sudany, and I detected that files that wew in Recycle Bin were deleted on Friday.
    Anyone has any clue about this problem?
    Thanks

    Hi,
    According to your post, my understanding is that that Items disappeared from Recycle Bin.
    If a deleted document does not fit in the second stage recycle bin, it skips that stage and SharePoint automatically deletes it. It happens if the size of the document is bigger than the specified second stage recycle bin storage space size.
    If you try to find an item in the recycle bin and fail to locate it then you need to verify the following :
    The contents in the      recycle bin are driven by the access control. The user who has deleted the      content will be able to see the content in the recycle bin. Other users     
    will not be able to see the items in the recycle bin.
    If you have deleted a      top level item like a folder or a list, and try to find a document available      at an inner location, then the item will not be viewable. By default the     
    Recycle bin shows the top level content and does not have the capability      to show the items in a tree structure or drill down mode.
    The contents in the      recycle bin contains only the items within the site. A deleted site is      outside the scope of the Recycle bin and is not available for deletion.
    The recycle bin contains      the items for a predefined period which can be set from the Web      Application –> General Settings. if the thresh hold is crossed, the      item
    is deleted permanently.
    In addition, Recycle Bin cannot remove items automatically, someone should have deleted them.
    You can create an Event Receiver to response only when an item is being deleted or an item has been deleted, and then log the user who delete the post and the time he delete the post. Please refer to
    Creating SharePoint 2010 Event Receivers in Visual Studio 2010
    More information:
    Recycle bin in SharePoint 2010:
    http://letitknow.wordpress.com/2012/12/07/recycle-bin-in-sharepoint-2010/
    Plan to protect content by using recycle bins and versioning (SharePoint Server 2010):
    http://technet.microsoft.com/en-us/library/cc263011.aspx
    SharePoint 2010 Recycle Bin:
    http://sharepointtech.wordpress.com/2010/10/21/sharepoint-2010-recycle-bin/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)

    I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)

    Trying logging out/in or a restart.
    If that doesn't allow you to empty the trash:
    Trash – Empty When File is Locked or in Use
    Trash FAQ       
    Maybe this will help:
    https://discussions.apple.com/message/17029415#17029415

  • I deleted some apps on accident, went to my recycle bin and saw they were in there so i restored them, but now i can't find them. Did i totally lose them?

    I deleted some apps on accident. I went to my recycling bin and saw them in there. I tried to restore them thinking that they would just reappear on itunes, but they didn't. Is there a way i can get them back or did i completely lose them?

    Which idiot at apple decided this was intuitive?
    I too have lost months of work, because when Notes started to mysteriously appear in Mail, I deleted them (That makes sense doesn't it? - Its not MAIL) Why would any one then setup the best OS in the world to delete the actual notes (from within Mail) in the application you created them in???? with no warning and no backup. Months of work, instantly destroyed. This is why i pay the Apple prices!!
    If Jobs was still around, heads would roll.

  • I keep getting an error code while trying to import a cd to my itunes: Error occurred while converting the file. The disc you are attempting to use is full. removing files and emptying the recycle bin will free up additional space.  What does this mean?

    I keep getting this error code while trying to import a cd to my itunes: "Error occurred while converting the file. The disc you are attempting to use is full. removing files and emptying the recycle bin will free up additional space."  What does this mean?

    Well it probably means exactly what it says... How much free space is there on your hard drive where the iTunes Media folder resides? I believe there is also an obscure bug that can occur when software doesn't read the true value of the free space properly, and the workaround is, perversely, to duplicate some content so that with less actual free space the software in question perceives it as more. I've no idea if iTunes is affected by such a bug.
    tt2

  • Powershell "RunAs" causing recycle bin issues. Would like some input please.

    I developed a script to assist our UserAdmins with creation of AD user accounts and create home folders on the server shares.  I am encountering an issue with the recycle bin becoming corrupt when the user first logs in.  This script must be run
    with an elevated account with permissions to the shares.  I also noted a change in the way the recycle bin is displayed in the share.
    The home folder is created using: 
    New-Item -ItemType Directory -Force -Path $directory
    If I log into my machine as my elevated account and run powershell/powershell_ise, all is well.  The recycle bin displays as "Recycle Bin" with the correct icon image
    However, if I log into my machine with my non-elevated account and select "Run as a different user" for Powershell or Powershell_ISE and use my same elevated account from above the users receive "corrupt" recycle bin errors when logging
    in or viewing the recycle bin properties.  Additionally, recycle bin is now listed as "$Recyle.Bin" and is using a folder icon.  This issue is resolved by removing the users AD account from the home folder permissions and re-adding it with
    identical permissions.
    I see this behavior using Win8.1 x64 as well as Win7 x64 Enterprise.
    On another somewhat relevant topic, when launching Powershell_ISE with "Run as a different user" it often freezes and must be forcibly closed.  Could be relevant, could be coincidence.
    I appreciate any input you may have regarding this issue.
    Thanks,
    Jeff

    I'm trying not to come off as combative, but I feel you are misunderstanding or I am not being clear. The recycle bin is auto-created when the user first logs into the machine as is are the sub folders to the parent folder.  All of the desktop.ini files,
    recycle bin folders and various other user profile objects are created upon first login by that user inside of the folder created in the PowerShell script.  Prior to this the user admins were manually creating the same parent folder with their elevated
    accounts.  Given the isolated conditions in which it works vs when it doesn't there is no indication that permissions are causing this issue.
    I'll try to explain why the issue, I believe, lies with PowerShell.
    1) Launch a PowerShell session from the current logged in elevated account
    2) Run the script
    3) Users home folder is created
    4) Upon user logging in for the first time the user profile objects are created in the home folder on the share
    5) No issues with recycle bin
    vs - from the same machine, same script
    1) Launch a PowerShell session with "Run as different user" context using the same account from above
    2) Run the script
    3) users home folder is created
    4) Upon user logging in for the first time the user profile objects are created in the home folder on the share
    5) Recycle bin is corrupt and icon is wrong
    The only thing that changes between these 2 scenarios is the way in which PowerShell is run.
    It's the same computer, the same test user account, the same share, same GPOs and AppSense policies.
    Scenario 1 is run from elevated account logged into local machine
    Scenario 2 is run from non-elevated account with "Run as different user" context using the elevated account
    I know I'm sounding like a broken record but it doesn't make sense AppSense or GPO or even folder permission would cause an issue when the folder is being created using the same account in both situations.

  • Can't DELETE W8.1 Recycle Bin

    Hi, when I tried to delete the contents of the Recycle Bin on my 1 year old HP W8.1 system, I selected ALL and the icons were hi-lited, I then selected Delete and noticed that Delete icon was "lighted out" (i.e. unusable/unavailable)
    so I tried to manual delete just one of files in the Recycle Bin by selecting it and then clicking Delete but nothing happened so I would appreciate HELP as to how to delete (clear, clean,...) the recycle Bin on a W81. system? 
    Thanks,
    Bob

    That setting I identified just is intended to make the Recycle Bin show on your desktop so you can then right-click
    it and choose Empty.
    Am I suppose to Right Click on Desktop Icon Settings? If so, NOTHING happens when I right click on ANY of the Desktop Icon Settings
    (My Computer, USER, Network, Recycle Bin(Full) and Recycle Bin(Empty).  Matter of fact, I don't remember ever seeing TWO Recycle Bin icons (Full and Empty).  
    Did you check
    the box next to the bin?  And if so, did it show up on your desktop?
    What box next to the bin Noel?  Desktop Icons Settings does not have a box next to the Recycle Bin icons and $recycle.bin.cdf-ms cdoesn't
    have a box next to it either
    Thanks Noel
    Bob

  • Recycle bin and 'clear disk space'

    a combination issue, in PC settings etc you have the option to manage disk space, mentions the recycle bin at the bottom, HOWEVER, it displays the bin as empty, while it actually has about 6GB in it over at least 1 of the 3 'drives' I have.
    also, if you search for the reyclebin it'll always return nothing, the only access to it is via the desktop folder assuming you actually have one, 'This PC' (aka 'my computer' or 'computer') are still accessible via search so why not the bin?
    both of these I find pretty stupid to the point I call them bugs, there been anything about this...?

    Hi,
    The storage occupied in recyle bin under PC settings is the same as the storage occurpied in the bin in desktop, that means if you empty the recyle bin in desktop, then the recycle bin at the bottom of PC settings will also display empty.
    And regarding to this sentence
    "if you search for the reyclebin it'll always return nothing, the only access to it is via the desktop folder assuming you actually have one, 'This PC' (aka 'my computer' or 'computer') are still accessible via search so why not the bin?"
    I don't quite understand this sentence, but search result should be related with "Indexng Options" under Control Panel\All Control Panel Items\Indexing Options
    Yolanda Zhu
    TechNet Community Support
    'same as the one on the desktop' well no, its not;
    why would you think I'd say otherwise?
    also, considering the indexing should already contain the desktop, that doesn't make sense either, and I definitely haven't turned off indexing anywhere.

  • How can I send deleted emails to the recycle bin vs just deleting them with my eamail system?

    I have a program that when I empty the recycle bin, it also wipes the allocated space to delete the files totally from the hard cleans the hard disk and gives me space. Space that I need. I get a lot of emails that are large. I don't know if deleting them with "yahoo" opens up space. But using this program with items in the recycle bin will. I have Windows 7 on one computer and windows xp on the other. I need to clean up both computers the best I can so there is space for me to install other items that are rather large sized. Please help. Thank you.

    Are you talking about files from webmail? If you clear the browser cache, does that not free up some space?

  • How do I recover a file of images I removed from LR 4.3 that is not found in my desktop recycle bin?

    How do I recover a file of images I removed from LR 4.3 that is not found in my desktop recycle bin?

    I would try the following, in order
    Have your operating system search your entire hard disk(s)
    If that doesn't find the files, restore from backup
    If you don't have backups then perhaps you should consider making backups of both your catalog file and your photos from now on
    Locate, download and install and run an "undelete utility" (freeware versions are available) -- if you are going to do this, do it immediately, do not perform other tasks on your comptuer

  • Files Uploaded using Mapped Drive (UNC) to SharePoint Document library Putting a copy in Recycle Bin , odd SharePoint Behaviour

    Hello All,
    One of my client reported a strange behaviour.
    Client mapped SharePoint document library to local share(UNC, NetWork Map Drive). Opened MS Word on local machine ,saved it to the share on his local machine. The document is saved successfully to SharePoint document library. But at the same time he can
    see a file with same name in Recycle bin and the size of the document in Recycle bin is <1k.
    Does any one know whether it is expected behaviour, why SharePoint putting this 1k file in Recycle bin?
    I tried the same thing on my Dev Environment for both SharePoint 2010 and 2013, in both environments the behaviour is same as my client experience.
    I have seen in forums some other people also experiencing this odd behaviour, but no one knows why.
    any info on this much appreciated.
    Regards,
    Andrew

    Hi Andrew,
    i tried in my environment for 2010 and 2013. The issue doesn't occur.
    Here is what i did.
    1, Create a new mapped drive(\\servername\DavWWWRoot\Shared Documents) for document library
    2, New a Word doc and input some string, save in the mapped drive.
    3, The doc exists in the document library, but no file in Recycle Bin.
    Did i miss something?
    Regards,
    Tom
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to
    other community members reading the thread.

Maybe you are looking for