whitexoc

Untitled

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