Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
94 views

I'm using a command similar to the one below to copy a file to a directory: copy-item 'C:\\some\\source\\directory\filename.txt' -Destination 'T:\some\destination\dir' C:\ is a local disk. T:\ is a ...
Michael Remijan's user avatar
0 votes
1 answer
118 views

I use The following powershell code to copy file from a remote machine on the same network to the actual machine where this powershell is executed. The firewall is disabled. The $UpdateSourceFolder is ...
aSpagno's user avatar
  • 143
0 votes
1 answer
70 views

I am writing a script to copy items to a drive when I connect a specific drive. The script works, but it won't copy deep subfolders Here is a sample of my code: $folder = @(Get-ChildItem -path "C:...
TexasRed's user avatar
0 votes
1 answer
67 views

I am no expert in PowerShell and apologies if my script is way off but I really could use some help on this. I appreciate any help!! I need to copy ONLY '.bak' files from a Server with folder ...
sllucas's user avatar
0 votes
1 answer
92 views

I want to create a PowerShell script to copy the Templates folder from a remote computer to a local computer: # Ask the administrator to enter the name of the remote PC $RemotePCName = Read-Host "...
user24950367's user avatar
0 votes
1 answer
62 views

I have the following batch file. @echo off @echo Kopiere Autodesk-Profil ins Homeverzeichnis (H:\)... @rmdir /s /q "H:\Downloads\Temp_Autodesk\Autodesk AutoCAD Map 3D 2021\" @xcopy /s /y &...
user avatar
0 votes
2 answers
250 views

The following works fine. Copy-Item -Path C:\Users\Administrator\Desktop\EA\MT4\EA_bot.ex4 -Destination C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\0C2BFA140CA8FBEFEDCADDDEDD61AA24\...
Scott Bowden's user avatar
0 votes
0 answers
45 views

I want to copy a series of files from different locations/destinations and output their success and/or failure to a pipe delimited file. For example I have tried the code below but it doesn't report ...
Angel Martinez's user avatar
1 vote
2 answers
120 views

When copying a Windows profile, I am successfully copying and excluding the voluminous "AppData" folder. But the side effect is that in the backup folder, sub-folder "Documents" ...
Scy Watcher's user avatar
1 vote
1 answer
338 views

$exclude = @( "AppData", "Application Data", "Contacts", "Cookies", "IntelGraphicsProfiles", "...
User's user avatar
  • 13
1 vote
2 answers
1k views

I have a script that backs up User Profiles Documents. The code is: $sourceFolder = "C:\Users\username\Documents" $backupFolder = "C:\temp\Backup\profilefolders\username\Documents" ...
Iain Howard's user avatar
0 votes
1 answer
291 views

Overflow, I have a task to copy hundreds of files, folders, and subfolders from an on-prem server to location on our shared network drive and am trying to write a Powershell script to accomplish this ...
L.Newell's user avatar
  • 112
0 votes
0 answers
72 views

function Copy-Logs { [CmdletBinding()] param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, HelpMessage="Specify the name(s) of the ...
Matovina Igor's user avatar
0 votes
1 answer
1k views

Using Powershell to search (Get-ChildItem) for specific files that you need to copy to a new location with the same folder structure seemed to be not trivial with Powershell. Combining Get-ChildItem ...
Steve Dorr's user avatar
0 votes
1 answer
70 views

I have a batch file to copy over files from Web folder to my local folder. Web folder destination look like this: G:\program files\2023\subfolder_1\1.txt G:\program files\2023\subfolder_1\1_total.txt ...
mashimena's user avatar
  • 175
0 votes
0 answers
19 views

I am trying to: A. copy the current application event log from server A B. copy the current IIS logs from server A c. create a folder with todays date on the network share and copy A and B above into ...
tonyps's user avatar
  • 1
0 votes
0 answers
39 views

I'm trying to run a powershell command where it makes a copy of the file "PB.mdb" in a specific location, renames it with a timestamp at the end of it, and saves it in a different location. ...
GuzzyD's user avatar
  • 85
1 vote
0 answers
1k views

Sometimes I copy large numbers of files and folders, 2 or more GB. It would be helpful if I could see how far through the task the program has progressed. I have been using Copy-Item -Path $...
John Walker's user avatar
0 votes
1 answer
210 views

Copying files through a vm session using copy-item shows error when destination directory has wildcard (square bracket) #powershell ver. 5.1.19041.2364 $vm_session = new-pssession -vmname $vmname -...
stManPWR's user avatar
0 votes
1 answer
49 views

this seemed to be a good way to make a backup of my files without having to search of them manualy I use the following command: Get-ChildItem -Recurse -Include *.7z, *.rar, *.zip, *.db, *.sql, *.bmp, *...
Codeman's user avatar
0 votes
0 answers
113 views

I am trying to copy a file from one location to another. There are two possible source destinations on the computer I would like the script to check if the folder exists (i.e. -eq 'True') if doesn't ...
daaqis's user avatar
  • 13
0 votes
1 answer
159 views

Using Powershell, How can I delete folders in the destination folder only if they exist in the source folder? For example I have the folder structure below and want to delete Folders1 2 and 3 before I ...
HelpMePlz's user avatar
0 votes
0 answers
156 views

I want to copy folder 1 from the source directory to the destination directory however folder 1 is always a randomly generated number. Source/Folder A: folder 1 (random number) file1....
HelpMePlz's user avatar
1 vote
1 answer
284 views

I have a directory A in which containing the sub directories a, b, c, d, each sub-directory contains timestamped folders, example 20230120, and files whose names end with the date and time of day ...
dorgeles's user avatar
0 votes
1 answer
212 views

I am attempting to send one file to multiple locations using a ForEach loop. It gets sent to one location, but not the second. I have noticed that the second location gets output to the host, though, ...
Chris's user avatar
  • 219
0 votes
1 answer
1k views

Let me first say I am very bad at everything that involves coding language. So I need some help. The goal: I have a source with million of files but they need to be copied in a sequential order from A ...
suckateverything's user avatar
0 votes
1 answer
496 views

I'm trying what I think is a simple folder copy but i'm getting stuck on this one. I need to copy contents of a folder to an existing Sharepoint directory Here are my tries $SharepointDirectory = '\\...
Antoine Delplanque's user avatar
0 votes
1 answer
2k views

Problem I am running .NET Framework SDK to run GitHub Actions to build Releases of a project. I need to be able to copy the built project files from the Docker Container to the host and beyond to an ...
Tyler's user avatar
  • 333
0 votes
1 answer
210 views

So I asked here before about helping with a script to copy and paste files from one folder to another. However, after I was done, I found that some of the files went missing. I had 600,393 files but ...
TheGoldenBoy2188 The Coolest G's user avatar
0 votes
1 answer
834 views

I'm trying to copy an AdobeOverride file from a location on the C:\ to C:\Program Files (x86)\Common Files\Adobe\UpdateResource\ This works perfectly fine for the copy to the ProgramData location but ...
Jordon Newberry's user avatar
1 vote
2 answers
407 views

I'm trying to create a list of file name criteria (MS Hotfixes) then find each file name containing that criteria in a directory and copy it to another directory. I think I'm close here but missing ...
Dave_1972's user avatar
1 vote
2 answers
997 views

I have the following script to recursive copy data and create a log file of the destination, could any assist please, I would like to pause for 10 seconds after each file is copied so each file ...
PF6004's user avatar
  • 13
0 votes
1 answer
310 views

OK So I've got a list of files I'm trying to copy from one folder to another. I have a CSV with a list of partial file names eg: ABCD-EFGH The files I want copied are in the destination folder named ...
Dimble's user avatar
  • 1
0 votes
0 answers
143 views

I have a script that will copy files from a set of folder(s) which match a specific string to a location. The script runs fine for the first server, but on the second it just never ends. I have a ...
BonnieMcD's user avatar
0 votes
1 answer
640 views

I'm running the below PS to move files from one directory to another. The issue I'm having is that it does not copy the items to the destination, it copies them to the directory I'm calling the script ...
brooksly's user avatar
3 votes
1 answer
1k views

I used the Copy-Item command to copy a set reports to a server location. It was working fine before but recently more reports have been added to the folder and now most of the times it works fine but ...
Vanya Srivastava's user avatar
0 votes
1 answer
388 views

I'm not a coder. I have a Powershell script .ps1 that goes into all subfolders of "db" and deletes the files I want to delete in all of them. It works for what I need. The following code: ...
Allan Amaro's user avatar
0 votes
1 answer
88 views

I have the following structure - folder1 - file1 - folder2 - file2 - folder3 - file3 - file4 - file5 - folder4 - file6 - folder5 - file7 - folder5 - file8 I am trying to copy ...
floki91's user avatar
  • 21
0 votes
0 answers
32 views

I posted yesterday about a litany of MP3 files that are in a Plex playlist which I want to put on my local PC and upload to an MP3 player. While I was able to get some of the basics down, I ...
Jeff A's user avatar
  • 33
1 vote
0 answers
189 views

I have a playlist of MP3s that live on a Synology NAS in my home. There is a playlist of about ~500 songs I wish to download to my local PC. I have a list of all of these files and their locations in ...
Jeff A's user avatar
  • 33
3 votes
2 answers
6k views

I'm having a weird issue with using PowerShell to merge multiple csv files into one. I've done this plenty of time in the cmd prompt on in windows 7, but here the output only contains the earliest ...
MWallace's user avatar
2 votes
1 answer
364 views

I am getting all wav files in the past 24 hours from one folder and putting them in another folder. I swear this worked for me a bit ago and wanted to add in some more conditional statements but now ...
robertuxo's user avatar
0 votes
1 answer
66 views

am trying for a long time to copy the following folder to remote server but unfortunately giving always error. I try alot of ways :(((( I really need a help The code: $ServerLists = Get-Content -Path ...
star 1555's user avatar
0 votes
0 answers
318 views

I frequently have to copy a single file to multiple destinations, so i'm trying to write a script to make that go faster. it seems to work fine when i'm dealing with local files, but fails without any ...
sean's user avatar
  • 13
0 votes
0 answers
1k views

I executed this copy-item command line on windows 11: Copy-Item -Path '//c/shared/file.xml' -Destination '\\REMOTE-PC\c$\testFolder' -Force and It gives me unauthorized access message. My user has ...
Primoshenko's user avatar
2 votes
2 answers
1k views

Because the -Exclude parameter of Get-ChildItem is not filtering on subfolders when using the -Recurse flag, see among other unable-to-exclude-directory-using-get-childitem-exclude-parameter-in- ...
Bartel's user avatar
  • 198
1 vote
1 answer
5k views

I have a script that copies files from one location on a local drive to another: $Folder = 'C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\CMSLOGS' "Test to see if folder [$Folder] ...
user9099's user avatar
0 votes
1 answer
202 views

The task of my PowerShell script is to get files from specified language folders and put them in a flat structure in another directory, with a new suffix (.new) and with underscore followed by the ...
Gunilla's user avatar
  • 329
0 votes
1 answer
1k views

I have files stored on a network share \\domain.company.com\Server01\Folder1\Path that I am looking to perform a recursive copy to a remote server \\RemoteServer1\D$\Temp\Folder1. Initially, I looked ...
Masterchiefxx17's user avatar
-1 votes
1 answer
494 views

Here is my question; $source = "\\Somewhere\Overtherainbow\something.exe" $destinationSource = "C:\temp" Function MyCopyFunction([string]$from, [string]$to) { $src= $source+$...
Ahhzeee's user avatar
  • 123

1
2 3 4 5 6