Stupidly Modified the C:\Users\Username\AppData native folder's attributes. Don't know if I have badly messed up


CSharpDev

Member
Local time
10:46 AM
Posts
161
OS
Win11
So I wanted to synchronize that entire folder including all its subfolders and files with Google Drive (backup). Couldn't so that so I figured why not try to un-hide what's hidden. So I right-clicked the AppData folder, and un-checked the "Hidden" attribute box. The process started. Then I got some error messages saying I don't have the permission to change the Hidden/Unhidden attributes of some XML and other files. I clicked on "Skip All" and waited for the process to complete.

Now I have some of the files of the "Local" subfolder, for example, hidden and most un-hidden. I haven't deleted any of the files of the entire AppData native folder, only attempted to change the attributes of all of them from Hidden to Unhidden.

I think my best bet would be to restore all of the AppData's native folder's content to its original state. How can I do that?

Would

"dism /online /cleanup-image /restorehealth" followed by "sfc /scannow" do this, or how could I do that?

I have written the following script to check if any of the files remain hidden, to which the answer is YES:

Powershell:
# Define the folder path to check
$folderPath = "C:\YourFolderPathHere"

# Get all files and subfolders within the specified folder
$items = Get-ChildItem -Path $folderPath -Recurse

# Check if any item is not hidden
$notHidden = $items | Where-Object { -not $_.Attributes.HasFlag([System.IO.FileAttributes]::Hidden) }

if ($notHidden -eq $null) {
    Write-Output "All files and subfolders within $folderPath are hidden."
} else {
    Write-Output "Some files or subfolders within $folderPath are not hidden."
    $notHidden | Select-Object FullName
}
 

My Computer

System One

  • OS
    Win11
Create a new user account/profile and copy your personal files to the new folders.
Do not delete the old Username folders and don't touch appdata.
Inplacement, Dism, SFC will not help.
Learn how to use a Backup program!
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook
    CPU
    Intel 6700HQ
    Motherboard
    HP
    Memory
    24
    Graphics Card(s)
    AMD FirePro 5170M
    Hard Drives
    Samsung SSD 860 Pro
    Keyboard
    yes
    Mouse
    yes
    Other Info
    19045.3803
    some Red Hat workhorses
Create a new user account/profile and copy your personal files to the new folders.
Do not delete the old Username folders and don't touch appdata.
Inplacement, Dism, SFC will not help.
Learn how to use a Backup program!

Here's what I did: I hid the entire AppData. Then upon realizing that normally AppData is hidden BUT its 3 subfolders are NOT hidden, I un-hid the 3 subfolders. I ddin't delete any files. Only ever changed the attributes

Am I trouble?
 

My Computer

System One

  • OS
    Win11
dism & scm should fix corruptions - but you don't have such issue.

I don't really get the concern. Hidden or not - doesn't affect the OS functionality. Some files/folders are hidden -for the sake of being dumb-proof (in case a child starts deleting random files from from C:/ - files that happen to be needed by x app - since Windows files need extra steps to be deleted).
 

My Computer

System One

  • OS
    Windows 7 SP 16 (or Windows 11 SP 2 or Sun Valley 2)
    Computer type
    Laptop
    CPU
    Intel & AMD
    Memory
    SO-DIMM SK Hynix 15.8 GB Dual-Channel DDR4-2666 (2 x 8 GB) 1329MHz (19-19-19-43)
    Graphics Card(s)
    nVidia RTX 2060 6GB Mobile GPU (TU106M)
    Sound Card
    Onbord Realtek ALC1220
    Screen Resolution
    1920 x 1080
    Hard Drives
    1x Samsung PM981 NVMe PCIe M.2 512GB / 1x Seagate Expansion ST1000LM035 1TB
dism & scm should fix corruptions - but you don't have such issue.

I don't really get the concern. Hidden or not - doesn't affect the OS functionality. Some files/folders are hidden -for the sake of being dumb-proof (in case a child starts deleting random files from from C:/ - files that happen to be needed by x app - since Windows files need extra steps to be deleted).
So they don't do anything to programs or apps in terms of them running fine or not? Or date loading or not?
 

My Computer

System One

  • OS
    Win11
A file that is Hidden is just not viewable to you, it doesn't affect the Windows OS, it can still See them.
 

My Computer

System One

  • OS
    Windows 11 Pro 64 bit 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte Z390 UD
    CPU
    Intel Core i7 77000 3.60
    Motherboard
    Gigabyte Z390 UD
    Memory
    16 GB
    Graphics Card(s)
    nVidia GEForce RTX 2060 Super
    Sound Card
    onboard
    Monitor(s) Displays
    Two 27" Dell 4K monitors
    Screen Resolution
    3840 x 2160
    Hard Drives
    M.2 NVME SSD, 500 GB; Two 2TB Mechanical HDD's
    PSU
    850w PSU
    Case
    Cyberpower PC
    Cooling
    Water cooled
    Keyboard
    Backlit Cyberpower gamiong keyboard
    Mouse
    Backlit Cyberpower gaming mouse
    Internet Speed
    1 GB mbps
    Browser
    Brave
    Antivirus
    Windows Security
Depends..., if you Hide the Startup folder in AppData/Roaming, and the objects in it, they won't start on boot.
 

My Computers

System One System Two

  • OS
    Windows 10/11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
Create a new user account/profile and copy your personal files to the new folders.
No, do not copy files from one user account to another. It will screw up permissions big time. From old account copy files to external media. Create a new account and then copy from external media into new account.

The proper way to create a new account is in this thread, post#37 Thumbnail images VERY slow to load in File Explorer
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3155
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Leave it alone. All you've done is removed the hidden attribute from some files. That won't break anything.
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer

Latest Tutorials

Back
Top Bottom