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