helpful_snippets/Windows/copy_as_another_user.md

231 B

Copy files or do smth as another user in CMD/Powershell

net use x: "\\shared\destination\" /user:domain\user password

:: Copy or do whay you need
copy "source destination" "\\shared\destination\target"

net use x: /d