Windows 10 Deployment

comfreak
Beiträge: 34
Registriert: 23 Mär 2012, 16:37

Re: Windows 10 Deployment

Beitrag von comfreak »

Grundsätztlich funktioniert die Winexe nämlich auch mit Windows 10.
Kann ich mit meiner Version leider nicht bestätigen... :?
rene-fuchs
Beiträge: 16
Registriert: 31 Jan 2017, 10:10

Re: Windows 10 Deployment

Beitrag von rene-fuchs »

Ich habe halt das Problem mit den ganzen 1079 Fall Update Win 10 Clients.
Da bekomme selbst bei einem winexe connect auf dem Server ein NT_STATUS_CONNECTION_RESET

winexe -V
Version 4.0.0alpha11-GIT-UNKNOWN

apt-cache policy winexe
winexe:
Installiert: 1.00.1-1
Installationskandidat: 1.00.1-1
Versionstabelle:
*** 1.00.1-1 100
100 /var/lib/dpkg/status


Win7 1709
winexe --interactive=1 -W DOMAIN -U USER //PC "cmd"
ERROR: Failed to open connection - NT_STATUS_CONNECTION_RESET

winexe --interactive=1 -d1 -W DOMAIN -U USER //PC "cmd"
winexe version 1.00
This program may be freely redistributed under the terms of the GNU GPLv3
ERROR: Cannot connect to svcctl pipe. NT_STATUS_CONNECTION_RESET.
ERROR: Failed to open connection - NT_STATUS_CONNECTION_RESET



Win7 1703
root@opsi:/etc/samba# winexe --interactive=1 -W DOMAIN -U USER //PC "cmd"
Password for [DOMAIN\USER]:

das ganze liegt wohl eher am ganz tollen 1709er update und der winexe und nicht am opsi selber :)
comfreak
Beiträge: 34
Registriert: 23 Mär 2012, 16:37

Re: Windows 10 Deployment

Beitrag von comfreak »

Jo ich habe genau das gleiche Problem - auch mit der 1709. Habe zwar schon mehrere Sachen gelesen, dass man eine veraltete SMB Version unter Windows starten soll, aber halt alles nichts geholfen.

Für mich heisst es nun abwarten, ob da die winexe Entwickler was neues bringen...
rene-fuchs
Beiträge: 16
Registriert: 31 Jan 2017, 10:10

Re: Windows 10 Deployment

Beitrag von rene-fuchs »

btw. was geht um den agent zu installieren ist
in der service_setup.cmd das @echo off am start zu entfernen und dann die service_setup.cmd ohne admin rechte zu starten

cp /var/lib/opsi/depot/opsi-client-agent/service_setup.cmd cp /var/lib/opsi/depot/opsi-client-agent/service_setup2.cmd
vi service_setup2.cmd
delete @echo off

und via smb share unter dem Windows die service_setup2.cmd ohne admin starten, doof aber geht
comfreak
Beiträge: 34
Registriert: 23 Mär 2012, 16:37

Re: Windows 10 Deployment

Beitrag von comfreak »

Klar - hatte mir die Batch files bereits so angepasst, das ich sie per GPO aufrufen kann, siehe letzte Seite. Aber danke ;)

Es wäre nur schöner den Agent vom Server zu verteilen, damit ich die Batch files bei jedem Update nicht anpassen muss ;)
rbroda
Beiträge: 23
Registriert: 24 Jul 2017, 15:26

Re: Windows 10 Deployment

Beitrag von rbroda »

Gibt es mittlerweile eine Lösung, um den Agent zentral zu Verteilen?
comfreak
Beiträge: 34
Registriert: 23 Mär 2012, 16:37

Re: Windows 10 Deployment

Beitrag von comfreak »

Wäre auch immer noch dran interessiert!
rbroda
Beiträge: 23
Registriert: 24 Jul 2017, 15:26

Re: Windows 10 Deployment

Beitrag von rbroda »

Auch wenn ich vom Windows 10 !709 Rechner die service_setup.cmd ausführe, bekomme ich die Installation nicht hin...

Ich bekomme die Fehlermeldung:
"Error: Copy of file are failed - Did you run this script with elevated rights 'as administrator' - aborting.
Reading to continue?"

Und wenn ich die Datei mit "Als Administrator" ausführe, poppt kurz das CMD Fenster auf und schließt sich direkt und die Installation läuft nicht...

Das kann doch nicht sein, dass man den Agent nicht verteilen kann...

Gibt es keine Lösung? Workaround?
Kann man irgendwie ein MSI Paket von dem client-agent erstellen und diese dann verteilen? das kann doch nicht so trivial sein..
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Windows 10 Deployment

Beitrag von n.wenselowski »

rbroda hat geschrieben:Auch wenn ich vom Windows 10 !709 Rechner die service_setup.cmd ausführe, bekomme ich die Installation nicht hin...

Ich bekomme die Fehlermeldung:
"Error: Copy of file are failed - Did you run this script with elevated rights 'as administrator' - aborting.
Reading to continue?"

Und wenn ich die Datei mit "Als Administrator" ausführe, poppt kurz das CMD Fenster auf und schließt sich direkt und die Installation läuft nicht...

Das kann doch nicht sein, dass man den Agent nicht verteilen kann...
Schon mal ins Log geschaut? Ist zu finden unter c:\opsi.org\log\opsi-client-agent.log und sollte mehr Infos bringen. Dass sich das Fenster direkt schließt lässt auf einen Bug hindeuten.
Welche Version des opsi-client-agent kommt zum Einsatz?
rbroda hat geschrieben:Kann man irgendwie ein MSI Paket von dem client-agent erstellen und diese dann verteilen? das kann doch nicht so trivial sein..
Ist auch eine Möglichkeit.
Was letztlich der beste Weg ist hängt oftmals von Gegebenheiten einer Umgebung ab. Wir beraten dazu auch!


Gruß

Niko

Code: Alles auswählen

import OPSI
rbroda
Beiträge: 23
Registriert: 24 Jul 2017, 15:26

Re: Windows 10 Deployment

Beitrag von rbroda »

Ubuntu 16.04.4 LTS
OPSI Version: 4.0.7.5.22 (2017/04/26)
OPSI-Client-Agent-Version: 4.0.7.24.-3
Winexe Version: 4.0.0alphall-GIT-UNKNOWN (1.00.1-1)

Hier das Logfile (ab da, wo ungefähr der Error beginnt):

Code: Alles auswählen

[5] [Feb 28 12:44:53:825]   Execution of: Files_del_loginblocker_log 
[5] [Feb 28 12:44:53:825]   
[7] [Feb 28 12:44:53:827]     del -fc c:\opsi.org\log\opsi_loginblocker.txt
[8] [Feb 28 12:44:53:827]     Remaining before Options: c:\opsi.org\log\opsi_loginblocker.txt
[8] [Feb 28 12:44:53:827]     Expressionstr before Options: -fc
[8] [Feb 28 12:44:53:827]     Option -f detected: 
[8] [Feb 28 12:44:53:827]     Option -c detected: 
[8] [Feb 28 12:44:53:827]     Remaining: 
[8] [Feb 28 12:44:53:827]     Expressionstr: c:\opsi.org\log\opsi_loginblocker.txt
[8] [Feb 28 12:44:53:827]     we try to delete: c:\opsi.org\log\opsi_loginblocker.txt
[8] [Feb 28 12:44:53:827]     we try to delete: c:\opsi.org\log\opsi_loginblocker.txt
[6] [Feb 28 12:44:53:827]     Notice: File or Directory c:\opsi.org\log\opsi_loginblocker.txt does not exist, nothing deleted
[7] [Feb 28 12:44:53:827]     del -fc c:\opsi.org\log\opsiclientd_timeout.txt
[8] [Feb 28 12:44:53:827]     Remaining before Options: c:\opsi.org\log\opsiclientd_timeout.txt
[8] [Feb 28 12:44:53:827]     Expressionstr before Options: -fc
[8] [Feb 28 12:44:53:827]     Option -f detected: 
[8] [Feb 28 12:44:53:828]     Option -c detected: 
[8] [Feb 28 12:44:53:828]     Remaining: 
[8] [Feb 28 12:44:53:828]     Expressionstr: c:\opsi.org\log\opsiclientd_timeout.txt
[8] [Feb 28 12:44:53:828]     we try to delete: c:\opsi.org\log\opsiclientd_timeout.txt
[8] [Feb 28 12:44:53:828]     we try to delete: c:\opsi.org\log\opsiclientd_timeout.txt
[6] [Feb 28 12:44:53:828]     Notice: File or Directory c:\opsi.org\log\opsiclientd_timeout.txt does not exist, nothing deleted
[6] [Feb 28 12:44:53:828]   If
[7] [Feb 28 12:44:53:828]   $INST_Modus$ = "INSTALL"   <<< result true
[6] [Feb 28 12:44:53:828]   ($INST_Modus$ = "INSTALL")   <<< result true
[6] [Feb 28 12:44:53:828] Then
[5] [Feb 28 12:44:53:830]   comment: clean all up
[6] [Feb 28 12:44:53:830]   If
[6] [Feb 28 12:44:53:830]     Starting query if file exist ...
[6] [Feb 28 12:44:53:831]       "C:\Program Files (x86)\opsi.org\opsi-client-agent\": 
[6] [Feb 28 12:44:53:831]     FileExists($INST_BaseDir$+"\")   <<< result false
[6] [Feb 28 12:44:53:831]   Then
[6] [Feb 28 12:44:53:831]   EndIf
[6] [Feb 28 12:44:53:831] EndIf
[6] [Feb 28 12:44:53:833] Marked error number 10
[5] [Feb 28 12:44:53:844] Execution of: Files_copy_winst 
[5] [Feb 28 12:44:53:844] 
[7] [Feb 28 12:44:53:847]   copy -sc "c:\opsi.org\tmp\opsi\opsi-winst\*.*" "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst"
[8] [Feb 28 12:44:53:847]   source: c:\opsi.org\tmp\opsi\opsi-winst\*.* - target: 
[3] [Feb 28 12:44:53:886]   Error:  Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst does not exist and cannot be created
[7] [Feb 28 12:44:53:886]   copy -sVc "c:\opsi.org\tmp\opsi\utilities\*.*" "C:\Program Files (x86)\opsi.org\opsi-client-agent\utilities\"
[8] [Feb 28 12:44:53:886]   source: c:\opsi.org\tmp\opsi\utilities\*.* - target: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst
[3] [Feb 28 12:44:53:925]   Error:  Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\utilities\ does not exist and cannot be created
[7] [Feb 28 12:44:53:925]   copy -sc "c:\opsi.org\tmp\opsi\images\*.*" "C:\Program Files (x86)\opsi.org\opsi-client-agent\images\"
[8] [Feb 28 12:44:53:925]   source: c:\opsi.org\tmp\opsi\images\*.* - target: C:\Program Files (x86)\opsi.org\opsi-client-agent\utilities\
[3] [Feb 28 12:44:53:966]   Error:  Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\images\ does not exist and cannot be created
[5] [Feb 28 12:44:53:978] Execution of: Files_copy_uninst 
[5] [Feb 28 12:44:53:978] 
[7] [Feb 28 12:44:53:979]   copy -sVc "c:\opsi.org\tmp\opsi\uninst\*.*" "C:\Program Files (x86)\opsi.org\opsi-client-agent\uninst\"
[8] [Feb 28 12:44:53:979]   source: c:\opsi.org\tmp\opsi\uninst\*.* - target: 
[3] [Feb 28 12:44:54:018]   Error:  Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\uninst\ does not exist and cannot be created
[5] [Feb 28 12:44:54:033] Execution of: Files_copy_custom 
[5] [Feb 28 12:44:54:033] 
[7] [Feb 28 12:44:54:039]   copy -sc "c:\opsi.org\tmp\opsi\custom\winstskin\*.*" "C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\winstskin"
[8] [Feb 28 12:44:54:039]   source: c:\opsi.org\tmp\opsi\custom\winstskin\*.* - target: 
[3] [Feb 28 12:44:54:079]   Error:  Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\winstskin does not exist and cannot be created
[7] [Feb 28 12:44:54:079]   copy -c "c:\opsi.org\tmp\opsi\custom\config.ini" "C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\"
[8] [Feb 28 12:44:54:079]   source: c:\opsi.org\tmp\opsi\custom\config.ini - target: C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\winstskin
[3] [Feb 28 12:44:54:120]   Error:  Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\ does not exist and cannot be created
[7] [Feb 28 12:44:54:120]   copy -sc "c:\opsi.org\tmp\opsi\custom\opsiclientkioskskin\*.*" "C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\opsiclientkioskskin"
[8] [Feb 28 12:44:54:120]   source: c:\opsi.org\tmp\opsi\custom\opsiclientkioskskin\*.* - target: C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\
[3] [Feb 28 12:44:54:158]   Error:  Directory C:\Program Files (x86)\opsi.org\opsi-client-agent\custom\opsiclientkioskskin does not exist and cannot be created
[6] [Feb 28 12:44:54:158] If
[8] [Feb 28 12:44:54:158]   (TotalErrors: 17 - ErrorMark: 10) > 0 -> -1
[6] [Feb 28 12:44:54:158]   errorsOccuredSinceMark > 0   <<< result true
[6] [Feb 28 12:44:54:158] Then
[5] [Feb 28 12:44:54:161]   comment: copy failed - let us abort
[3] [Feb 28 12:44:54:164]   Error: Copy of files are failed -exiting
[6] [Feb 28 12:44:54:164]   If
[6] [Feb 28 12:44:54:164]     $INST_SubModus$="CREATE_CLIENT"   <<< result true
[6] [Feb 28 12:44:54:164]   Then
[6] [Feb 28 12:44:55:071]   EndIf
[2] [Feb 28 12:44:55:076]   Error level set to fatal
[6] [Feb 28 12:44:55:077]   Process aborted
[6] [Feb 28 12:44:55:077] 
[6] [Feb 28 12:44:55:077] ~~~~~~~ End Sub   ~~~~~~~  sub_copy_files
[6] [Feb 28 12:44:55:077] 
[6] [Feb 28 12:44:55:077] Process aborted
[1] [Feb 28 12:44:55:077] ___________________
[1] [Feb 28 12:44:55:077] script finished: failed
[1] [Feb 28 12:44:55:077] 18 errors
[1] [Feb 28 12:44:55:077] 6 warnings
[1] [Feb 28 12:44:55:077] 
[1] [Feb 28 12:44:55:077] 
[8] [Feb 28 12:44:55:077] Temp cmd files deleted, next: free script 
[8] [Feb 28 12:44:55:077] End of CreateAndProcessScript
[1] [Feb 28 12:44:55:078] ============  opsi-script Version 4.12.0.11 is regularly exiting. Time 2018-02-28  12:44:55 .
V
Antworten