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