This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userspace:windows7 [2011/11/22 12:48] Thomas_H |
userspace:windows7 [2013/05/06 12:19] phimeca Translate to english. |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Domainjoin Windows 7 (32Bit) | + | ====== Domainjoin Windows 7 ====== |
- | ==== Domainjoin with an opsi-package ==== | + | \\ |
- | This Script will show you how to make a Domainjoin in Windows7 | + | ===== Domainjoin via add-computer command (Opsi Package) ===== |
+ | |||
+ | This Script adds a client to a domain using powershell-tool ' | ||
+ | Dieses Script fügt einen Client zu einer Domäne hinzu. Genutzt wird dazu das Powershell Tool Add-Computer. | ||
+ | |||
+ | You are able to choose the Domain via Product Property | ||
+ | |||
+ | by tobias | ||
+ | |||
+ | === Properties === | ||
+ | Create a OPSI Package with the following product properties: | ||
+ | * dom - Domäne /domain | ||
+ | * user - Benutzer zum hinzufügen in die Domäne / User with add-domain-rights | ||
+ | * password - Passwort des Domänenbenutzers / password of domainadmin | ||
+ | |||
+ | === join.ins === | ||
+ | <code winst> | ||
+ | [INITIAL] | ||
+ | ;Message = " | ||
+ | Message = "Join computer to the domain!" | ||
+ | |||
+ | [Actions] | ||
+ | DefVar $dom$ | ||
+ | DefVar $user$ | ||
+ | DefVar $password$ | ||
+ | set $dom$ = GetProductProperty(" | ||
+ | set $user$ = GetProductProperty(" | ||
+ | set $password$ = GetProductProperty(" | ||
+ | PatchTextFile_Create_powershell %scriptpath%\join.ps1 | ||
+ | ShellBatch_JoinDom | ||
+ | |||
+ | |||
+ | [PatchTextFile_Create_powershell] | ||
+ | AddLine | ||
+ | AddLine | ||
+ | AddLine | ||
+ | SaveToFile " | ||
+ | |||
+ | [ShellBatch_JoinDom] | ||
+ | set-executionpolicy RemoteSigned | ||
+ | powershell c: | ||
+ | del c: | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ===== Domainjoin with an opsi-package ===== | ||
+ | |||
+ | This Script will show you how to make a Domainjoin in Windows7 with a selfmade opsi-product. | ||
I choose this way because not every auto-installed Client must be a member of the Domain and you are more flexible by installing the Clients. | I choose this way because not every auto-installed Client must be a member of the Domain and you are more flexible by installing the Clients. | ||
Line 128: | Line 177: | ||
The build the product with **opsi-makeproducfile** an install it with **opsi-package-manager -i windows7-domainjoin_1.0-1.opsi** | The build the product with **opsi-makeproducfile** an install it with **opsi-package-manager -i windows7-domainjoin_1.0-1.opsi** | ||
- | ---- | + | \\ |
- | + | \\ | |
- | ==== Domainjoin with a script ==== | + | |
- | + | ||
- | Dieses Script fügt einen Client zu einer Domäne hinzu. Genutzt wird dazu das Powershell Tool Add-Computer\\ | + | |
- | This Script adds a client to a domain. Realized by the powershell-tool ' | + | |
- | + | ||
- | by tobias | + | |
- | + | ||
- | == Properties == | + | |
- | * dom - Domäne /domain | + | |
- | * user - Benutzer zum hinzufügen in die Domäne / User with add-domain-rights | + | |
- | * password - Passwort des Domänenbenutzers / password of domainadmin | + | |
- | + | ||
- | === join.ins === | + | |
- | <code winst> | + | |
- | [INITIAL] | + | |
- | Message = " | + | |
- | + | ||
- | [Actions] | + | |
- | DefVar $dom$ | + | |
- | DefVar $user$ | + | |
- | DefVar $password$ | + | |
- | set $dom$ = GetProductProperty(" | + | |
- | set $user$ = GetProductProperty(" | + | |
- | set $password$ = GetProductProperty(" | + | |
- | PatchTextFile_Create_powershell %scriptpath%\join.ps1 | + | |
- | ShellBatch_JoinDom | + | |
- | + | ||
- | + | ||
- | [PatchTextFile_Create_powershell] | + | |
- | AddLine | + | |
- | AddLine | + | |
- | AddLine | + | |
- | SaveToFile "c:\joinpatched.ps1" | + | |
- | + | ||
- | [ShellBatch_JoinDom] | + | |
- | set-executionpolicy RemoteSigned | + | |
- | powershell c: | + | |
- | del c: | + | |
- | </ | + | |
- | ---- | + | ===== Domainjoin with a Samba PDC ===== |
- | ==== Domainjoin with a Samba PDC ==== | + | |
by chewbacca | by chewbacca | ||
Line 177: | Line 186: | ||
tested by: // | tested by: // | ||
- | Edit the / | + | Edit the / |
< | < |