Seite 2 von 3

Re: Windos Aktivierungspaket .bat

Verfasst: 07 Jun 2014, 13:44
von mensch90
Weil ich
a) solche Automatismen in der Firmen-Policy nicht möchte, da ich so nicht die volle Kontrolle habe - dort wo ich das Paket abschieße weiß ich direkt ob alles O.K ist und muss keine Zeit abwarten, bis der Client sich bequemt den Server zu konnektieren. Bei Misserfolg erhält der Support bei allen Opsi-Scripten direkt eine Email mit Details.
b) unser Netzwerk sehr heterogen ist und Windows nur eine Systemoption darstellt - dafür will ich nicht im DNS rumpfuschen.

Re: Windos Aktivierungspaket .bat

Verfasst: 10 Jun 2014, 15:20
von Thomas_H
Moinsens...
mensch90 hat geschrieben:Wollte ich gestern, habe auch den Indexeintrag hinzugefügt. Habe jedoch keine Rechte die Unterseite anzulegen....
Jupp... man konnte die Seite nicht erstellen. Ich habe es geprüft, es war ein Schreibfehler: [[userpace...]] statt [[userspace...]]
Nun kannst Du die Seite erstellen.

Gruß

Thomas_H

Re: Windos Aktivierungspaket .bat

Verfasst: 10 Jun 2014, 23:10
von mensch90
Hopla, wenn man nicht so von anderen Wiki-Syntaxen verwöhnt wäre...ist nun online

Re: Windos Aktivierungspaket .bat

Verfasst: 12 Jun 2014, 10:43
von PepeChiller
Also mit ccript hats auch nicht funktioniert, nur wieder der DNS Error siehe Bild
Bild

Re: Windos Aktivierungspaket .bat

Verfasst: 12 Jun 2014, 13:21
von PepeChiller
Ich habs jetzt mal mit Registry Key setzen probiert das will aber nicht so funktionieren

[Actions]
Registry_win_kms

[Registry_win_kms]

openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform]
set "KeyManagementServiceName"=REG_SZ:"kms.serveradresse"

openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform]
set "KeyManagementServicePort"=REG_SZ:"1688"

das sollte doch funktionieren?

Re: Windos Aktivierungspaket .bat

Verfasst: 12 Jun 2014, 15:11
von SisterOfMercy
PepeChiller hat geschrieben:openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform]
set "KeyManagementServiceName"=REG_SZ:"kms.serveradresse"

openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform]
set "KeyManagementServicePort"=REG_SZ:"1688"
No, that doesn't work, it should be like this:

Code: Alles auswählen

openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform]
set "KeyManagementServiceName"="kms.serveradresse"
REG_SZ is a string value

Re: Windos Aktivierungspaket .bat

Verfasst: 12 Jun 2014, 16:15
von PepeChiller

Code: Alles auswählen

[1] [Jun 12 16:11:09:569] [win7activation] ============ Version 4.11.3.11 WIN32 script "o:\win7activation\install.ins"
[1] [Jun 12 16:11:09:569] [win7activation]              start: 2014-06-12  16:11:09
[1] [Jun 12 16:11:09:569] [win7activation]              installing product: win7activation_1.0-1.0
[1] [Jun 12 16:11:09:569] [win7activation]              on client named    "computerb.a.f.s.d."
[1] [Jun 12 16:11:09:569] [win7activation]              loggedin user    ""
[1] [Jun 12 16:11:09:569] [win7activation]              winst running as    "SYSTEM"
[1] [Jun 12 16:11:09:569] [win7activation]              winst running with admin privileges
[1] [Jun 12 16:11:09:569] [win7activation]              winst running in standard script mode
[1] [Jun 12 16:11:09:569] [win7activation] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Jun 12 16:11:09:569] [win7activation] system infos:
[1] [Jun 12 16:11:09:572] [win7activation] 12-34-56-78  -  PC hardware address
[1] [Jun 12 16:11:09:572] [win7activation] COMPUTER.a.d.f.g.de  -  IP name
[1] [Jun 12 16:11:09:572] [win7activation] 192.168.2.1  -  IP address
[1] [Jun 12 16:11:09:572] [win7activation] DEU  -  System default locale
[1] [Jun 12 16:11:09:572] [win7activation] MS Windowds 6.1 64 Bit
[1] [Jun 12 16:11:09:572] [win7activation] opsi service version : 4
[1] [Jun 12 16:11:09:572] [win7activation]
[6] [Jun 12 16:11:09:573] [win7activation] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Jun 12 16:11:09:573] [win7activation] Key closed
[5] [Jun 12 16:11:09:670] [win7activation]
[5] [Jun 12 16:11:09:670] [win7activation] Execution of registry_win_kms
[6] [Jun 12 16:11:09:671] [win7activation]   Registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform]  opened
[6] [Jun 12 16:11:09:671] [win7activation]           Variable "KeyManagementServiceName"  is keeping its value "kms.adresse"
[6] [Jun 12 16:11:09:671] [win7activation]           Key closed
[6] [Jun 12 16:11:09:671] [win7activation]           Registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform]  opened
[6] [Jun 12 16:11:09:671] [win7activation]           Variable "KeyManagementServicePort"  is keeping its value "1688"
[6] [Jun 12 16:11:09:671] [win7activation]           Key closed
[1] [Jun 12 16:11:09:671] [win7activation] ___________________
[1] [Jun 12 16:11:09:671] [win7activation] script finished
[1] [Jun 12 16:11:09:671] [win7activation] 0 errors
[1] [Jun 12 16:11:09:671] [win7activation] 0 warnings
didnt work. any idea?

Re: Windos Aktivierungspaket .bat

Verfasst: 12 Jun 2014, 17:06
von SisterOfMercy
PepeChiller hat geschrieben:didnt work. any idea?
Well, it did work, the OPSI part, did.

Try the slmgr.vbs stuff from the command line on that client. You probably will get an error that way, which might help in solving this problem. Maybe the hostname resolution is a bit broken, then try the IP address of the KMS server.
Have you installed the correct KMS-key on the client? Look here for the list: http://technet.microsoft.com/en-us/libr ... 12867.aspx

Code: Alles auswählen

"%SystemRoot%\system32\cscript.exe" "%SystemRoot%\system32\slmgr.vbs" /ipk KMSKEY
"%SystemRoot%\system32\cscript.exe" "%SystemRoot%\system32\slmgr.vbs" /skms <Name[:Port] | : port> [Activation ID]
"%SystemRoot%\system32\cscript.exe" "%SystemRoot%\system32\slmgr.vbs" /ato	
You might also want to look at this: http://support.microsoft.com/kb/929826

Re: Windos Aktivierungspaket .bat

Verfasst: 12 Jun 2014, 20:09
von mensch90
My script ist working like a charm since 6 months, so your kms-server isn't installed properly.
What does a "telnet myip 1688" bring up? Port open?

Did u inserted the general key for enterprise and not for a professional client?

http://technet.microsoft.com/de-de/libr ... 12867.aspx

Edit: sorry my poster above even mentioned the key ;)

Re: Windos Aktivierungspaket .bat

Verfasst: 13 Jun 2014, 09:00
von PepeChiller
Jo Enterprise Key war richtig gesetzt.
Den Namen durch die IP-Adresse zu ersetzten hat auch nichts gebracht.
Aber wenn die standartmäßige Aktivierung nicht klappt, sollte doch wenigstens das hard coden in die Registry funktionieren oder? Tuts aber nicht....