Windows 11. How to change pinned and recent items for Remote Desktop in your taskbar

To increase or decrease the number of items that show in recent or pinned for Remote Desktop we have to use regedit.

If you want to do it for all the users go:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced

and edit or add the DWORD value if it doesn’t exist

JumpListItems_Maximum

Set the convenient value for you, like 10 or 20 in decimal.

Close regedit and it should be it.  Otherwise restart windows explorer  or sign out and sign it.

 

 

Updating credentials to connect to a windows shared folder

We were unable to access to a sub-folder in a windows shared folder from one of the windows machines that are in different domains.

We still we can access to the windows shared folder but not navigating to the different folders in there.

The solution to this issue was to delete or cancel all the connections to that shared resource using command line in a windows command prompt:

net use \\remote-server\remote-folder /DEL

And repeat the same command for the other connections in that same resource.  You can find them running net use

When done with this task open the connection using the new credentials:

net use \\remote-server\remote-folder [PASSWORD] /USER:[DOMAIN\USERNAME]

And that should be it!

 

Good luck!

Windows 11. Opening Explorer.exe as administrator

For this hack I used the tool AdvancedRun offered by NirSoft  and combining the explanation given about “Run explorer.exe as Administrator user within Windows 7” and “How to run Command Prompt as Trusted Installer on Windows 11

Using the tool AdvancedRun I opened a command prompt as Trusted Installer.  Once there and from there

  1. I opened “Registry Setting” with regedit.exe
  2. Navigate to the registry key:  HKEY_CLASSES_ROOT\AppID{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}
  3. Right click on the registry key and click Permissions…
  4. Give Full Control permissions to the user logged in.
  5. Close “Registry Settings” and …
  6. From command prompt again now, open dcomcnfg.exe
  7. Expand DCOM Config
  8. Right click and select properties of “Elevated-Unelevated Explorer Factory“, click the Identity tab and select “The launching user“.
  9. Close dcomcnfg.exe and close also the command prompt we’re using

After this, you can for example open a new command prompt as administrator and execute “explorer.exe” or go to a current “File Explorer” C:\Windows and “Run as Administrator”

Opening explorer as admin from "File Explorer"
Explorer as Admin

Enjoy your new power!

Make your program Always run as Administrator

For this trick we are using a Registry Hack.

Go to the key:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

Add as new “String” value the whole path of the application you want to always open as administrator.

Double click in the new created value and for the value set: ~RUNASADMIN.

Close the registry and try now double-clicking on the executable or the shortcut if created.