13 votes

How do I reset file ownership at the command line when the files are owned by users from a dead domain?

The issue with using icacls /setowner is that gaining ownership doesn't implicitly grant you any other rights except "Write ACL" – in particular it doesn't actually grant you the rights to ...
u1686_grawity's user avatar
2 votes
Accepted

"ls: cannot open directory '.': No such file or directory" in Git Bash (in VS Code terminal)

This can happen when the current working directory is deleted or moved away from underneath you. Example using two terminals/sessions (I'll put a no-op : 1; and : 2; in front of each command to ...
Chris Davies's user avatar
  • 3,271
2 votes

How do I reset file ownership at the command line when the files are owned by users from a dead domain?

Since there's already a good answer that's probably what the OP wants, here's another option. NTFS support on Linux tends to be really useful (or broken, depending on how you see it, I guess) as it ...
Jimmio92's user avatar
  • 121
1 vote

Show only folder name with the link information via Windows DIR

The help for the dir command shows the following: C:\>dir /? Displays a list of files and subdirectories in a directory. DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] ...
Reddy Lutonadio's user avatar
1 vote
Accepted

Press any key to exit in command prompt?

Instead of running CMD in order to execute the certutil command, use instead this command in the script: run "path\to\batch.bat" "%Path_to_Selection%" The .bat file will contain ...
harrymc's user avatar
  • 465k
1 vote

Why doesn't CMD inherit environment variables on this machine?

Use the /d option of cmd.exe to skip Autorun commands from the registry. No need to remove the Autorun key. C:\> cmd /? | findstr uto /D Disable execution of AutoRun commands from registry (...
Amit Naidu's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible