Past ExamsRwanda ICT preparation

Topics / Operating Systems

Running a locally written script, inventory.ps1, fails with “running scripts is disabled on this system”. Which command allows local scripts while still requiring downloaded ones to be signed, for the current user only?

L'exécution d'un script écrit localement, inventory.ps1, échoue avec « l'exécution de scripts est désactivée sur ce système ». Quelle commande autorise les scripts locaux tout en exigeant une signature pour les scripts téléchargés, pour l'utilisateur courant uniquement ?

Answers
ASet-ExecutionPolicy Unrestricted -Scope LocalMachine -ForceSet-ExecutionPolicy Unrestricted -Scope LocalMachine -Force
BRemove-Item inventory.ps1Remove-Item inventory.ps1
CGet-ExecutionPolicy -ListGet-ExecutionPolicy -List
DSet-ExecutionPolicy RemoteSigned -Scope CurrentUserSet-ExecutionPolicy RemoteSigned -Scope CurrentUser
The answer and explanation are in the full bank.

This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.

Unlock for 5,000 RWF

MIFOTRA exam practicealigned to Practice set: Linux and CMD Commands·3 marks·Hard

More Operating Systems questions