Pages

Windows 7 related stuff



GPS, Edit GPX timestamps
1) http://www.gpsbabel.org/download.html
2) C:\>"C:\Program Files (x86)\GPSBabel\gpsbabel.exe" -t -r -w -i gpx -f D:\1.gpx -x track,move=-3h -o gpx -F D:\1-3.gpx



Windows 7 dosnt boot after update (Recovery mode)
https://www.wintips.org/fix-windows-cannot-boot-after-installing-updates-windows-7-8-10/
  • DISM /Image:D:\ /ScratchDir:D:\Scratch /Cleanup-Image /RevertPendingActions


WannaCry

https://www.drivethelife.com/windows-drivers/fix-prevent-wannacry-ransomware-windows-10-8-7-vista-xp.html

DCOM disable (ports 1)
https://www.drivethelife.com/windows-drivers/disable-tcp-port-135-avoid-wannacry-ransomware-windows-10-8-7-vista-xp.html
https://www.pimp-my-rig.com/2008/10/faq-disable-port-135-disable-dcom.html

Block ports
netsh advfirewall set allprofile state on
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=445 name="Block_TCP-445"
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=135 name="Block_TCP-135"
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=138 name="Block_TCP-138"
netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=139 name="Block_TCP-139"


SMBDeviceEnabled  disable .reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters]
"SMBDeviceEnabled"=hex(b):00,00,00,00,00,00,00,00


MP3 Splitter
http://downloads.sourceforge.net/project/mp3splt/mp3splt/2.6.2/mp3splt_2.6.2_i386.exe?r=http%3A%2F%2Fmp3splt.sourceforge.net%2Fmp3splt_page%2Fdownloads.php&ts=1468847312&use_mirror=ufpr

Cut large mp3 in 10 min seq's
C:\Program Files\mp3splt>mp3splt.exe -t 10.00 "D:\Music\+Trance\God's compilation - Copy\Greatest Vocal Trance of all time (Part 1 of 3) By Christian Pheng.mp3"



1) Windows 7 Ultm , iSCSI set-up to Storage
http://www.windowsnetworking.com/articles-tutorials/windows-7/Connecting-Windows-7-iSCSI-SAN.html


Windows commands timer
http://windowsitpro.com/systems-management/how-can-i-modify-tcp-retransmission-timeout

C:\Users\SC>cmd /v:on /c "echo !TIME! & telnet 192.168.1.254 & echo !TIME!"
11:23:48.05
Connecting To 192.168.1.254...Could not open connection to the host, on port 23: Connect failed
11:24:09.20
Windows TCP settings
C:\Users\SC>netsh interface tcp show global
Querying active state...
TCP Global Parameters
----------------------------------------------
Receive-Side Scaling State          : enabled
Chimney Offload State               : enabled
NetDMA State                        : enabled
Direct Cache Acess (DCA)            : enabled
Receive Window Auto-Tuning Level    : normal
Add-On Congestion Control Provider  : ctcp
ECN Capability                      : disabled
RFC 1323 Timestamps                 : disabled


2) Windows analog for Linux GREP
In CMD with Admin Rights
echo findstr %1 %2 %3 %4 %5 > %systemroot%\grep.cmd
echo IF "%1"=="-a" (ipconfig /all) ELSE (ipconfig %1) > %systemroot%\ifconfig.cmd
echo %1 /?> %systemroot%\man.cmd
echo IF "%1"=="-a" (dir) ELSE (IF "%1"=="-al" (dir) ELSE (dir %1 %2 %3 %4 %5)) > %systemroot%\ls.cmd
Result
C:\Users>netstat -an | grep LISTEN
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING
  TCP    127.0.0.1:5939         0.0.0.0:0              LISTENING

3) Check your C: drive for errors and automatically repair them.
CHKDSK C: /F /R

10) Hardware PC's
Windows 7 Ultimate 32bits with 4 GB RAM

Work PC  (Win7 SP1, 32bit) 
test1 http://www.passmark.com/baselines/V8/display.php?id=19634343158
test2 http://www.passmark.com/baselines/V8/display.php?id=20161313128

CPU  - Intel Core2 Duo E7500 @ 2.93GHz
MB   - D3041-A1
RAM  - 4GB
GPU  - GeForce 210
HDD  - Hitachi HDS721050CLA362 (500 GB)

Passmark   715
CPU    2D-GPU  3D-GPU  RAM    HDD
1781   326     128     763    762

Acer PC (Win7 SP1, 64bit)
http://www.passmark.com/baselines/V8/display.php?id=22304325411

CPU  - Intel Core i5-2300 @ 2.80GHz
MB   - Aspire M3970
RAM  - 4GB , Kingston ACR256X64D3U1333C9
GPU  - GeForce 405
HDD  - Seagate ST3500413AS (500 GB)

Passmark   1330
CPU    2D-GPU  3D-GPU  RAM    HDD
5515   638     231     1800   773
SSD
Transcend TS128GMSA720    3482
Transcend TS256GSSD340     2,153
Transcend TS64GSSD320     1,437
Установка и настройка Windows 7 на SSD накопитель | Компьютерные советы 

http://www.thessdreview.com/ssd-guides/optimization-guides/the-ssd-optimization-guide-ultimate-windows-8-edition/5/

HDD
MAXTOR STM3500320AS        605
SAMSUNG HD250HJ            564

CPU
                                Passmark     Rank    CPU Value
Intel Xeon E5-2690 v2 @ 3.00GHz     17441
Intel Core i7-3970X @ 3.50GHz
       12863
AMD FX-8150 Eight-Core              7713    6k lei
Intel Core i5-2400 @ 3.10GHz        5810    195    27.44
Intel Core i5-2300 @ 2.80GHz        5244
Intel Core2 Quad Q8400 @ 2.66GHz    3227    479        20.42
Intel Core2 Duo E8400 @ 3.00GHz     2164   
Intel Core i3 550 @ 3.20GHz         2877   
Intel Core2 Duo E7400 @ 2.80GHz     1758   
AMD Athlon 64 X2 4600+              1365    1003    3.90
AMD Sempron 2400+                   317
Intel Pentium 4 1.50GHz             136
AMD-K6-III                          108


http://www.cpu-world.com/benchmarks/
AMD Sempron 2500+        538

GPU
Radeon HD 6450                      289
GeForce 8600 GT                     257
GeForce 210                         184  
Quadro NVS 290                      102     <- scroll in FF of this page, 100% GPU ( http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx )


Add SSD Drive for runnning OS on

Migration done with DriveImage XML 2.50 - dixmlsetup.exe

HDD/SSD/RAMDisk Performance comparison
        Read AVG (MB/s)    Acess time (ms)    Ratio-access time    PC/device    Model
HDD        120                7.80            1                    SATA2/SATA2    Hitachi HDS721050CLA362 (500GB 7200RPM)
SSD        195.4            0.209            37                    SATA2/SATA3    Silicon Power S80 (60GB)
RAMDisk    2796            0.033            236                    -/-
http://www.harddrivebenchmark.net/hdd_list.php
Hitachi HDS721050CLA362    686

Hitachi HDS721050CLA362 (500GB 7200RPM)
Silicon Power S80 (60GB)

RamDisk

Avast + The Bat Errors:
https://www.avast.com/no-no/faq.php?article=AVKB91##free-antivirus


1) Better Windows 7 Cleanup
Windows 7 Ultimate  32bits (clean)
before : used 15.5 GB  (clean install + all updates to jan 2014)
afeter : used 12.3 GB
  (after all procedures described below)
Tools:

1) Clean Browsers Cache
CCleaner

Add Firefox portable location:
 - Open CCleaner.exe -> Options -> Advanced -> Save all settings to INI file
 - Open "As Administrator" C:\Program Files\CCleaner\ccleaner.ini  and add line with path to Firefox portable location:
 - CustomLocation1="FIREFOX|z:\FirefoxPortable\Data\profile"
 - z: is RAMDISK in my case


2) Disable Hibernation, delete hyberfile.sys
#  Run CMD as Administrator
C:\Windows\system32>powercfg -h off

3) Windows Disk Cleanup
#  Run CMD as Administrator

%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535

4) Cleanup some cache and update folders from Windows#  Run CMD as Administrator
C:\Windows\system32>net stop wuauserv
The Windows Update service is stopping.
The Windows Update service was stopped successfully.

C:\Windows\system32>net stop bits
The Background Intelligent Transfer Service service is stopping..
The Background Intelligent Transfer Service service was stopped successfully.

delete *.ebd from
C:\Windows\SoftwareDistribution\DataStore\

net start wuauserv
net start bits

2) Windows 7 Patch PAE
CPU Ranks
i7        9978    Max CPU @ sept 2013
Core2 Duo E7500 1876    Work CPU
64 X2 6400+    1797    MAX @AM2
64 x2 4600+    1365    My CPU http://valid.canardpc.com/i4v3cy
Sempron 2800+     376     My Last CPU
Athlon XP 2500+    354    popular CPU

Windows 7 Ultimate 32bit -  Patch to see > 3.25GB of RAM
http://wj32.org/wp/2011/02/23/pae-patch-updated-for-windows-7-sp1/

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>cd C:\Windows\system32

C:\Windows\system32>c:\PatchPae\PatchPae.exe  -type kernel -o ntkrnlpx.exe ntkrnlpa.exe
Patched.

C:\Windows\system32>c:\PatchPae\PatchPae.exe   -type loader -o winloadp.exe winload.exe
Patched.

C:\Windows\system32>bcdedit /copy {current} /d "Windows 7 (PAE Patched)"
The entry was successfully copied to {143f0768-6ff5-11e3-a6fe-003018ab79e6}.

C:\Windows\system32> bcdedit /set {143f0768-6ff5-11e3-a6fe-003018ab79e6}  kernel ntkrnlpx.exe
The operation completed successfully.

C:\Windows\system32> bcdedit /set {143f0768-6ff5-11e3-a6fe-003018ab79e6}   path \Windows\system32\winloadp.exe
The operation completed successfully.

C:\Windows\system32> bcdedit /set {143f0768-6ff5-11e3-a6fe-003018ab79e6}   nointegritychecks 1
The operation completed successfully.

C:\Windows\system32> bcdedit /set {bootmgr} default  {143f0768-6ff5-11e3-a6fe-003018ab79e6}
The operation completed successfully.

C:\Windows\system32>bcdedit /set {bootmgr} timeout 5
The operation completed successfully.

C:\Windows\system32>

3) GPSvcGroup
After several Windows 7 updates, my PC didnt boot-up correctly, so I did manual reboot.
When Windows 7 finally boot-up, the following error appears:


Resolution : http://www.youtube.com/watch?v=4m5KEmckWK4
Or Create regulat text file and save as .reg file:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost]
"GPSvcGroup"=hex(7):47,00,50,00,53,00,76,00,63,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost\GPSvcGroup]
"AuthenticationCapabilities"=dword:00003020
"CoInitializeSecurityParam"=dword:00000001

4)Hardware acceleration
Is some situation (not fast videocard) it is better to disable hardware acceleration from Flash and firefox.





5) Windows network settings backup and restore

netsh interface ip dump > c:\ipconfig.txt
# ----------------------------------
# IPv4 Configuration
# ----------------------------------
pushd interface ipv4

reset
set global icmpredirects=enabled taskoffload=enabled
add route prefix=172.16.0.0/12 interface="iftype0_0" nexthop=172.17.99.1 metric=1 publish=Yes
...
add route prefix=0.0.0.0/0 interface="iftype0_0" nexthop=x.x.x.x metric=1 publish=Yes
set interface interface="ethernet_13" forwarding=disabled advertise=disabled metric=50 siteprefixlength=0 nud=disabled routerdiscovery=disabled managedaddress=disabled otherstateful=disabled weakhostsend=disabled weakhostreceive=disabled ignoredefaultroutes=disabled advertisedrouterlifetime=0 advertisedefaultroute=disabled currenthoplimit=0 forcearpndwolpattern=disabled enabledirectedmacwolpattern=disabled
add address name="ethernet_13" address=z.z.z.z mask=255.255.255.224
add address name="vlan97" address=192.168.172.1 mask=255.255.255.0
add address name="FIZIC" address=1.1.1.1 mask=255.0.0.0
add address name="MS Loopback" address=10.10.10.2 mask=255.255.255.255

popd
# End of IPv4 configuration

To re-import it:
netsh -c interface –f c:\ipconfig.txt”




Show Interface configuration

netsh interface ipv4 show config

Only IP Addresses of all LAN adapters

netsh interface ipv4 show address

Show global TCP/IP Parameters

netsh interface ipv4 show global

Disable and enable a Interface

netsh int set int name="ethernet" admin=disabled
netsh int set int name="ethernet" admin=enabled

Show all network  interfaces and its link state

netsh interface ipv4 show interfaces

Print the routing table

netsh interface ipv4 show route

Show all tcp connections

netsh interface ipv4 show tcpconnections

Which Multicast groups are joined
netsh interface ipv4 show joins

Show dynamic portrange for outgoing connections
netsh interface ipv4 show dynamicportrange protocol=tcp

Set a static IP Address (172.16.254.2), Subnet Mask (255.255.255.192) and Gateway (172.16.254.1) on a specific interface (Local Area Connection 2) persistent

netsh interface ipv4 set address name="Local Area Connection 2" static 172.16.254.2 255.255.255.192 172.16.254.1 store=persistent

and temporary up to the next reboot and the parameters at full length. After the reboot the IP Address is empty.
netsh interface ipv4 set address name="Local Area Connection 2" static address=172.16.254.2 mask=255.255.255.192 gateway=172.16.254.1 store=active

Set DNS Servers without a DNS check, the  set dnsservers command supports only one server as argument

netsh interface ipv4 set dnsservers name="Local Area Connection 2"  source=static address="172.16.254.250" validate=no

you have to add a second DNS Server with the add dnsservers directive

netsh interface ipv4 add dnsservers name="Local Area Connection 2" address="172.16.254.251" validate=no index=2

Set IP Address assignment on Interface to DHCP

netsh interface ipv4 set address name="Local Area Connection 2" source=dhcp

and also the DNS Servers

netsh interface ipv4 set dnsservers name="Local Area Connection 2" source=dhcp

Add a route  for subnet 172.16.1.0/24 over interface “Local Area Connection 2” and router 172.16.254.254

netsh interface add route prefix=172.16.1.0/24 interface="Local Area Connection 2" nexthop=172.16.254.254

Note: Since Windows Vista its not possible to set the dns search suffix with netsh, you have to use WMI for this.
To set the DNS search suffix use powershell and wmi.
Define your Domains

1
[string[]]$aDNSSearchSuffixes=@("subdomain.domain1.local","subdomain.domain2.local")
Get the WMI Class to invoke the static method SetDNSSuffixSearchOrder

1
$oNetworkadapterConfiguration=[wmiclass]"Win32_NetworkadapterConfiguration" $oNetworkadapterConfiguration.SetDNSSuffixSearchOrder($aDNSSearchSuffixes)
Or invoke the method directly by calling the Invoke-WmiMethod commandlet

1
Invoke-WmiMethod -Class Win32_NetworkadapterConfiguration -Name SetDNSSuffixSearchOrder -ArgumentList @(@("subdomain.domain1.local","subdomain.domain2.local"),$null)
or

1
Invoke-WmiMethod -Class Win32_NetworkadapterConfiguration -Name SetDNSSuffixSearchOrder -ArgumentList @($aDNSSearchSuffixes,$null)
Note: If the aDNSSearchSuffixes Array contains more then one element a second parameter of $null is requiered otherwise the Invoke-WmiMethod command failed with error: Invoke-WmiMethod : Unable to cast object of type ‘System.String’ to type ‘System.Array’.