Skip to content

Instantly share code, notes, and snippets.

@turboBasic
Last active October 12, 2017 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turboBasic/0e18a8c747bfad8e4741d16445f792a3 to your computer and use it in GitHub Desktop.
Save turboBasic/0e18a8c747bfad8e4741d16445f792a3 to your computer and use it in GitHub Desktop.
[Allow access to "~\Start Menu" and "~\SendTo" junctions] (elevated) #cmd
mklink /d %userProfile%\SendTo\SendTo %userProfile%\SendTo
mklink /d %userProfile%\SendTo\StartMenu_Programs "%userProfile%\Start Menu\Programs"
mklink /d %userProfile%\SendTo\StartMenu_Programs_AllUsers "%allUsersProfile%\Start Menu\Programs"
pushd %userProfile%\SendTo
attrib +h "Mail Recipient.MAPIMail"
attrib +h Documents.mydocs
attrib +h "Bluetooth File Transfer.LNK"
attrib +h "Compressed (zipped) Folder.ZFSendToTarget"
popd
icacls "%userProfile%\Start Menu" /remove:d Everyone
icacls "%userProfile%\SendTo" /remove:d Everyone
icacls "%allUsersProfile%\Start Menu" /remove:d Everyone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment