{"id":28435,"date":"2022-09-18T12:30:59","date_gmt":"2022-09-18T07:00:59","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=28435"},"modified":"2022-10-05T13:34:53","modified_gmt":"2022-10-05T08:04:53","slug":"pin-recycle-bin-to-quick-access","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/pin-recycle-bin-to-quick-access\/","title":{"rendered":"How to Pin Recycle Bin to Quick Access using InvokeVerb"},"content":{"rendered":"<p>The Recycle Bin context menu doesn&#8217;t have the &#8220;Pin to Quick access&#8221; context menu. However, you can still pin it to Quick access using the methods in this article. We will see how to pin Recycle Bin to Quick access manually as well as using a script.<!--more--><\/p>\n<h2>How to Pin Recycle Bin to Quick Access<\/h2>\n<h3>Option 1<\/h3>\n<p>Open the Recycle Bin folder. By default, it opens to the &#8220;Manage&#8221;\/&#8221;Recycle Bin Tools&#8221; tab. Click on the Home tab, and click Pin to Quick access. Alternatively, you can drag the Recycle Bin desktop icon to the Quick access area in a folder window and drop it.<\/p>\n<hr \/>\n<h3>Option 2: Using Script (&#8220;InvokeVerb&#8221; method)<\/h3>\n<h4><a id=\"vbscript\"><\/a>VBScript<\/h4>\n<pre><code>\r\n'Pin Recycle Bin to Quick Access - VBScript code\r\nDim oShell: Set oShell = CreateObject(\"Shell.Application\")\r\nDim WshShell: Set WshShell = CreateObject(\"Wscript.Shell\") \r\nsRB = \"{645FF040-5081-101B-9F08-00AA002F954E}\"\r\nsKey = \"HKCU\\Software\\Classes\\CLSID\\\" &amp; _\r\nsRB &amp; \"\\shell\\pintohome\\command\\\"\r\nWshShell.RegWrite sKey &amp; \"DelegateExecute\", _\r\n\"{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}\", \"REG_SZ\"\r\noShell.Namespace(\"shell:::\" &amp; sRB).Self.InvokeVerb(\"pintohome\")\r\nOn Error Resume Next\r\nWshShell.RegDelete sKey\r\nWshShell.RegDelete \"HKCU\\Software\\Classes\\CLSID\\\" &amp; sRB &amp; \"\\shell\\pintohome\\\"\r\nWshShell.RegDelete \"HKCU\\Software\\Classes\\CLSID\\\" &amp; sRB &amp; \"\\shell\\\"\r\nWshShell.RegDelete \"HKCU\\Software\\Classes\\CLSID\\\" &amp; sRB &amp; \"\\\"\r\nOn Error GoTo 0\r\nSet oShell = Nothing\r\nSet WshShell = Nothing\r\n<\/code><\/pre>\n<hr \/>\n<h4><a id=\"powershell\"><\/a>PowerShell<\/h4>\n<pre><code>$RBPath = \"HKCU:\\Software\\Classes\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\pintohome\\command\\\"\r\n$name = \"DelegateExecute\"\r\n$value = \"{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}\"\r\nNew-Item -Path $RBPath -Force | out-null\r\nNew-ItemProperty -Path $RBPath -Name $name -Value $value -PropertyType String -Force | out-null\r\n$oShell = New-Object -ComObject Shell.Application\r\n$trash = $oShell.Namespace(\"shell:::{645FF040-5081-101B-9F08-00AA002F954E}\")\r\n$trash.Self.InvokeVerb(\"PinToHome\")\r\nRemove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\" -Recurse\r\n<\/code><\/pre>\n<p><strong>Hint:<\/strong> The trick is to temporarily create a <code>PintoHome<\/code> verb under the Recycle Bin GUID. This is because the <code>PintoHome<\/code> verb under <code>HKCR\\Folder<\/code> doesn&#8217;t work for the Recycle Bin special folder due to a folder GUID validation being in place. After invoking the verb and pinning the item, the <code>PintoHome<\/code> verb under the Recycle Bin GUID can be removed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Recycle Bin context menu doesn&#8217;t have the &#8220;Pin to Quick access&#8221; context menu. However, you can still pin it to Quick access using the methods in this article. We will see how to pin Recycle Bin to Quick access manually as well as using a script.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8,869],"tags":[396,441,480],"class_list":["post-28435","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-powershell","tag-registry","tag-scripts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":907,"url":"https:\/\/www.winhelponline.com\/blog\/disable-empty-recycle-bin-confirmation-windows\/","url_meta":{"origin":28435,"position":0},"title":"Empty the Recycle Bin Without the Confirmation Window Showing Up","author":"Ramesh","date":"June 29, 2009","format":false,"excerpt":"When emptying the contents of your Recycle Bin, you'll be asked for confirmation as below. Here is a registry edit to turn off the prompt in Windows 7, 8 and Windows 10, using NirCmd. This registry edit replaces the Empty Recycle Bin command in the right-click menu and the ribbon\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"recycle bin delete confirmation prompt","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/06\/rbin-silent-empty.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":350,"url":"https:\/\/www.winhelponline.com\/blog\/how-to-rename-the-recycle-bin-in-windows\/","url_meta":{"origin":28435,"position":1},"title":"How to Rename the Recycle Bin in Windows","author":"Ramesh","date":"July 2, 2008","format":false,"excerpt":"Here is a quick registry tweak or script to rename the Recycle Bin icon caption in Windows 10 and earlier. Rename the Recycle Bin text (caption) in Windows There are two methods discussed. The first method uses a custom VBScript, and the second method uses registry editing using the Windows\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"rename the recycle bin - script","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/07\/rename-recycle-bin-script-input.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3922,"url":"https:\/\/www.winhelponline.com\/blog\/empty-recycle-bin-task-scheduler-powershell-clear-recyclebin-nircmd\/","url_meta":{"origin":28435,"position":2},"title":"Empty Recycle Bin Automatically Using Task Scheduler or Storage Sense","author":"Ramesh","date":"August 31, 2016","format":false,"excerpt":"You can use it to clear the Recycle Bin at a specified time or regular intervals with Task Scheduler using a PowerShell command. Alternately, you can also use Storage Settings (a.k.a. Storage Sense) to clear the files from Recycle Bin that are older than a certain number of days. This\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"empty recycle bin - storage settings or storage sense","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/storage-settings-cleanup-enable.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/storage-settings-cleanup-enable.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/storage-settings-cleanup-enable.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/storage-settings-cleanup-enable.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3110,"url":"https:\/\/www.winhelponline.com\/blog\/empty-recycle-bin-single-click-using-powershell\/","url_meta":{"origin":28435,"position":3},"title":"How to Empty the Recycle Bin In a Single Click in Windows 10?","author":"Ramesh","date":"May 14, 2016","format":false,"excerpt":"When using your Windows 10 computer in Tablet mode, to clear the Recycle Bin you either have to switch off Tablet mode, or open File Explorer and browse the Recycle Bin folder in order to empty it. This post tells you how to create a shortcut to clear the Recycle\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/05\/emptybin-ps1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":166,"url":"https:\/\/www.winhelponline.com\/blog\/clear-recent-files-history-in-a-single-click-in-windows\/","url_meta":{"origin":28435,"position":4},"title":"Clear Recent Files history Using Script in Windows 10","author":"Ramesh","date":"April 7, 2008","format":false,"excerpt":"Did you notice that in Windows it takes exactly half a dozen mouse clicks to clear the recent items history? This post has a VBScript to clear the recent documents history in a single click in Windows 10 and earlier. Clear Recent Files history in Windows In Windows 10, here\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"clear quick access history","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-quickaccess-3.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":306,"url":"https:\/\/www.winhelponline.com\/blog\/fix-corrupted-recycle-bin-windows-vista-7-8-10\/","url_meta":{"origin":28435,"position":5},"title":"How to Fix the Corrupted Recycle Bin Store Folder","author":"Ramesh","date":"May 28, 2008","format":false,"excerpt":"There are situations where you need to reset the Recycle Bin store folder to fix problems such as Recycle Bin not showing the files that have been deleted. In some cases, you may be unable to completely empty the Recycle Bin. Each drive has a hidden and protected folder named\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"recycle bin store folder","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/recycle-bin-store-folder.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/28435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=28435"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/28435\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=28435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=28435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=28435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}