Mombu the Microsoft Forum

Go Back   Mombu the Microsoft Forum > Microsoft > HKEY_CURRENT_USER and NTUSER.DAT
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 25th May 06:45
maurit1««Š×b±Ë¬²*²hœ®‹(~×(
External User
 
Posts: 1
Default HKEY_CURRENT_USER and NTUSER.DAT



Hello Everyone. Hope someone can chat about somethings i am trying to do
using registry keys and ntuser.dat file.

first issuse:

i need to apply restrictions through GPO to a specific local user in windows
xp. I am doing the following:

1. Changes to local GPO using gpedit.msc;
2. Saving Hkey_current_user registry to NTuser.dat file;
3. deploy the dat file to user profile i want the restrictions.

'til here everything is fine. I have the desired result.

This works fine in windows XP but In a specific computer is not working
properly, not all the restrictions are applied to the user only a few. So
when i look to the hkey_current_ser registry, all the settings are ok, so all
the restrictions should be applied not just some of them.

Is there a way to discover why this is happening?

Second Issue:

The steps above are applied to windows vista? I tried but it failed.
The NTUSER.DAT file in windows vista has the same functions that in windows
XP?

I writing this here because NTUSER files are registry. HOpe someone can help
me.

Thanks in advance.
  Reply With Quote


 


2 25th May 06:45
jon wallace
External User
 
Posts: 1
Default HKEY_CURRENT_USER and NTUSER.DAT



Hi Maurit,

I believe I understand your post / questions correctly so want to highlight
a few things for you. Firstly the NTUSER.DAT file within a users profile is
actually their HKEY_CURRENT_USER hive - I think you know this already
because of the copying exercise. This file is mapped when the user logs
onto a machine and becomes HKCU - see
http://www.insidetheregistry.com/reg...se.asp?keyid=2

One of the potential issues in doing what you are doing (saving
HKEY_CURRENT_USER to NTUSER.DAT file and then copying it) is that the
HKEY_CURRENT_USER you are saving will contain personal settings specific for
the user you are copying it from, everything from application settings to
security settings and so fourth. Unless you then go back and remove all of
those settings you can potentially cause yourself a little pain and trouble
down the line. Why is it you use this method - are you trying to deploy
various 'default' settings to users?

I may be mistaken but it appears you are using this method to apply policy
settings, basically baking the policy settings into the NTUSER.DAT file
(HKEY_CURRENT_USER) and then copying this to your users to enforce the
restrictions - is this the case? Is there any reason you can't actually
create a group policy on the domain and have that apply to your machines?

It's also worth nothing that there are many policy settings that can be
applied at a machine level (HKEY_LOCAL_MACHINE) and also a user level
(HKEY_CURRENT_USER) and it is possible that although you are setting a
policy registry value in HKEY_CURRENT_USER it's being overridden by another
policy set somewhere else.

Obviously I (we) would like to help you achieve what you want here so if you
can try to explain what your trying to do and why you are doing your
registry save (and how) and deploying the NTUSER.DAT file it would be a
really good start.

With Best Regards,
Jon

www.insidetheregistry.com

---
  Reply With Quote


 


3 25th May 06:45
maurit1««Š×b±Ë¬²*²hœ®‹(~×(
External User
 
Posts: 1
Default Reply to Jon


Hi Jon. I really aprreciate your post. So, let's go:

1. I do know that HKEY_CURRENT_USER is the NTUSER.DAT file.

2. I really know about the issues you mentioned. My goal here is to create a
profile that the user is not capable of doing anything. This profile will be
used to aplly some internal exams and nothing more.

3. Yes. I want to enforce the policies i created. Unfortunately, i will
apply this profile to computers that are not part of a domain. So, this was
the only way i found to apply to a specific local user. I can not affect
other local users in the computer.

So basicly i have to apply a restricted profile to a computer that is not a
part of domain and i can not affect other local users. I can say tha
everything is working pretty good the way i created this.

After creating all the local policies through gpedit.msc. I save the
HKEY_CURRENT_SER to NTUSER.DAT. I use this command line: reg save
HKEY_CURRENT_USER c:\NTUSER.DAT.

I create a local user account and put it in admin group. (if the user is not
part of this group, the policies are not applied. I really dont understand
this one)

Then i discover the SID from the new user and create a registry in
HKLM\...\ProfileList. Doing this i am saying to windows that the profile of
this user already exists and windows will not try to create a new one.

Finally i create the profile directory and put the NTUSER.DAT i created
inside of it. I still rename this file from NTUSER.DAT to NTUSER.MAN. It is a
mandatory profile.

When i logon to this specific user, my policies are applied. that's what i
want!

I tested this in 6 computers. In only one just a part of the policies were
applied. You can be right, it can be machine policy. I will take a look on
this.

So far i can say that it is successful in windows XP. I need to test in more
computers...

Now, i am trying to do the same thing in windows Vista. When i try to logon,
it comes back to welcome screen. I just discovered that this occur because
UAC is ON. When i turn UAC off, everything works fine. Any idea?

Hope i answered your questions and sorry about my bad english. I also hope
you can help me to improve this methodology i created, with your experience.

Thanks again.
Best regards.
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Access internet, Access security, Access install and configure, Excel setup, Desktop operating system, Server operating systems, Desktop products and technologies, Frontpage add-ins, Frontpage general questions, Frontpage server extensions, Frontpage extensions unix, Office intranets, Office general questions, Office setup, Outlook install and configure, Outlook interop, Outlook team folders, Powerpoint general questions, Powerpoint for mac, Microsoft project general, Word setup networking, Scripting remote, Scripting vb script, Scripting wsh, Windows application compatibility, Windows server scripting, Windows server setup, Windows server networking, Windows server general, Windows server dns, Windows server clustering, Windows server active directory, Windows msi, Windows group policy, Windows file system, Windows terminal services, Windows 64bit edition, Software update services, Windows 2000 active directory, Windows 2000 advanced server, Windows 2000 app compatibility, Windows 2000 command prompt, Windows 2000 dns, Windows 2000 fax, Windows 2000 file sys and svcs, Windows 2000 general, Windows 2000 group policy, Windows 2000 hardware, Windows 2000 multimedia, Windows 2000 netware, Windows 2000 networking, Windows 2000 printing, Windows 2000 ras/routing, Windows 2000 registry, Windows 2000 security, Windows 2000 setup, Windows 2000 deployment, Win2000 term srvr applications, Windows 2000 remote desktop, Windows application compatibility, Windows server scripting, Windows application compatibility, Windows nt app. compatibility, Windows nt dns, Windows nt domain, Windows nt general, Windows nt protocols general, Windows nt ras, Windows nt routing, Windows nt setup, Windows nt tcp/ip, Terminal server connectivity, Terminal server setup, Windows programmer controls, Windows programmer misc, Windows programmer nt kernel mode, Windows programmer tools mfc, Windows programmer win32, Microsoft related in newsgroups, Comp microsoft windows, Comp os windows xp, Os windows xp, Os windows-xp, Alt microsoft windows, Alt microsoft windows me, Alt microsoft windows w2k, Alt microsoft windows xp, Uk microsoft windows (comp-os), Alt winsock programming, Comp databases ms access, Comp databases paradox, Wine windows emulator, Pegasus mail ms windows, Eudora mail ms windows, Windows xp basics discussion, Windows xp customizing, Windows xp general discussion, Windows xp hardware, Windows xp help and support, Windows xp networking discussion, Performance and maintenance, Windows xp security and administration, Windows xp setup and deployment, Windows xp working remotely, Windows 95 dial-up networking, Windows 95 general, Windows 95 networking, Windows 98 modems, Windows 98 general, Windows 98 internet, Windows 98 networking, Windows 98 performance, Windows 98 setup, Radius, Internet explorer nt, Internet explorer rights management, Internet explorer security, Internet explorer 6 browser, Internet explorer 6 ieak, Internet explorer 6 outlook express, Internet explorer 6 setup, Internet explorer 5.5 add-ons, Internet explorer 5.5 browser, Internet explorer 5.5 outlook express, Internet explorer 5.5 setup, Internet explorer 5 browser, Internet explorer 5 general, Internet explorer 5 outlook express, Microsoft project general, Microsoft project server, Microsoft project developer, Visio network design docs, Visio troubleshooting, Visio installation, Visio createshapes, Servers, Application center administration, Application center cluster load bal., Application center health monitor, Application center network load balanc., Application center setup, Application center usage, Biztalk server general, Biztalk server admin, Biztalk server admintools, Biztalk server application integration, Biztalk server edi_flatfiles, Biztalk server framework, Biztalk server library, Biztalk server new user, Biztalk server orchestration, Biztalk server, Biztalk server sdk, Biztalk server setup, Biztalk server xml tools, Biztalk server xlangs, Biztalk server non-xml, Biztalk accelerator financial services, Biztalk accelerator hipaa, Biztalk accelerator hl7, Biztalk accelerator rosettanet, Biztalk accelerator suppliers, Commerce server analysis, Commerce server business desk, Commerce server campaigns, Commerce server catalog, Commerce server data warehousing, Commerce server deployment, Commerce server general, Commerce server (sdk), Commerce server solution sites, Commerce server userprofile mgmt, Cms general, Cms evaluation, Data protection manager, Exchange server clients, Exchange server administration, Exchange server clustering, Exchange server connectivity, Exchange server design, Exchange server development, Exchange server miscellaneous, Exchange server setup and installation, Exchange server tools, Outlook calendaring, Outlook contacts, Outlook fax, Outlook general, Outlook install and configure, Outlook interop, Outlook non-microsoft utilities, Outlook new users, Outlook printing, Outlook program add-ins, Outlook programming: forms, Outlook programming: vba, Outlook team folders, Host integration server general, Isa server general, Isa server clients, Isa server configuration, Isa server education, Isa server enterprise, Isa server publishing, Isa server sdk, Isa server vpn, Isa server wish list, Live communications server general, Live communications server developer, Microsoft crm, Microsoft crm deployment, Microsoft crm developer, Mom general discussion, Mom management pack, Mom management pack active directory, Mom management pack exchange, Mom management pack iis, Mom management pack sql server, Mom reporting, Mom security, Mom setup and upgrades, Mom user interface, Mom workgroup edition, Microsoft site server analysis, Microsoft site server commerce, Microsoft site server general, Microsoft site server knowledgemgr, Microsoft site server publishing, Microsoft site server search, Sharepoint - setup and administration, Sharepoint - design and customization, Sharepoint - development and programming, Sharepoint - general q&a and discussion, Windows small business server 2003, Small business server 2000, Small business server 4.x, Sql server clients, Sql server clustering, Sql server connection issues, Sql server data mining, Sql server data warehousing, Sql server dts, Sql server english query, Sql server full-text searching, Sql server jdbc driver, Sql server migration assistant, Sql server msde, Sql server new users, Sql server notification services, Sql server olap, Sql server ole db, Sql server ole db and olap, Sql server (odbc), Sql server programming, Sql server replication, Sql server reporting services, Sql server security, Sql server security tools, Sql server, Sql server 2000 windows ce edition, Sql server setup, Sql server tools, Sql server xml, Sql server xml view mapper, Sms admin, Sms inventory, Sms miscellaneous, Sms setup, Sms software distribution, Sms software update management, Sms tools, Windows storage, Windows file system: general, It tasks and topics, Windows server: clustering, Windows 2000 advanced server, Windows nt server 4.0, enterprise, Sql server clustering, Windows file system: general, Windows 2000 file system and services, Windows nt file system, Windows server dfs and frs, Windows storage, Iis ftp, Iis general, Iis security, Iis smtp and nntp, Internet server index server, Internet server misc, Mmc, Windows sdk: isapi-dev, Windows: group policy, Software update services, Windows installer (msi), Windows update, Windows 2000: group policy, Windows 2000: installer (msi), Windows 2000: registry, Windows 2000: deployment, Windows xp: configuration mgmt, Windows xp: performance & maint., Windows xp: deployment, Windows xp: wmi, Platform sdk: msi, Windows server scripting, Win32 programmer: wmi, Windows me: system tools, Pocket pc general, Pocket pc activsync, Pocket pc developer networking, Pocket pc ebooks, Pocket pc developer, Pocket pc marketplace, Pocket pc multimedia, Pocket pc phone edition, Pocket pc wireless, Smartphone, Smartphone developer, Portable media center, Windows server: (dns), Windows server: ipsec, Windows server: networking, Windows 2000: dns, Windows 2000: networking, Windows 2000: networking, Windows 2000: ras routing, Windows 2000 and macintosh, Windows 2000 and netware, Windows xp: messenger, Windows xp: networking and the web, Windows xp: working remotely, Device driver development, Win32 programmer: networks, Win32 programmer: tapi, .net jscript, .net scripting, Internet explorer 4 scripting, Ie 5 programming dhtml scriptlets, Internet explorer scripting, Internet explorer sdk scripting jscript, Internet explorer sdk scripting vb script, Scripting debugger, Scripting hosting, Scripting jscript, Scripting remote, Scripting scriplets, Scripting vb script, Scripting virus discussion, Scripting wsh, Security crypto, Security general, Security hfnetchk, Security mbsa, Security toolkit, Security virus, Windows update general, .net security, Access security, Iis security, Isa server general, Sql server security, Sql server security tools, Windows 2000 security, Windows sdk: security api, Windows server security general, Windows xp security, Windows installer msi, Windows server migration, Windows server setup, Windows 2000 deployment, Windows 2000 installer msi, Windows 2000 setup, Windows 2000 upgrade, Windows 2000 windows update, Windows update, Windows xp deployment, Windows nt setup, Biztalk server setup, Commerce server deployment, Exchange setup and installation, Isa server configuration, Office setup, Sharepoint portal server installation, Sharepoint portal server portal config, Small business server setup-config., Sql server setup, Terminal server setup, Virtual server, System builder, Technet discussions, Technet magazine, Technet talks, Technet how-to needs, Technet how-to feedback, Windows terminal services, 2000 terminal services: applications, 2000: installer, 2000: remote desktop, Xp: remote desktop, Nt terminal server: applications, Nt terminal server: clients, Nt terminal server: connectivity, Nt terminal server: domain, Nt terminal server: hardware, Nt terminal server: miscellaneous, Nt terminal server protocols: rdp, Nt terminal server protocols: tcpip, Nt terminal server: setup, Nt terminal server: user, Mcdba, Mcsa, Mcse, Mcp general, Certification networking, Skills assessment, Windows server update services, Update services, Windows xp deployment, Windows xp configuration mgmt, Windows update, Windows 2000 windows update, Mom sdk, Windows vista general discussion, Windows vista hardware, Windows vista installation, Windows vista help & support, Windows vista networking, Windows vista security, Windows vista mail, Windows vista games, Windows vista performance maintenance, Microsoft


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666