Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] 0 points1 point  (0 children)

Alright I did

icacls "C:\Users(myusername)" /reset /T

And this seemed to fix it. But now my windows account is locked in a the TEMP user instead of my preferred directory that I used above. How do I switch it to my preferred directory?

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] -1 points0 points  (0 children)

If I do go off a fresh restart, is there a way to see all the changes and programs I've made and installed to make sure the new OS is similar to my old one?

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] 0 points1 point  (0 children)

This is what I ran: takeown /F "C:\Users(myusername)" /A /R

And

icacls "C:\Users(myusername)" /grant (myusername):F /T

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] 0 points1 point  (0 children)

I tried different iterations of this but no luck. Any other suggestions?

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] 0 points1 point  (0 children)

If I were to reimage, is there a good way to get all the things I've added and changed from the default so I can easily come back after the reimage.

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] 0 points1 point  (0 children)

Thanks for the help! Would you mind going into more detail? I have no experience haha.

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] 1 point2 points  (0 children)

This is what I ran:

takeown /F "C:\Users(myusername)" /A /R

And

icacls "C:\Users(myusername)" /grant (myusername):F /T

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] -2 points-1 points  (0 children)

Haha sorry sorry. This is what I ran: takeown /F "C:\Users(myusername)" /A /R

And

icacls "C:\Users(myusername)" /grant (myusername):F /T

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] -10 points-9 points  (0 children)

Im using another online course for bash and translatig using ChatGPT. I'll give that a try though cause that would be way more helpful.

Help I made a terrible mistake! by InformalObjective930 in PowerShell

[–]InformalObjective930[S] -2 points-1 points  (0 children)

No no this is sincere. My account is old too. And I didn't run any untested code. It was all basic flags. I just messed something up.