Добавить Windows/copy_as_another_user.md
This commit is contained in:
parent
29d5656643
commit
cc410d3f3f
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Copy files or do smth as another user in CMD/Powershell
|
||||||
|
|
||||||
|
```cmd
|
||||||
|
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
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue