- Limpar o código
- Eliminar comentarios desnecessários
- Quebrar linhas longas (maiores que o limite de colunas)
- Eliminar rotas desnecessarias
- Eliminar arquivos desnecessarios
- Ajustar o .gitignore
- Provisionar a estrutura de diretórios (automatizar)
This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:
- This PC doesn't currently meet Windows 11 system requirements.
- TPM 2.0 must be supported and enabled on this PC.
- The processor isn't currently supported for Windows 11.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://stackoverflow.com/a/43317244 | |
| $path = ".\aws-ec2-key.pem" | |
| # Reset to remove explict permissions | |
| icacls.exe $path /reset | |
| # Give current user explicit read-permission | |
| icacls.exe $path /GRANT:R "$($env:USERNAME):(R)" | |
| # Disable inheritance and remove inherited permissions | |
| icacls.exe $path /inheritance:r |