Windows 7: Difference between revisions

From miki
Jump to navigation Jump to search
(→‎Tips: Share BT devices between dual boot linux-windows)
Line 15: Line 15:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001
"EnableLinkedConnections"=dword:00000001
* '''Best solution''', use this script to remount shares for admin at startup [http://superuser.com/questions/105173/how-to-access-network-shares-from-an-elevated-process-in-windows-7?rq=1].
* '''Best solution''', use this script to remount shares for admin at startup [http://superuser.com/questions/105173/how-to-access-network-shares-from-an-elevated-process-in-windows-7?rq=1]. Copy following file at ''C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\remount-admin.vbs''
{{pl2|{{hidden|<tt>C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\remount-admin.vbs</tt>
{{hidden|1=<tt>Startup\remount-admin.vbs</tt>
([{{#filelink: remount-admin.vbs}} download])|{{#fileanchor: remount-admin.vbs}}
([{{#filelink: remount-admin.vbs}} download])|2={{#fileanchor: remount-admin.vbs}}
<source lang="bash">
<source lang="bash">
' Script from http://superuser.com/questions/105173/how-to-access-network-shares-from-an-elevated-process-in-windows-7?rq=1
' Script from http://superuser.com/questions/105173/how-to-access-network-shares-from-an-elevated-process-in-windows-7?rq=1
Line 61: Line 61:


End If
End If
</source>|headerstyle=background:#ccccff;text-align:left;}} }}
</source>|headerstyle=background:#ccccff;text-align:left;}}


=== Share bluetooth device between dual boot Linux and Windows ===
=== Share bluetooth device between dual boot Linux and Windows ===

Revision as of 18:38, 2 February 2014

Tips

Miscellaneous

Windows Explorer
  • Press shift then right click, to get more options in context menu / SendTo folder
  • Enter shell:sendto to configure SendTo menu
Change location of special shell folders (desktop, favorites, my documents)
  • Method 1 — Right click on the folder → properties... → Location pane → change location
  • Method 2 — Edit registry locations HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders ([1]).
  • Note there is also HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders. I also update that one, but the tips does not say so.
Map network drives for ALL accounts, including administrators
  • With UAC enabled, network drives mounted by a user are not available to administrators, nor apps running with elevated privileges
  • [2], [3] recommends setting a registry key to bypass that, but it does not work in my Windows 7
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001
  • Best solution, use this script to remount shares for admin at startup [4]. Copy following file at C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\remount-admin.vbs

Share bluetooth device between dual boot Linux and Windows

Reference: [5]

The trick is to copy the bluetooth link keys from Windows into Linux:

  • Pair the device with Linux first
  • Then pair the device with Windows
  • Boot back in Linux, and extract the bluetooth keys using chntpw (it does not work from Windows because the keys are either denied access or hidden). Note that aa1111111111 is the bluetooth device id of the device to pair as given in Windows control panel → bluetoot devices:
chntpw -e SYSTEM

> ls
> cd ControlSet001\services\BTHPORT\Parameters\Keys
> ls
> cd aa1111111111
> ls
> hex bb2222222222
  • Copy the key value (remove the spaces) into file /var/lib/bluetooth/AA:11:11:11:11:11/linkkeys

Cleaning up Windows 7

Windows 7, as any Microsoft product, comes with a lot of bloat and crap. Unfortunately design is so bad that there is no way to clean it up. Here some links to help a bit.

Best Guides

dism /online /cleanup-image /spsuperseded      # To run in admin, and in sys32

Disable hibernation

  • Disable it as follows
powercfg.exe -h off

winsxs

ctts.exe C:\Windows        # Get real size of windows folders (handle soft links / hard links)

DriverStore


Other links for general information: