{"id":478,"date":"2024-02-02T10:31:59","date_gmt":"2024-02-02T08:31:59","guid":{"rendered":"https:\/\/vpn.univ-fcomte.fr\/?p=478"},"modified":"2025-12-09T09:33:51","modified_gmt":"2025-12-09T07:33:51","slug":"execution-du-script-desactive","status":"publish","type":"post","link":"https:\/\/vpn.univ-fcomte.fr\/?p=478","title":{"rendered":"Ex\u00e9cution du script \u00ab\u00a0d\u00e9sactiv\u00e9\u00a0\u00bb"},"content":{"rendered":"\n<p>Si sous PowerShell de Windows 10 ou 11 vous avez l&rsquo;erreur \u00ab\u00a0<strong>Ex\u00e9cution de scripts est d\u00e9sactiv\u00e9e<\/strong>\u00ab\u00a0, deux m\u00e9thodes pour arriver \u00e0 ex\u00e9cuter le script<\/p>\n\n\n\n<p>** Vous pouvez soit ex\u00e9cuter le script avec la commande suivante<\/p>\n\n\n\n<p><code>Powershell.exe -ExecutionPolicy Bypass \".\\creerVPNUFC.ps1\"<\/code><\/p>\n\n\n\n<p>** ou vous pouvez ex\u00e9cuter la ligne suivantes (toujours sous PowerShell)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>set-executionpolicy unrestricted<\/code><\/code><\/pre>\n\n\n\n<p>Valider par \u00ab\u00a0O\u00a0\u00bb et ensuite le script pourra s&rsquo;ex\u00e9cuter normalement.<\/p>\n\n\n\n<p>La cause premi\u00e8re de l&rsquo;erreur provient du script qui est non-sign\u00e9 par l&rsquo;infrastructure de PKI du domaine (ou autre). Une PKI de domaine universitaire corrigera le probl\u00e8me (un nouveau projet ?!).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Si sous PowerShell de Windows 10 ou 11 vous avez l&rsquo;erreur \u00ab\u00a0Ex\u00e9cution de scripts est d\u00e9sactiv\u00e9e\u00ab\u00a0, deux m\u00e9thodes pour arriver \u00e0 ex\u00e9cuter le script ** Vous pouvez soit ex\u00e9cuter le script avec la commande suivante Powershell.exe -ExecutionPolicy Bypass \u00ab\u00a0.\\creerVPNUFC.ps1&Prime; ** ou vous pouvez ex\u00e9cuter la ligne suivantes (toujours sous PowerShell) Valider par \u00ab\u00a0O\u00a0\u00bb et ensuite [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[189,102,60],"class_list":["post-478","post","type-post","status-publish","format-standard","hentry","category-problemes-utilisateurs","tag-powershell","tag-script","tag-windows"],"_links":{"self":[{"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=\/wp\/v2\/posts\/478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=478"}],"version-history":[{"count":4,"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=\/wp\/v2\/posts\/478\/revisions"}],"predecessor-version":[{"id":523,"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=\/wp\/v2\/posts\/478\/revisions\/523"}],"wp:attachment":[{"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpn.univ-fcomte.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}