117 lines
No EOL
4.6 KiB
Markdown
117 lines
No EOL
4.6 KiB
Markdown
# Windows
|
||
|
||
- For removing feedback hub
|
||
|
||
[https://www.youtube.com/watch?v=W5L4oxS6HpE](https://www.youtube.com/watch?v=W5L4oxS6HpE)
|
||
|
||
- Making windows flexible
|
||
|
||
[https://www.itechtics.com/easily-enable-group-policy-editor-gpedit-msc-in-windows-10-home-edition/](https://www.itechtics.com/easily-enable-group-policy-editor-gpedit-msc-in-windows-10-home-edition/) : to enable gpedit to control aspects without making changes in registry directly
|
||
|
||
[add_gpedit_msc_by_drudger_d3kh6vm.zip](../../_resources/add_gpedit_msc_by_drudger_d3kh6vm.zip)
|
||
|
||
Also use this to install gpedit in windows 10 home
|
||
|
||
also following bat file can be executed:
|
||
|
||
[gpedit-enabler.bat](../../_resources/gpedit-enabler.bat)
|
||
|
||
- Disabling compatibility telemetry
|
||
|
||
[https://www.youtube.com/watch?v=59dhIfCWPyA](https://www.youtube.com/watch?v=59dhIfCWPyA)
|
||
|
||
Command to open task scheduler on Run: `taskschd.msc`.
|
||
|
||
- Windows on virtual machine
|
||
|
||
[https://www.youtube.com/watch?v=JT8EXoobjSc](https://www.youtube.com/watch?v=JT8EXoobjSc)
|
||
|
||
For resizing : [https://www.ghacks.net/2022/06/11/how-to-change-the-windows-screen-size-in-virtualbox/](https://www.ghacks.net/2022/06/11/how-to-change-the-windows-screen-size-in-virtualbox/)
|
||
|
||
- Commands
|
||
|
||
For disk cleanup: cleanmgr
|
||
For group policy editor: gpedit.msc
|
||
|
||
- To enable windows sandbox in windows 19 home
|
||
|
||
[https://www.tenforums.com/tutorials/131437-enable-windows-sandbox-feature-windows-10-home-edition.html](https://www.tenforums.com/tutorials/131437-enable-windows-sandbox-feature-windows-10-home-edition.html)
|
||
|
||
- Disable startups
|
||
|
||
[Autoruns.zip](../../_resources/Autoruns.zip)
|
||
|
||
- copy folders with excluding subfolders
|
||
|
||
`robocopy SOURCE DEST /mir /xd node_modules`
|
||
|
||
- for loop
|
||
|
||
For the folder name and drive, you can use:
|
||
|
||
```
|
||
echo %~dp0
|
||
|
||
```
|
||
|
||
You can get a lot more information using different modifiers:
|
||
|
||
```
|
||
%~I - expands %I removing any surrounding quotes (")
|
||
%~fI - expands %I to a fully qualified path name
|
||
%~dI - expands %I to a drive letter only
|
||
%~pI - expands %I to a path only
|
||
%~nI - expands %I to a file name only
|
||
%~xI - expands %I to a file extension only
|
||
%~sI - expanded path contains short names only
|
||
%~aI - expands %I to file attributes of file
|
||
%~tI - expands %I to date/time of file
|
||
%~zI - expands %I to size of file
|
||
|
||
The modifiers can be combined to get compound results:
|
||
%~dpI - expands %I to a drive letter and path only
|
||
%~nxI - expands %I to a file name and extension only
|
||
%~fsI - expands %I to a full path name with short names only
|
||
```
|
||
|
||
`for %I in (softwares/*) do dir %I`
|
||
|
||
This lists all the files (and only the files) in the current directory and its subdirectories recursively:
|
||
|
||
```
|
||
for /r %i in (*) do echo %i
|
||
|
||
```
|
||
|
||
Also if you run that command in a batch file you need to double the % signs.
|
||
|
||
```
|
||
for /r %%i in (*) do echo %%i
|
||
```
|
||
|
||
[https://stackoverflow.com/questions/138497/iterate-all-files-in-a-directory-using-a-for-loop](https://stackoverflow.com/questions/138497/iterate-all-files-in-a-directory-using-a-for-loop)
|
||
|
||
|
||
[https://superuser.com/questions/494959/how-to-delete-a-file-ending-in-a-dot-in-windows-7](https://superuser.com/questions/494959/how-to-delete-a-file-ending-in-a-dot-in-windows-7)
|
||
|
||
- Windows 11 cons
|
||
|
||
[https://www.youtube.com/watch?v=XsVbyGbSkds](https://www.youtube.com/watch?v=XsVbyGbSkds)
|
||
|
||
- Disabling enabling keys
|
||
|
||
Hi General_Townski, we are happy to advise you. Please follow the steps below.
|
||
|
||
1. Tap the Windows icon in the bottom left corner and type “cmd” in the search bar.
|
||
2. Select “Run as administrator” under “Command Prompt.”
|
||
3. Click “Yes” to confirm that you’re okay with the Command Prompt app making changes to your computer.
|
||
4. Once the Command Prompt window opens, type the following command line, and then hit Enter: sc config i8042prt start= disabled
|
||
5. Close the Command Prompt and ensure restart your laptop.
|
||
|
||
If you ever want to re-enable the keyboard in the future, you just need to run the Command Prompt app and enter the following command: sc config i8042prt start= auto
|
||
|
||
- Disable fast startup
|
||
1. Navigate to the Control Panel and select 'Power Options. '
|
||
2. Choose 'Choose what the power buttons do. '
|
||
3. Click on 'Change settings that are currently unavailable. '
|
||
4. Under 'Shutdown settings,' uncheck the 'Turn on fast startup' box. |