This shows you the differences between two versions of the page.
userspace:windows7 [2011/11/21 08:15] tobias |
userspace:windows7 [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | == Domainjoin Windows 7 (32Bit) == | ||
- | Dieses Script fügt einen Client zu einer Domäne hinzu. Genutzt wird dazu das Powershell Tool Add-Computer | ||
- | |||
- | == Proerties == | ||
- | * dom - Domäne | ||
- | * user - Benutzer zum hinzufügen in die Domäne | ||
- | * password - Passwort des Domänenbenutzers | ||
- | |||
- | === join.ins === | ||
- | < | ||
- | [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 " | ||
- | |||
- | [ShellBatch_JoinDom] | ||
- | set-executionpolicy RemoteSigned | ||
- | powershell c: | ||
- | del c: | ||
- | |||
- | |||
- | </ | ||