Link to home
Start Free TrialLog in
Avatar of cclim
cclim

asked on

Userenv.log Problem

After i had perform the following command: -
  secedit /refreshpolicy machine_policy /enforce
   or
  secedit /refreshpolicy user_policy /enforce

The following error appear in c:\winnt\system32\Userenv.log: -
  userenv WriteStatus : Failed to create reg key with 5.

Can someone help me to resolve it. Once thie error occur, the domain policy couldn't be propgate to the domain machine.
Avatar of jkr
jkr
Flag of Germany image

>>userenv WriteStatus : Failed to create reg key with 5.

Error Code 5 is for

//
// MessageId: ERROR_ACCESS_DENIED
//
// MessageText:
//
//  Access is denied.
//
#define ERROR_ACCESS_DENIED              5L

It seems that the security settings for the key you are trying to create the subkey in don't allow this...
jkr, are you saying this is most likely registry key right?

Thanks
Avatar of cclim
cclim

ASKER

jkr, how to resolve it? or how should i determine which registry key is giving error?
Well, as you know which keys you want to add, either use an account that can handle that or set the access rights for the parent keys accordingly...
Well, did that help?
Avatar of cclim

ASKER

jkr, another problem prompt at the userenv.log

"USERENV(12c.1b0) 10:01:17:890 MyGetUserName:  GetUserNameEx failed with 1722."

Any idea? I know it is somethind to do with DNS but i had try to ping the dns also nslookup from this machine,it seem like i have a correct ip for the dns server. (For ur info, this machine have more than 1 NIC card).

ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cclim

ASKER

jkr, the DC is the same machine as DNS.all other machine that join to this DC had no problem except for this. This machine is located in different segment with DC, seperate by a firewall. But previously it had no problem. Only recently, these 2 error occur.

Is there any services i need to reverify? such as computer browser and etc?Also how do i check whether the DC machine had the DC being configure correctly?
Avatar of cclim

ASKER

jkr, thks for the comment.It help me a lot.