Home
Syndication
Sign In
UMnieDziala.pl
·
copyprofile dla windows 2000
NIestety ale narzędzia copyprofile.exe nie ma dla systemu windows 2000. W związkui z tym używałem skryptu:
rd /q /s "C:\Documents and Settings\risasi\Local Settings\Temp"
rd /q /s "C:\Documents and Settings\risasi\My Documents"
xcopy "C:\Documents and Settings\risasi" "C:\Documents and Settings\mandatory" /s /E /C /Y /I /H
xcopy "C:\Documents and Settings\risasi" "C:\Documents and Settings\Default User" /s /E /C /Y /I /H
attrib "c:\Documents and Settings\mandatory\ntuser.pol" -h -s
del "c:\Documents and Settings\mandatory\ntuser.pol"
attrib "c:\Documents and Settings\Default User\ntuser.pol" -h -s
del "c:\Documents and Settings\Default User\ntuser.pol"
echo y| cacls "C:\Documents and Settings\mandatory" /t /e /g everyone:r
echo y| cacls "C:\Documents and Settings\Default User" /t /e /g everyone:r
attrib -H "C:\Documents and Settings\mandatory\NTUSER.DAT"
ren "C:\Documents and Settings\mandatory\NTUSER.DAT" "NTUSER.MAN"
attrib +H "C:\Documents and Settings\mandatory\NTUSER.MAN"
rd /q /s "C:\Documents and Settings\risasi"
Gdzie risasi jest użytkownikiem z którego są tworzone profile mandatoryjny i Default User.
O ile z profilem Default User nie ma żadnego problemu, to profil madatroyjny się wykrzacza - powód - brak dostępu do kluczy rejestru.
Aby to zmienić trzeba zmienić w użytkowniku risasi ACL do kluczu rejestru HKCU. Jeśli to zrobimy, poolisy będą aplikowane dla danego profilu, ale niestety nie dla Explorera (tzn. takie polisy jak skrypty logon\logoff zabronienie regedita, cpl; ale już nie active desktop czy modyfikacje desktopu/menu start).
Aby polisy były w pełni aplikowane dla danego profilu, musimy jeszcze zmienić acl dla następujących kluczy rejestru:
HKCU\Software\policies
HKCU\Software\Microsoft\Windows\Current Version\Group Policy
Do zmiany acl można użyć subinacl.exe z W2kResKit. Odpowiedni skrypcik wygląda następująco:
subinacl /subkeyreg HKEY_CURRENT_USER /replace=PJWSTK\risasi=Everyone
subinacl /subkeyreg HKEY_CURRENT_USER\Software\Policies /replace=PJWSTK\risasi=Everyone
subinacl /subkeyreg "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy" /replace=PJWSTK\risasi=Everyone
Unattended
|
Windows
Thursday, September 08, 2005 2:27:42 PM (Central European Standard Time, UTC+01:00)
Comments [0]
|
Trackback
All content © 2010, Krzysztof Pietrzak
On this page
copyprofile dla windows 2000
This site
BSS (8)
IPv6 (3)
Linux (4)
Longhorn (5)
Monitoring (2)
MTS2005 (2)
PowerShell (8)
RIS (9)
Studia (1)
Unattended (9)
Windows (35)
Calendar
<
July 2010
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
Archives
Full Archives By Category
June, 2009 (1)
April, 2009 (1)
March, 2009 (2)
January, 2009 (1)
October, 2008 (1)
September, 2008 (1)
July, 2008 (1)
February, 2008 (2)
September, 2007 (2)
August, 2007 (2)
June, 2007 (3)
May, 2007 (1)
April, 2007 (1)
February, 2007 (1)
January, 2007 (2)
October, 2006 (4)
July, 2006 (1)
June, 2006 (7)
May, 2006 (6)
April, 2006 (1)
March, 2006 (2)
February, 2006 (5)
January, 2006 (2)
December, 2005 (6)
November, 2005 (2)
October, 2005 (5)
September, 2005 (10)
August, 2005 (10)
July, 2005 (3)
Sitemap
BSS
IPv6
Linux
Longhorn
Monitoring
MTS2005
PowerShell
RIS
Studia
Unattended
Windows
Blogroll
OPML
Tokyo by night
blog WiTa
W-Files
blog n€x¤Ra
.:fotoblog:.
blog Kfaza
\\archon\blog$
blog archona
Czasowstrzymywacz
Blog Fookyego
Jog Pstryka
Jog Pstryka
Mac OS X vs. Active Directory
techniczny blog kfaza
Maps