• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Windows 2008 - Access dennied to c:\Users\<user name>\LocalSettings\History

J

Jack Black

#1
Hi,

I am an admin in windows 2008 server. However, I am not able to
access the
c:\Users\<user name>\Local Settings\History

Anyone knows how to change the settings so I can access the folder?

Thank you,
 
P

Pegasus [MVP]

#2
Re: Windows 2008 - Access dennied to c:\Users\<user name>\Local Settings\History

"Jack Black" <gwklocker01@newsgroup> said this in news item
news:60b578d9-ce73-4ab8-851b-9039ea6cfee5@newsgroup

> Hi,
>
> I am an admin in windows 2008 server. However, I am not able to
> access the
> c:\Users\<user name>\Local Settings\History
>
> Anyone knows how to change the settings so I can access the folder?
>
> Thank you,
>
You could seize ownership of the folder.
 
J

Jack Black

#3
On Dec 28, 9:13 pm, "Pegasus [MVP]" <n...@newsgroup> wrote:

> "Jack Black" <gwklocke...@newsgroup> said this in news itemnews:60b578d9-ce73-4ab8-851b-9039ea6cfee5@newsgroup
> >

> > I am an admin in windows 2008 server.  However, I am not able to
> > access the
> > c:\Users\<user name>\Local Settings\History
>

> > Anyone knows how to change the settings so I can access the folder?
>

> > Thank you,
>
> You could seize ownership of the folder.
Hi Pegasus,

After I took over the ownership of entire folder, it still tell me
"access dennied". Any guess?

Thank you,
 
P

Pegasus [MVP]

#4
Re: Windows 2008 - Access dennied to c:\Users\<user name>\Local Settings\History

"Jack Black" <gwklocker01@newsgroup> said this in news item
news:2385dd84-3043-40e0-92bc-0ec6458ecd27@newsgroup

> On Dec 28, 9:13 pm, "Pegasus [MVP]" <n...@newsgroup> wrote:

>> "Jack Black" <gwklocke...@newsgroup> said this in news
>> itemnews:60b578d9-ce73-4ab8-851b-9039ea6cfee5@newsgroup
>> >>

>> > I am an admin in windows 2008 server. However, I am not able to
>> > access the
>> > c:\Users\<user name>\Local Settings\History
>>

>> > Anyone knows how to change the settings so I can access the folder?
>>

>> > Thank you,
>>
>> You could seize ownership of the folder.
>
> Hi Pegasus,
>
> After I took over the ownership of entire folder, it still tell me
> "access dennied". Any guess?
>
> Thank you,
I would get an independent confirmation that you're really the owner. Save
the code below as GetOwner.vbs, then run it from a Command Prompt to see for
yourself.

Set oFSO = CreateObject("Scripting.FileSystemObject")
if WScript.Arguments.count <> 1 Then Error "Usage: GetOwner ""Name of File
or Folder"""
sItem = WScript.Arguments(0)
If Not oFSO.FolderExists(sItem) _
And Not oFSO.FileExists(sItem) _
Then Error "Error: Cannot locate the file or folder """ & sItem & """"

if right(sItem, 1) = "\" then sItem = Left(sItem, Len(sItem) - 1)
sItem = Replace(sItem, "\", "\\")
sItem = "'" & Replace(sItem, "'", "\'") & "'"

Set oWMIService = GetObject("winmgmts:")
Set cSettings = oWMIService.ExecQuery("Select * " _
& " From Win32_LogicalFileSecuritySetting where path = " & sItem)

For Each oItem In cSettings
iRet = oItem.GetSecurityDescriptor(oSD)
If iRet = 0 Then
WScript.echo "Owner=" & oSD.Owner.Name
Else
WScript.echo "Owner not found"
End If
Next

Sub Error (sMsg)
WScript.Echo sMsg
WScript.Quit 9
End Sub