Oreilly Domain Settings

Logon Script:

net use G: /delete
net use I: /delete
net use U: /delete
net use O: /delete
net use G: \\SRVWCN\OREILLY /PERSISTENT:yes
net use U: \\SRVWCN\%USERNAME%$ /PERSISTENT:yes
net use O: \\SRVWCN\netapps /PERSISTENT:yes

REM Connect local driver
NET USE W: \\%computername%\c$ groupe /user:%computername%\administrateur
NET USE W: \\%computername%\c$ groupe /user:%computername%\administrator

REM Copy star menu
rd w:\strategie\ /s /q
md c:\strategie\
xcopy %logonserver%\netlogon\XP\*.* w:\strategie /c /s /y

REM cleaning temporary folder
del w:\winnt\system32\spool\printers\*.* /q /F
del w:\windows\system32\spool\printers\*.* /q /F

REM Disconnect local driver
net use w: /delete

Rem Bloquer le démarrage automatique de Skype
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "skype" /f

Rem Update registry for JDE settings
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet settings" /v MaxConnectionsPerServer /t REG_DWORD /d 10 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet settings" /v MaxConnectionsPer1_0Server /t REG_DWORD /d 10 /f
reg add "HKLM\SOFTWARE\Classes\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32" /ve /t REG_SZ /d "C:\WINDOWS\system32\shdocvw.dll" /f

 

Add User:

1. all.bat:

cmd /C addusers %1
cmd /C dossier %1
cmd /C pathscrp %1
cmd /C profils %1

2.addusers

IF '%1'=='' goto affich

net user %1 hello1 /ADD

goto fin

:affich

@echo ERROR syntaxe command addusers USERNAME

:fin

3.dossier

md d:\USERS\%1
  cd d:\USERS
  cacls.exe %1 /g Administrators:f %1:c < d:\ZAK\COMPTES\yesfile
  cd d:\USERS\%1 
md Models
md Personal
md Favorites
  attrib +h Favorites
md appdata
  attrib +h appdata

cd d:\zak\comptes
rmtshare \\%COMPUTERNAME%\%1$=d:\users\%1 /unlimited /grant Administrators:F /grant users:C

4.pathscrp

IF '%1'=='' goto affich

net user %1 /SCRIPTPATH:scriptOR.CMD

goto fin

:affich

@echo ERREUR syntaxe de la commande scriptpth NomUtilisateur

:fin

5.profils

IF '%1'=='' goto affich

md d:\PROFILS\%1
    cd d:\PROFILS
    cacls.exe %1 /g Administrators:f %1:c < d:\ZAK\COMPTES\yesfile

net user %1 /PROFILEPATH:\\%COMPUTERNAME%\PROFILS$\%1
cd d:\zak\comptes

goto fin

:affich

@echo ERREUR syntaxe de la commande PROFILS NomUtilisateur

:fin

 

Domain Policy:

在163网盘里.

获取域用户的samid:

dsquery user OU="OR Users",OU=OREILLY,DC=OREILLY,DC=lan -limit 0 | dsget user -samid

你可能感兴趣的:(Class,div,target,blank,Documents)