Windows

De WikiMar
Dreceres ràpides: navegació, cerca

Contingut

All Windows

Getting Your Hidden Window Back with the Keyboard Trick

There’s a simple trick to get around this. First make sure you’ve alt-tabbed to the window, or clicked on it once to bring it into focus. Then right-click on the taskbar and choose Move.

Note: If you’re using Windows 8 or 10 you might have to hold down the SHIFT key before right-clicking in order to get the Move menu item to show up.

At this point, you should notice that your cursor changes to the “Move” cursor, but you still can’t move anything.

Just hit any one of the arrow keys (Left, Right, Down, Up), move your mouse, and the window should magically “pop” back onto the screen.


Note: For keyboard savvy people, you can just

  • alt-tab to the window,
  • use Alt+Space, then
  • M, then
  • Arrow key, and then
  • move your mouse.

Info from: http://www.howtogeek.com/howto/windows/bring-misplaced-off-screen-windows-back-to-your-desktop-keyboard-trick/


Check disk surface for bad sectors

Open a CMD console as administrator and type:

chkdsk C: /f /r /x

The “/f” parameter tells CHKDSK to fix any errors it finds; “/r” tells it to locate the bad sectors on the drive and recover readable information; “/x” forces the drive to dismount before the process starts.

More info: https://www.tekrevue.com/tip/fix-hard-drives-chkdsk-windows-10/


Back up Encryption Certificate and Key (NTFS)

Needed if using encryption of any folder/file:

http://www.isumsoft.com/windows-10/back-up-encryption-certificate-key-in-windows-10.html

Restore: http://www.isumsoft.com/windows-10/restore-encryption-certificate-key-in-windows-10.html

Back up BitLocker Recovery Key for Encrypted Drive

Only needed if Bitlocker is used:

http://www.isumsoft.com/windows-10/3-ways-backup-bitlocker-recovery-key-for-drive.html


Shortcuts

Ctrl+Shift+Esc  kill current windows
Shift+F10   right click
Win+E   explorer
Win+R   run   ex Documents
Win+T   select the taskbar
Win+number to go to program in taskbar in position number
Win+Alt+number to go to program in taskbar in position number right click

Screenshots

Win+PrintScreen    Saves to c:\Users\XXX\Pictures\Screenshots\
Win+Shift+S     Opens new snipping tool to capture all screen or only one part. Screenshots are automatically saved to c:\Users\XXX\AppData\Local\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempState\ScreenClip

https://www.youtube.com/watch?v=dm66kyU5vWA


Multiple Desktops

Win+Tab   Open Task View  - click create desktop
Win+Ctrl+Right Switch between Desktops
Win+Ctrl+Left
Win+Ctrl+F4  close desktop

Program shortcuts

Mic properties (audio)

Target

C:\Windows\System32\rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,recording

Icon

%SystemRoot%\System32\DDORes.dll

Sound Mixer

Target

C:\Windows\System32\SndVol.exe

Installed Software

Edit PDF

Antic

Create PDF

  • PDFfactory (paid)
  • PDFcreator (free)


Visualitzador imatges

XNView MP https://www.xnview.com/en/xnviewmp/


Free Alternativa Photoshop

Free Alternativa Premiere

Edit correct EXIF date in pictures

Change/correct date time of pictures (i.e apply a delta to all).


Send/Receive SMS on Samsung LTE laptop

Windows Store apps

  • VLC
  • Adobe Photoshop Express (no gaire bo)


Share mouse between computers

Synergy

https://symless.com/synergy/downloads


Assign functions to mouse buttons - also Logitech Mx Master

https://www.highrez.co.uk/downloads/xmousebuttoncontrol.htm


Windows Focus follows mouse

Focus automatically on the windows under the mouse:

https://joelpurra.com/projects/X-Mouse_Controls

Once it is changed, it is persitent without the tool. Run the tool again to disable it.

Secure delete shred files

Deleting and overwriting the empty disk space

1st delete the files. Then open CMD and type:

Cipher /w:C:\Users\Username\location_of_folder

The folder only indicates which volume, in most of the cases it's going to be equivalent to

Cipher /w:C:


Bash script

@echo off
setlocal enabledelayedexpansion
for %%a in (%1) do (
  fsutil file setzerodata offset=0 length=%%~za %%a
)
endlocal

You can pass a single filename as an argument: zero test.txt or a wildcard: zero *.txt

More info: https://superuser.com/questions/1260051/zeroing-a-file-from-command-line

Windows 7

Desconnectar cable DVI i deixar un sol monitor per l'instalació, si no apareix pantalla negre amb ratolí.

Chrome
Bsplayer
winamp:
 (Online services: 7digitalmusic, shoutcast radio, MetroLyrics, Moodagent, Song of the day)
 Bookmarks:
 http://195.10.10.220/flaix/FLAIXfm.mp3?GKID=dff2268eabd511e1892500163ea2c743
 http://195.10.10.206/flaix/FLAIXfm.mp3?GKID=e1826f78abd411e1892500163ea2c743
 http://195.10.10.223/flaix/shoutcast.flv?GKID=54f7338aabd511e1a86700163e914f68
 (TechnoBase.FM) http://78.159.104.147:80
 (French Kiss FM) http://88.190.24.47:80
FreeSSHd
Cygwin (rsync, unison, ssh, openssh [mandatory for ssh client to work, otherwise key authentication fails], autossh, nano, vim, wget, wput, curl, corkscrew, xinit [per tenir X server], xauth, gvim, nedit, bash-completion, mc, mosh, md5deep, inetutils[ter tenir telnet],  ..)
 To allow X11 from the terminal add to .bash_profile
  export DISPLAY=localhost:0.0
 When connecting with ssh, bash will source .bash_profile instead of .bashrc on the remote machine, add a .bash_profile with content:
  if [ -f ~/.bashrc ]; then
    source ~/.bashrc
  fi
 To install PHP in Cygwin:
  wget http://cygwin.com/setup.exe
  chmod +x setup.exe
  cygstart -- ./setup.exe -K http://cygwinports.org/ports.gpg
  Add this source: ftp://ftp.cygwinports.org/pub/cygwinports
  More info: http://www.copypaste.at/2012/11/php-53-in-der-cygwin-umgebung.html

avast
teamviewer
ultravnc
ultradefrag
pdfcreator
truecrypt
winrar
acdsee pro
Gembird powermanager
gtalk + video plugin
picasa
google earth
google drive
easyvoip
pandora recovery (gratis)
openvpn
gbridge
 gbridgecom@
 port: 61888
 no use UPNP
 si (open to my other computers) UDP, SSH, WindowsShareFolder, All Other traffic
 no (open to friends computers) UDP, SSH, WindowsShareFolder, All Other traffic
 fully trusted users: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]

windows xp mode
EASEUS partition master 9 pro (gratis)
Fineprint
PDF factory
SuperFlexible 5.50
Adobe Master Collection CS4 (Adobe Photoshop, inclou Acrobat 9 Pro)
MS Office
FrontPage


Mouse: X-Mouse Button Control
 Tots don't intercept
 Mouse Button 4: simulated keys (repeat) {PGUP}
 Mouse Button 5: simulated keys (repeat) {PGDN}

Keyboard: Media Key
 Word: C:\PORTABLE\_PORTABLE_UTIL\NIRCMD\monitorOff.bat
 Excel: C:\PORTABLE\_PORTABLE_UTIL\NIRCMD\monitorScreenSaver.bat
 Email: C:\PORTABLE\_PORTABLE_UTIL\NIRCMD\WinAmpWindowShade.bat
 www home: C:\PORTABLE\_PORTABLE_UTIL\NIRCMD\WinAmpForward.bat
 Play/Pause: C:\PORTABLE\_PORTABLE_UTIL\NIRCMD\WinAmpStop.bat
 PlayList: C:\PORTABLE\_PORTABLE_UTIL\NIRCMD\WinAmp.bat

Gadgets Escriptori:
 CPU: addgadget.com
 Auto-Shutdown Restyled - Jonky Studios


Configurar tecles multimedia:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\15]
"ShellExecute"="C:\\PORTABLE\\_PORTABLE_UTIL\\NIRCMD\\WinAmpForward.bat"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\16]
"ShellExecute"="C:\\PORTABLE\\_PORTABLE_UTIL\\NIRCMD\\WinAmp.bat"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\17]
"ShellExecute"="c:\\INTERNET\\EasyVoip.com\\EasyVoip\\easyvoip.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18]
"ShellExecute"="calc.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\7]
"ShellExecute"="C:\\PORTABLE\\_PORTABLE_UTIL\\NIRCMD\\monitorScreenSaver.bat"

enlloc de:

"ShellExecute"="c:\\INTERNET\\EasyVoip.com\\EasyVoip\\easyvoip.exe"
"ShellExecute"="c:\\PORTABLE\\_PORTABLE_UTIL\\NIRCMD\\monitorOff.bat"

Windows 10

Disable Snap Assist in Windows 10

In the System Settings window, find and click Multitasking in the column on the left. Under the “Snap” category on the right, find the option labeled When I snap a window, show what I can snap next to it and set it to Off. This will disable Snap Assist in Windows 10.

https://www.tekrevue.com/tip/how-to-disable-snap-assist-windows-10/


Enable Bash / Ubunti natively in Windows 10

1. Turn Developer Mode on via Settings > Update & security > For developers.

2. Click the Start button , click Control Panel, click Programs, and then click Turn Windows features on or off.

3. Enable Windows Subsystem for Linux (Beta)

4. To get Bash installed, open Command Prompt and type “bash”


Disable sending downloaded windows updates to other machines in Internet

You’ll find this setting where all the other Windows Update settings now exist, in the Settings app. Open it by clicking the Start button and selecting “Settings” at the bottom-left corner of the Start menu.

In the Settings window that appears, click (or tap) the “Update & security” icon.

Click the “Advanced options” option at the bottom of the Windows Update pane.

Scroll down to the bottom of this pane again and select “Choose how updates are delivered.”

Select the option you prefer under “Updates from more than one place.”

Source: https://www.howtogeek.com/224981/how-to-stop-windows-10-from-uploading-updates-to-other-pcs-over-the-internet/

Setting a Wifi connection as metered to avoid downloading or sending updates

You could also set your current Wi-Fi connection as “metered.” When you set a connection as metered, you’re telling Windows it’s a connection with restricted data — such as a mobile data connection or a Wi-FI hotspot from a smartphone you’re tethered to. Windows won’t upload updates on a metered connection — it won’t even automatically download Windows updates.

To set your current Wi-FI network as a metered connection, open the Settings app and navigate to Network & Internet > Wi-Fi > Advanced options. Activate the toggle under “Set as metered connection.” The current Wi-Fi network will become a metered connection.


Remove Onedrive

Enable: Services, Clear Diagtrack log, Uninstall Onedrive.

https://github.com/10se1ucgo/DisableWinTracking


There are some more Privacy options that can be disabled in Settings->Privacy


Automatically login to specific user

1. Press the Windows + R keys to open the Run dialog box, type netplwiz or control userpasswords2, and click/tap on OK to open advanced User Accounts.

2. If prompted by UAC, then click/tap on Yes.

3. Do step 4 or step 5 below for what you would like to do.

4. To Turn Off Automatic Sign in for All Users NOTE: This is the default setting.

A) Check the Users must enter a user name and password to use this computer box, and click/tap on OK. (see screenshots below step 3)

5. To Turn On Automatic Sign in for a Local Account or Microsoft Account NOTE: You could also use this step to change what user account you would like Windows to automatically sign in to at startup.

A) Check the Users must enter a user name and password to use this computer box.

source: https://www.tenforums.com/tutorials/3539-sign-user-account-automatically-windows-10-startup.html


Disable Splash / Lock screen to enter directly PIN/password

Create and run WinNoSplashScreen.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
"NoLockScreen"=dword:00000001


Or follow the following:

Search for regedit and run command
Double-click to expand HKEY_LOCAL_MACHINE in the left pane.
Double-click to expand SOFTWARE.
Double-click to expand Policies.
Double-click to expand Microsoft.
Now, don't double-click but right-click Windows.
Click New and then click Key.
Rename New Key #1 that you just created as Personalization and hit Enter
In the Personalization folder, right-click in the right pane of the Registry Editor, select New and then select DWORD (32-bit) Value. You 
will see a new item pop-up in the right pane of the Registry Editor, titled New Value #1. Rename it as NoLockScreen and hit Enter.
Double-click NoLockScreen to open its value data. Under Value data, change the value from 0 to 1 and click OK.


Also valid for Win 11

run as admin: gpedit.msc

Computer Configuration -> Windows Settings -> Administrative Templates -> Control Pannel -> Personalization
  -> Do not display the lock screen  (enable)

Change the screen lock time

  • 1.Open the Registry Editor by searching for Regedit in the start menu or search bar
  • 2.Navigate to the following path with the bar on the side:
HKEYLOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7”
  • 3.Double left-click the Attributes value to open the Properties window in the right hand-pane
  • 4.Change the value in the Value data box from 1 to 2, then click OK
  • 5.Go to Power Options in the Control Panel and click change plan settings
  • 6.Click on Change Advanced Power Options
  • 7.Expand the Display item and choose Console lock display off timeout

Add or Remove "System unattended sleep timeout" in Power Options using Command Prompt

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0]
"Attributes"=dword:00000002


Alternative:

Open an elevated command prompt:

(Add)

powercfg -attributes SUB_SLEEP 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 -ATTRIB_HIDE

(Remove - default)

powercfg -attributes SUB_SLEEP 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 +ATTRIB_HIDE

Disable Windows Compatability Telemetry (CompatTelRunner.exe)

To disable compattelrunner.exe, just execute:

Task Scheduler  - Microsoft - Windows - Application Experience - right click on each task for: DISABLE

More info: https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/how-to-stop-the-windows-compatability-telemetry/3e6f469a-e527-4744-a313-cb52030b3461

Add a guest account

net user Visitor /add /active:yes
net localgroup users Visitor /delete
net localgroup guests Visitor /add

You have to use the account name “Visitor” here as the term “Guest” is reserved.

Step 4: To create a blank password for the visitor account, press Enter two times when prompted for a password

Step 5: Now you have to remove this account from the Default users groups so type in the following command and run it by pressing Enter

Step 6: To add the visitor to the guest group, type in the following command and press Enter and you’ll be done


Enable Clipboard History

Win Key and type Clipboard Settings.

Enable clipboard history.

Copy with Ctrl+C as normal. For pasting, press:

Win+V


Clean autostarted non windows services

Get-NonDefault-Services.ps1

<#
.SYNOPSIS
  A script to get all non-default services on a Windows machine.

.NOTES
  Version:        1.0
  Author:         Rickard Carlsson (@tzusec)
  Creation Date:  2020-08-29
  https://github.com/tzusec/Get-NonDefault-Services/blob/master/Get-NonDefault-Services.ps1
#>

$NonDefaultServices = @() 
$Services = Get-wmiobject win32_service | where { $_.PathName -notmatch "policyhost.exe" -and $_.Name -ne "LSM" -and $_.PathName -notmatch "OSE.EXE" -and $_.PathName -notmatch "OSPPSVC.EXE" -and $_.PathName -notmatch "Microsoft Security Client" -and $_.DisplayName -notmatch "NetSetupSvc" -and $_.Caption -notmatch "Windows" -and $_.PathName -notmatch "Windows"  }

Foreach ($Service in $Services) {
    $NonDefaultServices+= [pscustomobject]@{
        DisplayName = $Service.DisplayName
        State = $Service.State
        StartMode = $Service.StartMode
        Status = $Service.Status
        ProcessID = $Service.ProcessId                
        ExePath = $Service.PathName
        Description = $Service.Description
    }
}

Write-Output "Found $($NonDefaultServices.Count) non-default services."
Write-Output $NonDefaultServices

pause

source: https://github.com/tzusec/Get-NonDefault-Services/blob/master/Get-NonDefault-Services.ps1


Firewall

However, I would recommend uninstalling Comodo Free Firewall in favor of using Windows Defender Firewall which is what most users are using nowadays. :whistle:

Windows Firewall Tools can be used to extend the default Windows firewall behavior and used for quick access to define rules and configure the most frequently used options.

And, these are as follows: Windows Firewall Control by Malwarebytes: https://www.binisoft.org/wfc, and Simplewall: https://www.henrypp.org/product/simplewall


Windows 11

Taskbar: Never group icons

https://github.com/valinet/ExplorerPatcher

After install right click on taskbas and select Properties.

Select Taskbar -> taskbar icon size: small.