Seite 1 von 1

Deploy client - Winexe

Verfasst: 23 Apr 2013, 09:11
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!

Re: Deploy client - Winexe

Verfasst: 23 Apr 2013, 11:05
von ueluekmen
Hi,

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

Re: Deploy client - Winexe

Verfasst: 26 Apr 2013, 12:03
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.

Re: Deploy client - Winexe

Verfasst: 26 Apr 2013, 16:30
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