Question
Ajoût Imprimante
- Lafafmentvotre
- Auteur du sujet
- Hors Ligne
- Nouveau membre
-
Réduire
Plus d'informations
- Messages : 5
- Remerciements reçus 0
il y a 15 ans 1 mois #9315
par Lafafmentvotre
Réponse de Lafafmentvotre sur le sujet Re:Ajoût Imprimante
Hello
J'ai dupliqué la méthode Put() comme demandé et voici l'erreur :
[code:1]The term 'Result.ReturnValue' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At Z:\Pro\AutoIt Development\Seven\Printers_Install\PowerShell\PCL5.ps1:29 char:19
+ Result.ReturnValue <<<<
+ CategoryInfo : ObjectNotFound: (Result.ReturnValue:«»String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Erreur :
Exception calling \"Put\" with \"0\" argument(s): \"Échec générique \"
At Z:\Pro\AutoIt Development\Seven\Printers_Install\PowerShell\PCL5.ps1:51 char:31
+ $ResultPrinter=$NewPrinter.Put <<<< ()
+ CategoryInfo : NotSpecified: (:«») [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Exception calling \"Put\" with \"0\" argument(s): \"Échec générique \"
At Z:\Pro\AutoIt Development\Seven\Printers_Install\PowerShell\PCL5.ps1:52 char:31
+ $ResultPrinter=$NewPrinter.Put <<<< ()
+ CategoryInfo : NotSpecified: (:«») [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException[/code:1]
Le lien sur lequel j'avais trouvé les informations se trouve ici :
www.powershell-scripting.com/index.php?o...;id=5504&catid=5
Pas évident tout cela, je galère
J'ai dupliqué la méthode Put() comme demandé et voici l'erreur :
[code:1]The term 'Result.ReturnValue' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At Z:\Pro\AutoIt Development\Seven\Printers_Install\PowerShell\PCL5.ps1:29 char:19
+ Result.ReturnValue <<<<
+ CategoryInfo : ObjectNotFound: (Result.ReturnValue:«»String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Erreur :
Exception calling \"Put\" with \"0\" argument(s): \"Échec générique \"
At Z:\Pro\AutoIt Development\Seven\Printers_Install\PowerShell\PCL5.ps1:51 char:31
+ $ResultPrinter=$NewPrinter.Put <<<< ()
+ CategoryInfo : NotSpecified: (:«») [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Exception calling \"Put\" with \"0\" argument(s): \"Échec générique \"
At Z:\Pro\AutoIt Development\Seven\Printers_Install\PowerShell\PCL5.ps1:52 char:31
+ $ResultPrinter=$NewPrinter.Put <<<< ()
+ CategoryInfo : NotSpecified: (:«») [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException[/code:1]
Le lien sur lequel j'avais trouvé les informations se trouve ici :
www.powershell-scripting.com/index.php?o...;id=5504&catid=5
Pas évident tout cela, je galère
Connexion ou Créer un compte pour participer à la conversation.
- Lafafmentvotre
- Auteur du sujet
- Hors Ligne
- Nouveau membre
-
Réduire
Plus d'informations
- Messages : 5
- Remerciements reçus 0
il y a 15 ans 1 mois #9367
par Lafafmentvotre
Réponse de Lafafmentvotre sur le sujet Re:Ajoût Imprimante
Bonjour
Personne pour m'aider ?
Merci par avance
Personne pour m'aider ?
Merci par avance
Connexion ou Créer un compte pour participer à la conversation.
- Arthur
- Hors Ligne
- Membre elite
-
Réduire
Plus d'informations
- Messages : 226
- Remerciements reçus 0
il y a 15 ans 1 mois #9374
par Arthur
Réponse de Arthur sur le sujet Re:Ajoût Imprimante
Salut,
Alors pour ta première erreur:
\"The term 'Result.ReturnValue' is not recognized...\"
test juste ça pour ton switch :
\"Switch ($ResultDrv)\"
Ensuite pour l'erreur sur la méthode put() il semble qu'il faut préciser un driver déjà installé sur la machine enfin c'est ce que j'ai compris dans ce post: www.computerhope.com/forum/index.php?topic=116450.0
Je n'ai pas encore eu a installé une imprimante en tcp alors je ne peux pas vraiment t'aider plus.
Alors pour ta première erreur:
\"The term 'Result.ReturnValue' is not recognized...\"
test juste ça pour ton switch :
\"Switch ($ResultDrv)\"
Ensuite pour l'erreur sur la méthode put() il semble qu'il faut préciser un driver déjà installé sur la machine enfin c'est ce que j'ai compris dans ce post: www.computerhope.com/forum/index.php?topic=116450.0
Je n'ai pas encore eu a installé une imprimante en tcp alors je ne peux pas vraiment t'aider plus.
Connexion ou Créer un compte pour participer à la conversation.
Temps de génération de la page : 0.039 secondes
- Vous êtes ici :
-
Accueil
-
forum
-
PowerShell
-
Entraide pour les débutants
- Ajoût Imprimante