Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Re: Windows 2008 - Access dennied to c:\Users\<user name>\Local Settings\History

Reply
Thread Tools Display Modes

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

 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      12-29-2009


"Jack Black" <> said this in news item
news:60b578d9-ce73-4ab8-851b-...
> 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.

 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      12-29-2009


"Jack Black" <> said this in news item
news:2385dd84-3043-40e0-92bc-...
> On Dec 28, 9:13 pm, "Pegasus [MVP]" <n...@microsoft.com> wrote:
>> "Jack Black" <gwklocke...@gmail.com> said this in news
>> itemnews:60b578d9-ce73-4ab8-851b-...
>>
>> > 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.

>
> 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


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a

 
      12-30-2009


"Jack Black" <> said this in news item
news:6f8cac75-17a3-4c25-a16f-...
> On Dec 29, 10:31 am, "Pegasus [MVP]" <n...@microsoft.com> wrote:
>> "Jack Black" <gwklocke...@gmail.com> said this in news
>> itemnews:2385dd84-3043-40e0-92bc-...
>>
>>
>>
>>
>>
>> > On Dec 28, 9:13 pm, "Pegasus [MVP]" <n...@microsoft.com> wrote:
>> >> "Jack Black" <gwklocke...@gmail.com> said this in news
>> >> itemnews:60b578d9-ce73-4ab8-851b-...

>>
>> >> > 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.

>>
>> > 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- Hide quoted text -
>>
>> - Show quoted text -

>
> Hi Pegasus,
>
> Thanks for script! It works. I found out that the folder that I
> tried to access is just a link folder, and I was able to find the
> actual folder under DOS prompt. I am running a win 2008 terminal
> server. What I am trying to do is to find out what got changed before
> and after IE is ran. I setup a RemoteApp to run IE on the win 2008
> ternianl server. However, the RemoteApp IE is not fully working
> unless the user remote desktop into the win 2008 terminal server and
> runs IE once. Then next time when user runs the RemoteApp IE, the
> RemoteApp IE will be fully functional. I wonder if you have any tool
> suggestion that I should use or some place that I should check on this
> problem?
>
> Thank you for your help!


Sorry, can't help you there. This is completely outside my field of
experience.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Update Error Code: 80070005 Joe Davis Windows Update 33 05-05-2010 09:03 AM
Can I use the Windows 7 Upgrade DVD for a Clean Install ? Patrick Windows Vista General Discussion 38 11-11-2009 10:41 PM
Run Vista legally for at least one year/ Vista Activation doesn't stop Piracy Chad Harris Windows Vista Installation 56 12-25-2008 02:34 PM
Corrupt Files juerg Windows Vista Installation 10 07-12-2007 05:38 PM
Getting Ready for Windows BETA 2 - QuickStarter Andre Da Costa [Extended64] Windows Vista Installation 2 06-07-2006 06:22 PM



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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59