Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

PS 3.0 executionpolicy restricted und trotzdem ausführbar?

$
0
0

Hallo...


Ich habe folgendes "Problem" oder verstehe es nur nicht...

die execution policy ist:

PS C:\WINDOWS\system32> get-executionpolicy -list

                                                      Scope                                             ExecutionPolicy
                                                      -----                                             ---------------
                                              MachinePolicy                                                   Undefined
                                                 UserPolicy                                                   Undefined
                                                    Process                                                   Undefined
                                                CurrentUser                                                   Undefined
                                               LocalMachine                                                  Restricted

und wenn ich ein script von der Powershell aus starten will, wird es nicht zugelassen - alles richtig.

wenn ich aber das Skript rechtsklicke und "mit Powershell ausführen" wähle wird das skript ausgeführt...

Das Skript liefert dann auf die anfrage "get-executionpolicy -list" folgendes zurück:

        Scope                                             ExecutionPolicy
        -----                                             ---------------
MachinePolicy                                                   Undefined
   UserPolicy                                                   Undefined
      Process                                                      Bypass
  CurrentUser                                                   Undefined
 LocalMachine                                                  Restricted

warum ist denn nun das Skript ausführbar? sollten nicht alle skripte vor der ausführung blockiert werden?

(habe Win8 pro 64bit; Powershell 3.0)


Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>