| Winget | |
|---|---|
| winget search nome | Search package |
| winget install pacote | Install package |
| winget upgrade --all | Upgrade all packages |
| winget list | List installed packages |
| winget uninstall pacote | Uninstall package |
| winget export -o packages.json | Export package list |
| winget import -i packages.json | Import package list |
Windows
Useful Windows commands: winget for package management and shortcuts to open administrative system tools.
| System | |
|---|---|
| winver | Windows version |
| msinfo32 | System information |
| control | Open Control Panel |
| devmgmt.msc | Device Manager |
| diskmgmt.msc | Disk Management |
| compmgmt.msc | Computer Management |
| services.msc | Services |
| eventvwr.msc | Event Viewer |
| taskschd.msc | Task Scheduler |
| lusrmgr.msc | Local Users and Groups (Pro) |
| gpedit.msc | Group Policy Editor (Pro) |
| perfmon | Performance Monitor |
| resmon | Resource Monitor |
| cmd | Command Prompt |
| powershell | PowerShell |
| wt | Windows Terminal |
| Setup | |
|---|---|
| Shift+F10 | Open CMD during setup |
| OOBE\\BYPASSNRO | Enable local account option (run after Shift+F10) |
| Security | |
|---|---|
| net use * /delete | Remove all mapped network shares |
| cmdkey /list | List stored credentials |
| cmdkey /delete:[target] | Delete credential for target |
| rundll32.exe keymgr.dll,KRShowKeyMgr | Open stored credentials UI (legacy) |
| klist purge | Clear Kerberos tickets |
| PowerShell File Management | |
|---|---|
| Get-ChildItem | List files and folders |
| Get-ChildItem -Recurse | List files recursively |
| Get-ChildItem -Filter "*.txt" | List files with filter |
| Get-ChildItem | Where-Object {$_.Length -gt 1MB} | Filter files by size |
| Copy-Item file.txt dest.txt | Copy file |
| Copy-Item -Path source -Destination dest -Recurse | Copy folder recursively |
| Move-Item file.txt newfolder\ | Move file |
| Rename-Item old.txt new.txt | Rename file |
| Remove-Item file.txt | Delete file |
| Remove-Item folder -Recurse -Force | Delete folder and contents |
| New-Item -ItemType File file.txt | Create new file |
| New-Item -ItemType Directory folder | Create new folder |
| Test-Path file.txt | Check if file exists |
| Get-Content file.txt | Read file content |
| Set-Content file.txt 'text' | Write to file (overwrite) |
| Add-Content file.txt 'text' | Append to file |
| Select-String -Path *.txt -Pattern 'word' | Search text in files |
| Get-ChildItem -Recurse | Select-String 'word' | Search in all files recursively |
| Get-FileHash file.txt | Get file hash (SHA256) |
| Get-FileHash file.txt -Algorithm MD5 | Get file hash (MD5) |
| (Get-Item file.txt).Length | Get file size |
| Get-Item file.txt | Select-Object Name | Length | LastWriteTime | Get file properties |
| Compress-Archive -Path folder -DestinationPath backup.zip | Create ZIP archive |
| Expand-Archive -Path backup.zip -DestinationPath folder | Extract ZIP archive |
| Get-Acl file.txt | Get file permissions |
| Set-Acl -Path file.txt -AclObject $acl | Set file permissions |
| Get-ChildItem | Sort-Object Length -Descending | Sort files by size |
| Get-ChildItem | Where-Object {$_.LastWriteTime -gt (Get-Date).AddDays(-7)} | Find files modified in last 7 days |