asked on
Remove-PSDrive -Name Z
New-PSDrive –Name “Z” –PSProvider FileSystem –Root “\\1.1.1.1\csv” –Persist
get-childitem -path E:\CSV *.csv -recurse | move-item -destination Z:
ASKER
ASKER
Start-Transcript C:\Temp\PStask.log
at the top of the script to generate a log file, then run the task and review the file.
ASKER
ASKER
ASKER
Start-Transcript C:\temp\PStask.log
Remove-PSDrive -Name Z
New-PSDrive –Name “Z” –PSProvider FileSystem –Root “\\1.1.1.1\csv” –Persist
get-childitem -path "E:\CSV" -filter "*.csv" -recurse | move-item -destination "\\1.1.1.1\csv"
ASKER
Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.
TRUSTED BY
Open in new window