PS for moving files with the word ARCHIVE in there naming of a specific path, to a spec path?


hello,

i'm trying figure out how ps script have in order move files word archive in there naming of specific path, network path?

 

any ideas?  thx

hi,

try this:

  $sourcelocation = "p:\test" $destlocation =  "\\g1\test2" get-childitem $sourcelocation  *archive* | move-item -destination $destlocation   



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source