Windos Aktivierungspaket .bat

mensch90
Beiträge: 130
Registriert: 27 Jul 2013, 16:52

Re: Windos Aktivierungspaket .bat

Beitrag 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.
Benutzeravatar
Thomas_H
Beiträge: 525
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

Re: Windos Aktivierungspaket .bat

Beitrag 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
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild
mensch90
Beiträge: 130
Registriert: 27 Jul 2013, 16:52

Re: Windos Aktivierungspaket .bat

Beitrag von mensch90 »

Hopla, wenn man nicht so von anderen Wiki-Syntaxen verwöhnt wäre...ist nun online
PepeChiller
Beiträge: 32
Registriert: 23 Okt 2013, 15:49

Re: Windos Aktivierungspaket .bat

Beitrag von PepeChiller »

Also mit ccript hats auch nicht funktioniert, nur wieder der DNS Error siehe Bild
Bild
PepeChiller
Beiträge: 32
Registriert: 23 Okt 2013, 15:49

Re: Windos Aktivierungspaket .bat

Beitrag 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?
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Windos Aktivierungspaket .bat

Beitrag 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
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
PepeChiller
Beiträge: 32
Registriert: 23 Okt 2013, 15:49

Re: Windos Aktivierungspaket .bat

Beitrag 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?
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Windos Aktivierungspaket .bat

Beitrag 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
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
mensch90
Beiträge: 130
Registriert: 27 Jul 2013, 16:52

Re: Windos Aktivierungspaket .bat

Beitrag 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 ;)
PepeChiller
Beiträge: 32
Registriert: 23 Okt 2013, 15:49

Re: Windos Aktivierungspaket .bat

Beitrag 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....
Antworten