https://lizardsystems.com/articles/112-windows-run-commands/
https://serverspace.io/support/help/windows-run-commands-cheat-sheet/
Alterar senha
net user usuario senha
Criar usuário
net user adm Art.dot-2023 /add
Desbloquear usuário local
net user usuario /active:yes
Copiar todos os arquivos de uma pasta para outra
xcopy /s C:\users\nome_usuario\Documents\*.* c:\users\nome_usuario\Downloads\
Encerrar Checkpoint VPN
sc queryex epwd
taskkill /f /pid [PID]
Iniciar serviço de bluetooth
sc config bthserv start=auto
sc start bthserv
Atualizar hora
time HH:MM
Trocar a senha de um usuário local por agendamento
schtasks /create /tn "AlterarSenhaAdmin" /tr "cmd /c net user administrador Art.dot-2025@@" /sc once /st 11:00 /sd 13/04/2025 /rl highest
Descriptografar bitlocker
manage-bde -off c:
Trocar o hostname
Rename-Computer -NewName "hostname"
Incluir texto em um arquivo
echo 0.0.0.0 www.site.com >> C:\Windows\System32\drivers\etc\hosts
Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "0.0.0.0 www.site.com"
type C:\Windows\System32\drivers\etc\hosts
Get-Content C:\Windows\System32\drivers\etc\hosts
Office aparece outra versão da qual foi instalada. Esse comando serve para remover a licença.
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dstatus
cscript ospp.vbs /unpkey:XXXXX
Instalar certificado via PowerShell
Import-PfxCertificate -FilePath "C:\Certificados\u.pfx" -CertStoreLocation "Cert:\CurrentUser\My" -Password (ConvertTo-SecureString "senha" -AsPlainText -Force) -Exportable
Desinstalar algum programa
C:\Program Files (x86)\L5Networks\unins000.exe" /silent
Instalar telnet
dism /online /Enable-Feature /FeatureName:TelnetClient
Baixar e instalar 7zip
Invoke-WebRequest -Uri "https://www.7-zip.org/a/7z2501-x64.exe" -OutFile "$env:TEMP\7zip.exe"; Start-Process "$env:TEMP\7zip.exe" -ArgumentList "/S" -Wait; Remove-Item "$env:TEMP\7zip.exe"