0

Powershell nooby here. Recently I created windows instance without GUI on aws. I would like to give read and write permission to specific folder. Plus I would like to switch to admin user. I checked the many articles and questions on stackoverflow, but I couldn't find any short and simple command for this. People wrote long scripts :)

I tried below command to switch to admin but it did not do anything.

start-process PowerShell -verb runas

My expectation like in linux

sudo su
chmod -R 660 /sample_folder
For_loop
  • 1
  • 3
  • Plenty of answers for this on this site already, such as [this one](https://stackoverflow.com/questions/25779423/powershell-to-set-folder-permissions) and [this one](https://stackoverflow.com/questions/63671763/how-to-grant-directory-permissions-in-a-powershell-script). Windows is not Linux; do not expect a Linux command to work here. – arco444 Jan 30 '23 at 08:51

0 Answers0