La recherche a retourné 17 résultats

par Albin
28 avr. 2022 - 09:46
Forum : WAPT Server
Sujet : [RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell
Réponses : 26
Vues : 6114

Re: Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell

Bonjour Denis,

en effet, le run_powershell_from-file nous le lançons en def install()

Cordialement ,

Albin
par Albin
27 avr. 2022 - 17:11
Forum : WAPT Server
Sujet : [RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell
Réponses : 26
Vues : 6114

Re: Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell

Nous venons d'exécuter chaque commande du script avec run_powershell voici le code: run_powershell('$OldServerName = "xxxxxxxx"') run_powershell('$NewServerName = "yyyyyyyy"') run_powershell('$CurrentPrinters = Get-WmiObject Win32_Printer | Where-Object {$_.Network -eq "true...
par Albin
27 avr. 2022 - 16:27
Forum : WAPT Server
Sujet : [RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell
Réponses : 26
Vues : 6114

Re: Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell

Bonjour Gaetan,

En effet, en dehors de WAPT le script est bien fonctionnel.

Cordialement
Albin
par Albin
27 avr. 2022 - 14:36
Forum : WAPT Server
Sujet : [RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell
Réponses : 26
Vues : 6114

Re: Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell

J'ai aussi activé l'exécution des scripts PowerShell sur le poste concerné
par Albin
27 avr. 2022 - 14:28
Forum : WAPT Server
Sujet : [RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell
Réponses : 26
Vues : 6114

Re: Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell

Le problème que je rencontre c'est que lorsque je déploie le paquet contenant le script run_powershell_from_file("testwapt.ps1") sur une machine je n'ai pas d'erreur au niveau de la console Wapt mais ca ne fonctionne pas. J'aimerais s'il vous plait savoir quel peut être la cause du problèm...
par Albin
27 avr. 2022 - 12:13
Forum : WAPT Server
Sujet : [RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell
Réponses : 26
Vues : 6114

Re: Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell

Bonjour Denis,

J'ai testé la commande mais ça ne fonctionne toujours pas.

Cordialement,

Albin
par Albin
26 avr. 2022 - 16:36
Forum : WAPT Server
Sujet : [RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell
Réponses : 26
Vues : 6114

[RESOLU] Problème d'exécution d'un script PowerShell en utilisant la fonction run PowerShell

Bonjour, Nous avons fait un script powershell qui permet de modifier la queue d'impression d'une imprimante. voici le script en question run(r'powershell.exe -executionpolicy bypass ./test.ps1') test.ps1: contient le script powershell voici le script powershell associé $OldServerName = "xxxxxxx...