Difference between revisions of "Windows"
From Blue-IT.org Wiki
(→Gain admin access on cmd) |
(→Complete reset of network stack) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | = Windows 7 = | + | = Windows 10 troubleshooting = |
+ | == Delete old files after update from Windows 7 == | ||
+ | If you don't like to get back to Windows 7 (not recommended), this should at least give you 20-25 GB more free space on the hard drive. | ||
+ | |||
+ | # Type "Cleanup" in the search field of the Startmenu. | ||
+ | # Open it with an administrative account | ||
+ | # Choose "Previously Windows Installation(s)" | ||
+ | # Press OK | ||
+ | |||
+ | = Windows HowTo's = | ||
+ | == Create a hierarchical folder structure == | ||
+ | mkdir folder1\folder2\folder3 anotherhierarchie\folder1\folder2\folder3 | ||
+ | |||
+ | == Tree == | ||
+ | * Source: https://www.webnots.com/how-to-download-tree-view-of-directories-in-windows-10/ | ||
+ | The "unix-like" tree command has landedt almost finally, but not as featrue rich in windows. | ||
+ | |||
+ | === Usage === | ||
+ | ==== In Explorer ==== | ||
+ | # Open Explorer | ||
+ | # Go to path | ||
+ | # IN the addressline paste: CMD /c "Tree /F /A > tree.txt" | ||
+ | |||
+ | ==== In cmd or powershell ==== | ||
+ | # open cmd.exe or powershell | ||
+ | # type "tree" without parameter "/c" | ||
+ | # us syntax as shown next | ||
+ | # export to file (/A) or copy and paste | ||
+ | |||
+ | ==== Syntax ==== | ||
+ | |||
+ | cmd /c TREE [Drive:][Path] [/F] [/A] | ||
+ | |||
+ | cmd /c -> command prompt | ||
+ | TREE -> like unix tree | ||
+ | /F -> all files in every folder Leave this and only folders will be listed | ||
+ | /A -> export to file | ||
+ | |||
+ | = Windows 7 troubleshooting = | ||
Trouble, trouble, trouble ... | Trouble, trouble, trouble ... | ||
− | But some people want to have trouble, so I will help them, and get some money for it! | + | But some people want to have trouble - and not user linux ;-) - , so I will help them, and get some money for it! |
== Gain admin access on cmd == | == Gain admin access on cmd == | ||
+ | |||
+ | The so called "elevated" command prompt can be gained in a few ways: | ||
1. open cmd as admin | 1. open cmd as admin | ||
Line 13: | Line 53: | ||
Now the admin is in the login window | Now the admin is in the login window | ||
− | 2. open cmd and add yourself to the admin group (DANGEROUS!!!) | + | 2. Enter '''cmd.exe''' in startmenu and open it with rightclick "run as admin" |
+ | |||
+ | 3. open cmd and add yourself to the admin group (DANGEROUS!!!) | ||
net localgroup administratoren %username% /add | net localgroup administratoren %username% /add | ||
− | + | == Networking == | |
+ | * https://4sysops.com/archives/if-wifi-is-not-working | ||
+ | |||
+ | === Complete reset of network stack === | ||
+ | |||
+ | https://stackoverflow.com/a/64057835/1319799 | ||
+ | |||
+ | Also works up to Windows 11 (which shows how old this crap is): | ||
− | + | wsl --shutdown | |
+ | netsh winsock reset | ||
+ | netsh int ip reset all | ||
+ | netsh winhttp reset proxy | ||
+ | ipconfig /flushdns | ||
+ | netsh winsock reset | ||
+ | shutdown /r | ||
− | + | === Reset winsock only === | |
+ | Sometimes the windows network stack (winsock) ist broken. | ||
+ | To solve the problem: open a cmd window (you need an "elevated" command prompt: right click as admin!). | ||
− | |||
− | |||
netsh winsock reset | netsh winsock reset | ||
+ | #netsh int ip reset catalog | ||
+ | #netsh int ip reset reset.log | ||
+ | |||
netsh int ipv4 reset | netsh int ipv4 reset | ||
Reboot | Reboot | ||
+ | Same with Fix-Link | ||
+ | * http://support.microsoft.com/kb/299357?wa=wsignin1.0 | ||
− | + | === Repair missing system services === | |
− | + | This will reinstall important system services: | |
+ | sfc /scannow | ||
[[Category: Windows]] | [[Category: Windows]] |
Latest revision as of 10:19, 31 January 2024
Windows 10 troubleshooting
Delete old files after update from Windows 7
If you don't like to get back to Windows 7 (not recommended), this should at least give you 20-25 GB more free space on the hard drive.
- Type "Cleanup" in the search field of the Startmenu.
- Open it with an administrative account
- Choose "Previously Windows Installation(s)"
- Press OK
Windows HowTo's
Create a hierarchical folder structure
mkdir folder1\folder2\folder3 anotherhierarchie\folder1\folder2\folder3
Tree
The "unix-like" tree command has landedt almost finally, but not as featrue rich in windows.
Usage
In Explorer
- Open Explorer
- Go to path
- IN the addressline paste: CMD /c "Tree /F /A > tree.txt"
In cmd or powershell
- open cmd.exe or powershell
- type "tree" without parameter "/c"
- us syntax as shown next
- export to file (/A) or copy and paste
Syntax
cmd /c TREE [Drive:][Path] [/F] [/A] cmd /c -> command prompt TREE -> like unix tree /F -> all files in every folder Leave this and only folders will be listed /A -> export to file
Windows 7 troubleshooting
Trouble, trouble, trouble ...
But some people want to have trouble - and not user linux ;-) - , so I will help them, and get some money for it!
Gain admin access on cmd
The so called "elevated" command prompt can be gained in a few ways:
1. open cmd as admin
net user administrator /active:yes
Reboot
Now the admin is in the login window
2. Enter cmd.exe in startmenu and open it with rightclick "run as admin"
3. open cmd and add yourself to the admin group (DANGEROUS!!!)
net localgroup administratoren %username% /add
Networking
Complete reset of network stack
https://stackoverflow.com/a/64057835/1319799
Also works up to Windows 11 (which shows how old this crap is):
wsl --shutdown netsh winsock reset netsh int ip reset all netsh winhttp reset proxy ipconfig /flushdns netsh winsock reset shutdown /r
Reset winsock only
Sometimes the windows network stack (winsock) ist broken. To solve the problem: open a cmd window (you need an "elevated" command prompt: right click as admin!).
netsh winsock reset #netsh int ip reset catalog #netsh int ip reset reset.log netsh int ipv4 reset
Reboot
Same with Fix-Link
Repair missing system services
This will reinstall important system services:
sfc /scannow