Deploy client - Winexe

Antworten
Warrang
Beiträge: 3
Registriert: 23 Apr 2013, 08:57

Deploy client - Winexe

Beitrag von Warrang »

Hi everybody!

I didn't found any community for ask my question about Winexe..So I try it here!
The opsi-deploy-client-agent script use it,and I would like to make my own script to deploy the opsi client.But I have a problem with the winexe command:

Code: Alles auswählen

winexe -U Admin%pass//$ip "cmd.exe /K net use O: \\ip-share\opsi-client /persistent:no /u:user password'"
Is it right?Because it say "Network name not found" ... When I try it on the same computer in the cmd it works.Can someone help me on winexe? Thank a lot!
Zuletzt geändert von Warrang am 26 Apr 2013, 12:03, insgesamt 1-mal geändert.
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1940
Registriert: 28 Mai 2008, 10:53

Re: Deploy client - Winexe

Beitrag von ueluekmen »

Hi,

can you post your complete script?
Warrang hat geschrieben:"Network name not found"
And is this the exact Error-Message?


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Warrang
Beiträge: 3
Registriert: 23 Apr 2013, 08:57

Re: Deploy client - Winexe

Beitrag von Warrang »

I tried it with another way :

I did :

Code: Alles auswählen

 winexe -U Admin%pass //ip "cmd.exe"
And :

Code: Alles auswählen

net use O: \\ip\share\ /persistent:no /u:user pass
And my error is :
The system error 1312 has occured

A specified logon session does not exist. It may already be over.
Warrang
Beiträge: 3
Registriert: 23 Apr 2013, 08:57

Re: Deploy client - Winexe

Beitrag von Warrang »

I resolv it, I needed to add the domain before the username :

Code: Alles auswählen

net use O: \\ip\share\ /persistent:no /u:DOMAIN.FR\user pass
Antworten