How to reverse: cmd attrib -s -h -r /s /d *.*. and hit Ent

mb1280

Member
Member
Messages
94
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Can I run something that makes sure all of my folder Attributes are at the default settings?

I did something I didn't want to, based on this page . . . Windows command-line command to list hidden folders . . . http://superuser.com/questions/277379/windows-command-line-command-to-list-hidden-folders

I was trying to figure out if there were any errors in what my bat file was doing.

To get the output, I thought I should go to the "Startup" folder in cmd.exe, which is hidden, and run: Startup.bat > testlog.txt 2> testerrors.txt

To get there, I would have to un-hide some folders.

I found the above page, and ran the attrib command with those switches.

I think I did this in the C:\ProgramData folder (normally hidden)

I think that I put this in an elevated command prompt, based on the second answer . . . attrib -s -h -r /s /d *.*. and hit Enter

Maybe I just put this in . . . attrib -s -h -r /s /d

I thought, I'll just go fast and not think, nothing can happen . . . then, of course, I read on that same page, also, that this can alter your folder attributes . . . they should preface that with the word "CAUTION."

I think I did see a lot of "NOT ACCESSIBLE . . . " flashing by . . . it was doing something.

Is there any way to tell if I altered my folder attributes or not?

*****************************************************************************************

Does this fix I have at the bottom fix it, or not?

Quick way to reset all security permissions to default? (Windows 7)

https://social.technet.microsoft.com/Forums/windows/en-US/d09a393b-68df-43de-9f31-735f83242497/quick-way-to-reset-all-security-permissions-to-default-windows-7?forum=w7itprosecurity&ppud=4

"Just run in a elevated prompt the following command."

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

This did something, but, how can I tell if it did what I want, and things are back to normal? I don't know if secedit applies to folder attributes or not.

Is there a program that puts them back at the default values . . . Is that the function of the secedit command?
 

My Computer

System One

  • OS
    Windows 8.1 Pro 32-bit
    Computer type
    PC/Desktop
    System Manufacturer/Model
    HP Compaq DC7600 Convertible Minitower
    CPU
    Intel Pentium 4 521, Prescott 90nm Technology
    Motherboard
    Hewlett-Packard 09F0h (XU1 PROCESSOR)
    Memory
    2.00GB Dual-Channel DDR2 @ 332MHz (5-5-5-15)
    Graphics Card(s)
    512MB NVIDIA GeForce 8600 GT
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    HP 2311
    Screen Resolution
    1920x1080@60Hz
    Hard Drives
    149GB SAMSUNG HD160JJ ATA Device (SATA)
    233GB Maxtor 7L250S0 ATA Device (SATA)
    Keyboard
    Logitech K120
    Mouse
    Kensington Expert Mouse K64325
    Internet Speed
    1.5MB DSL
    Browser
    Firefox
    Antivirus
    Avast, Malwarebytes
The only way I can think of for you to reset would be to do a System Restore to a date before you did this or restore a backup image.
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
The only way I can think of for you to reset would be to do a System Restore to a date before you did this or restore a backup image.
Before doing that, have you tried a couple of Shutdowns, waiting a minute, re-powering up? Often, Windows will fix itself just fine. I recommend in the future when you experiment with batchfiles, you create a directory that contains a mix of hidden and non-hidden folders and files within that created directory. Please stay out of Windows Prime :)
 

My Computer

System One

  • OS
    Windows 7 Pro 64bit [MS blue-disk set]
    Computer type
    PC/Desktop
    System Manufacturer/Model
    2 Acers & 1 Antec[?]
    CPU
    i7 in 2 Acers, i5 in desktop
    Motherboard
    Desktop w/Gigabyte
    Memory
    Two w/16GB, 1 w/8GB
    Graphics Card(s)
    Laptops GameWorthy; Desktop maybe GameWorthy
    Monitor(s) Displays
    flatscreens; 2 are BluRay worthy
    Screen Resolution
    1368x768; 1600x900
    Hard Drives
    1TB internals; 2 ext usb WD 1TB HDs
    PSU
    what's PSU?
    Cooling
    Regular plus external fans
    Keyboard
    desktio w/PS2
    Mouse
    desktop w/PS2
    Internet Speed
    DSL middle level [160?]
    Browser
    from Netscape 0.9 to FF 36
    Antivirus
    well-balanced, well-configured mult-layered defense is best
    Other Info
    From MS-DOS 3.3, MS-DOS 6.22, from Windows 3.1 to WFW 3.11 to Windows 95-98SE, now to Windows 7 Pro.
    Security for now: Windows 7 Firewall, Emsisoft AM, MSE [scan-only], SpywareBlaster, Ruiware/BillP combine
I make a couple of clones with Clonezilla once per month . . . The fix is to just replace the C: drive with one of those. It was only about 20 days old, there were no significant changes.
 

My Computer

System One

  • OS
    Windows 8.1 Pro 32-bit
    Computer type
    PC/Desktop
    System Manufacturer/Model
    HP Compaq DC7600 Convertible Minitower
    CPU
    Intel Pentium 4 521, Prescott 90nm Technology
    Motherboard
    Hewlett-Packard 09F0h (XU1 PROCESSOR)
    Memory
    2.00GB Dual-Channel DDR2 @ 332MHz (5-5-5-15)
    Graphics Card(s)
    512MB NVIDIA GeForce 8600 GT
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    HP 2311
    Screen Resolution
    1920x1080@60Hz
    Hard Drives
    149GB SAMSUNG HD160JJ ATA Device (SATA)
    233GB Maxtor 7L250S0 ATA Device (SATA)
    Keyboard
    Logitech K120
    Mouse
    Kensington Expert Mouse K64325
    Internet Speed
    1.5MB DSL
    Browser
    Firefox
    Antivirus
    Avast, Malwarebytes
Back
Top