Om welke map gaat het exact?
Tenslotte wil ik deze oplossing toevoegen:
In onderstaand script wordt %windir% gebruikt welke de windows map is.
Download de
Windows Server 2003 Resource Kit Tools (werkt ook onder windows 7)
------------------------------------------------------------------------------------------
Open Kladblok. Klik op Start → Alle Programma's → Bureau-Accessoires →
Kladblok.
Kopieer onderstaande code:
@echo off
subinacl /subdirectories %windir% /grant=administrators=f /grant=system=f
@Echo =========================
@Echo Finished.
@Echo =========================
@pause
Ga naar
Bestand - Opslaan als.
Bij "Opslaan in" kies je: Bureaublad.
Bij "Bestandsnaam" zet je:
reset.cmd.
Bij "Opslaan als type" selecteer je:
Alle bestanden (*.*).
Klik op de knop
Opslaan. Rechtsklik →
reset.cmd →
Als administrator uitvoeren
Onderstaande variabelen geven bep. mappen aan:
(%System% - verwijst naar de System map; standaard is dit de C:\Windows\System32 (7/Vista/XP)
%Windir% - verwijst naar de Windows installatie map; standaard is dit de C:\Windows (7/Vista/XP/Me/9x)
%ProgramFiles% - verwijst naar de Program Files map; dit is C:\Program Files
%CommonFiles% - verwijst naar de Common Program Files map; dit is C:\Program Files\Common Files
%Root% - verwijst naar C:\, D:\
%UserProfile% - verwijst naar de actieve gebruikersprofiel map; standaard is dit de C:\Users\{user} & (7/Vista) C:\Documents and Settings\{user} (XP/2K)
%AllUsersProfile% - verwijst naar de profielmap voor alle gebruikers; standaard is dit de C:\Users\All Users (7/Vista) & C:\Documents and Settings\All Users (XP/2K)
%AppData% - verwijst naar de actieve gebruikers Application Data map; standaard is dit de C:\Users\{user}\AppData\Roaming (7/Vista) & C:\Documents and Settings\{user}\Application Data (XP/2K)
%CommonAppData% - verwijst naar de Application Data map voor alle gebruikers; standaard is dit de C:\ProgramData (7/Vista – Opm: deze map is standaard verborgen) C:\Documents and Settings\All Users\Application Data (XP/2K)
%LocalAppData% - verwijst naar de actieve gebruikers Local Application Data map; standaard is dit de C:\Users\{user}\AppData\Local (7/Vista) & C:\Documents and Settings\{user}\Local Settings\Application Data (XP/2K)
%MyDocuments% - verwijst naar de actieve gebruikers Documents map; standaard is dit de C:\Users\{user}\Documents (7/Vista) & C:\Documents and Settings\{user}\My Documents (XP/2K)
%CommonDocuments% - verwijst naar de actieve gebruiker's Documents map; standaard is dit de C:\Users\Public\Documents (7/Vista) & C:\Documents and Settings\All Users\Documents (XP/2K)
%UserTemp% - verwijst naar de actieve gebruikers Temp map; standaard is dit de C:\Users\{user}\AppData\Local\Temp (7/Vista) & C:\Documents and Settings\{user}\Local Settings\Temp (XP/2K)
%WinTemp% - verwijst naar de Windows Temp map;dat is C:\Windows\Temp
%Temp% -verwijst naar %UserTemp% & %WinTemp% maps wanneer de lokatie niet opgegeven is,of %Root%\Temp
%Templates% - verwijst naar de actieve gebruikers Templates map; standaard is dit de C:\Users\{user}\AppData\Roaming\Microsoft\Windows\Templates (7/Vista) & C:\Documents and Settings\{user}\Templates (XP/2K)
%UserStartup% - verwijst naar de actieve gebruiker's Startup map; standaard is dit de C:\Users\{user}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (7/Vista) & C:\Documents and Settings\{user}\Start Menu\Programs\Startup (XP/2K)
%AllUsersStartup% - verwijst naar de All User Startup map; standaard is dit de C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup (7/Vista – Opm: deze map is standaard verborgen) & C:\Documents and Settings\All Users\Start Menu\Programs\Startup (XP/2K)