Friday, November 23, 2007

Scriptler

http://calnetad.berkeley.edu/documentation/scripts/

Domain join

Const JOIN_DOMAIN = 1
Const ACCT_CREATE = 2
Const ACCT_DELETE = 4
Const WIN9X_UPGRADE = 16
Const DOMAIN_JOIN_IF_JOINED = 32
Const JOIN_UNSECURE = 64
Const MACHINE_PASSWORD_PASSED = 128
Const DEFERRED_SPN_SET = 256
Const INSTALL_INVOCATION = 262144

strDomain = “DomainName
strPassword = “123456
strUser = “administrator

Set objNetwork = CreateObject(”WScript.Network”)
strComputer = objNetwork.ComputerName

Set objComputer = GetObject(”winmgmts:{impersonationLevel=Impersonate}!\\” & _
strComputer & “\root\cimv2:Win32_ComputerSystem.Name=’” & _
strComputer & “‘”)

ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, _
strPassword, strDomain & “\” & strUser, NULL, _
JOIN_DOMAIN + ACCT_CREATE)


-------------------------------------

Const JOIN_DOMAIN = 1
Const ACCT_CREATE = 2
Const ACCT_DELETE = 4
Const WIN9X_UPGRADE = 16
Const DOMAIN_JOIN_IF_JOINED = 32
Const JOIN_UNSECURE = 64
Const MACHINE_PASSWORD_PASSED = 128
Const DEFERRED_SPN_SET = 256
Const INSTALL_INVOCATION = 262144

strDomain = "SISTEMDOKTORU"
strPassword = "123456"
strUser = "administrator"

Set objNetwork = CreateObject("WScript.Network")
strComputer = objNetwork.ComputerName

Set objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\" & _
strComputer & "\root\cimv2:Win32_ComputerSystem.Name='" & _
strComputer & "'")

ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, _
strPassword, strDomain & "\" & strUser, NULL, _
JOIN_DOMAIN + ACCT_CREATE)


--------------------------------
local admin şifresi. : domainde linklenen ou dakilerin startup larına koy.

strComputer = "127.0.0.1"
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "yenişifre"
objUser.SetInfo

yukarıda ki metni txt dosyası içerisine atıp txt uzantısını vbs olarak değiştirip Domain ortamına uygulamanız yeterlidir.

veya aşağıdaki komutu bir bat yapıp GPO ile dağıtmanız .

net user administrator 'yenisifre'


----------------------------------------

http://www.anilerduran.com/index.php/logon-scripts/

http://ls.berkeley.edu/mail/micronet/2006/1190.html

http://www.windowsnetworking.com/articles_tutorials/Logon-Scripts-Pure-Mixed-Active-Directory-Environments.html

http://www.computerperformance.co.uk/Logon/Logon_HomeDir.htm

http://technet2.microsoft.com/windowsserver/en/library/8a268d3a-2aa0-4469-8cd2-8f28d6a630801033.mspx?mfr=true

http://www.computerperformance.co.uk/Logon/Logon_HomeDirAdv.htm Home logon

No comments: