Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ora começando os passos que me deu para efectuar:
- 1- Download do ficheiro : ResetWindowsSearchBox.ps1
- 2- Executar com o PowerShell (botao lado direito em cima do ficheiro).
- 2.1- Aparece uma janela que me pergunta: "Pretende abrir este Ficheiro?" --- clico em Abrir
- 2.2 Faz um pequeno....Verificar
- 2.3 Perguntar me de novo se "Deseja permitir que esta aplicação faça alterações no seu dispositivo?" ---- clico em Sim
- 3- Aqui abre-me o PowerShell com uma mensagem de erro a vermelho:
- File C:\Users\silva\Desktop\ResetWindowsSearchBox.ps1 cannot be loaded because running scripts is disabled on this
- system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
- + CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : UnauthorizedAccess
- seguido de:
- "PS C:\WINDOWS\system32>"
- 4- Escrevo o que refere no ponto 5 a frente do PS C:\WINDOWS\system32> "Get-ExecutionPolicy"
- 4.1- aqui da me o código de Restrito em baixo "PS C:\WINDOWS\system32>"
- 5- Escreco o que refere no ponto 6 a frente do PS C:\WINDOWS\system32> "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted"
- 5.1- depois aparece-me a seguinte mensagem:
- Execution Policy Change
- The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
- you to the security risks described in the about_Execution_Policies help topic at
- https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
- [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):
- 5.2- Seleciono o Y e enter.
- 5.3 e aparece-me de seguida o "PS C:\WINDOWS\system32>"
- 6- Fecho a janela e refaço os passos que me diz no Ponto 7 (do guiao que me deu)
- 7- abro o PowerShell e aparece-me a seguinte mensagem:
- Try the new cross-platform PowerShell https://aka.ms/pscore6
- Security warning
- Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
- computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
- message. Do you want to run C:\Users\silva\Desktop\ResetWindowsSearchBox.ps1?
- [D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"):
- 8- Carrego como me disse em R e enter.
- 8.1- Aparece-me depois a seguinte mensagem:
- Verifying that the script is running elevated
- Resetting Windows Search Box
- Done...
- Press any key to continue...
- 8.2- Carrego numa tecla qualquer (no meu caso Espaço) e aparece-me em baixo : "PS C:\WINDOWS\system32>"
- 9- de seguida escrevo o que se no ponto 8 ( do guiao que me deu) "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Restricted"
- 9.1- Aparece-me depois a seguinte mensagem:
- Execution Policy Change
- The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
- you to the security risks described in the about_Execution_Policies help topic at
- https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
- [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):
- 9.2- carrego em Y e enter e aparece-me em baixo : "PS C:\WINDOWS\system32>"
- 10- e por ultimo fecho a janela do PowerShell e reinicio o PC
- Mas nada acontece ... Ficando todo na mesma.
Add Comment
Please, Sign In to add comment