Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

NEW Copy file from client machine to file share during OSD - Windows 11

craigegross

Member
Messages
9
Reaction score
0
Points
1
We are working on an offline deployment of Windows 11. During the task sequence we have a PowerShell scriptsthat runs and collects information from the machine.
Our goal is to take that data that was gathered into a csv and send that file to a network share where the data can be compiled and used for further processing.
I have tried to run xcopy to get the file to the share but it fails.
xcopy C:\ProgramData\NESTImaging\*.csv \\IPAddress\Depot_Data\ > C:\ProgramData\NESTImaging\copy.txt

The share location has read/wrote access to "Everyone"
Any suggestions to collect this data?
 
We were able to get it to work. Had to alter the permissions on the share and then we created a short-term network drive providing the credentials for the share in the script.
 

Forum statistics

Threads
7,135
Messages
27,867
Members
18,154
Latest member
maurie
Back
Top