Jump to content

Nægtede adgang


Recommended Posts

Jeg har opgraderet min XP til Vista.

Det blev dannet en mappe der hedder C:\windows.old og en ny c:\programmer (i gamle dage var dette ikke muligt)

Mit problem er jeg får nægtet adgang til at slette "windows,old" og mappen "Programmer", der blev dannet under installation af XP.

Jeg har prøvet flere ting, bland andet kommando "takeown" + "cacls", og start pc under sikker tilstand.

Er der nogen der kan hjælpe?

Link to comment
Share on other sites

In English:

I have upgraded my XP to Vista.

It was created a folder called C: \ windows.old and a new c: \ program files (in the old days this was not possible)

My problem is I get denied access to delete "windows, old" and the "Program", which was created during installation of XP.

I've tried several things, among others command "takeown" + "cacls" and start the PC in safe mode.

Is there anyone who can help?

Link to comment
Share on other sites

Gå til Start> Alle programmer> Tilbehør> Systemværktøjer> Diskoprydning.

I "Hvilke filer til at rydde op" dialog> Klik på "Filer fra alle brugere på denne computer".

Vælg det drev, hvor din Windows.old er.

I Diskoprydning dialogboksen vælges tidligere Windows-installation ® i "Filer for at slette" liste. Klik på OK.

Dette bør rydde op på over 2 GB plads på harddisken besat af mappen Windows.old.

Go to Start > All Programs > Accessories > System Tools > Disk Cleanup.

In "Which files to clean up" dialog > Click on "Files from all users on this computer".

Select the Drive where your Windows.old is.

In Disk Cleanup dialog, select Previous Windows installation(s) in the "Files to delete" list. Click on OK.

This should clean up above 2 GB of hard disk space occupied by the Windows.old folder.

Link to comment
Share on other sites

Open an administrator command prompt by typing cmd into the start menu search box, and hit the Ctrl+Shift+Enter key combination.

To take ownership of the file, you’ll need to use the takeown command. Here’s an example:

takeown /f C:\Windows\System32\en-US\winload.exe.mui

That will give you ownership of the file, but you still have no rights to delete it. Now you can run the cacls command to give yourself full control rights to the file:

cacls C:\Windows\System32\en-US\winload.exe.mui /G geek:F

Note that my username is geek, so you will substitute your username there.

At this point, you should be able to delete the file. If you still can’t do so, you may need to reboot into Safe Mode and try it again. For the filename in the example.

Åbn en administrator kommandoprompten ved at skrive cmd i Start-menuen søgefeltet, og tryk på Ctrl + Shift + Enter tastekombination.

At overtage ejerskabet af filen, skal du bruge takeown kommandoen. Her er et eksempel:

takeown / f C: \ Windows \ System32 \ da-DK \ winload.exe.mui

Det vil give dig ejerskabet af filen, men du har stadig ingen rettigheder til at slette den. Nu kan du køre cacls kommandoen til at give dig selv fuld kontrol rettigheder til filen:

cacls C: \ Windows \ System32 \ da-DK \ winload.exe.mui / G geek: F

Bemærk, at mit brugernavn er nørd, så du vil erstatte dit brugernavn der.

På dette tidspunkt, skal du være i stand til at slette filen. Hvis du stadig ikke kan gøre det, kan det være nødvendigt at genstarte i fejlsikret tilstand og prøve det igen. For filnavnet i eksemplet, var jeg i stand til at overskrive det uden safe mode

Link to comment
Share on other sites

Thanks again Alan

But I have to directories with the samme name "C:\programmer", as you can se in the attached file . How can I se the diference between the old from XP installation (it this one I want to delete) and the current one in Vista?

regards fernando

post-12064-0-69017900-1320660813_thumb.j

Link to comment
Share on other sites

I know that, and yet!

I hope you patiens, because it is not just easy. Try to follow the history, because this is a lille bit strange.

1. I purchase the PC (HP EliteBook) in May 2009 with XP also installed samme month.

2. I upgraded to Vista in August 2011

3. The "PROGRAM" directory that Vista uses now (I'm 100% sure of that) have creation date the 2nd November 2006 :0 (the PC was not made at that time).

4. The other "PROGRAM" directory have creation date the 11th September 2008 :0 :0 (stil before XP installation and stil before upgrading to Vista).

5. I have been able to delete manually most of the files in "C:\Programs\" (the one I wish to delete). As you can se, I have still 6 directories I'm not allowed to delete. Please se the 2 jpg files attached.

If I use the command "takeown f/ C:\Programs" I still don't know which one I takeown of. As well as with the next command "cacls /f C:\Programs ..........".

Do you follow me and understand my problem?

Regards

Fernando

post-12064-0-86146300-1320840852_thumb.j

post-12064-0-97292500-1320840864_thumb.j

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy