💻CMD/Powershell Interesting Commands
Senhas
Trocar senha
Set-ADAccountPassword {USER} -Reset -NewPassword (Read-Host -AsSecureString -Prompt 'New Password') -Verbose
Trocar senha no próximo logon
Set-ADUser -ChangePasswordAtLogon $true -Identity {USER} -Verbose
Misc
Contar linhas em um arquivo
type arquivo.txt | find /c /v ""
Last updated