Alexandre75
New Member
- Messages
- 4
- Reaction score
- 0
- Points
- 1
Hi,
I Have 1706 sccm version and i want use a simple file copy.
My powershell command :
On my computer it work perfectly but when i insert this command in script section on sccm and after that i launch it, the script doesn't work.
on my computer target i finded "scripts.log" when i open this log i can saw that.
Anyone can help me ? thank you
Sorry for my english i'm not very good.
best regards
I Have 1706 sccm version and i want use a simple file copy.
My powershell command :
Code:
$path = "\\xxx\x$\xxx\xxx\xxx\license.xml"
$destination = "C:\ProgramData\xxx"
Copy-Item -path $path -Destination $destination
On my computer it work perfectly but when i insert this command in script section on sccm and after that i launch it, the script doesn't work.
on my computer target i finded "scripts.log" when i open this log i can saw that.
Code:
Executing command line: "C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell.exe" -NoProfile -ExecutionPolicy RemoteSigned -File "C:\Windows\CCM\ScriptStore\B56B06D6-D2F8-416C-B994-AB5152D505C1_98D92EF42358F2B1B9D4AEF779C4FA13A3461CB2A3B64ECE233B58F1FE5957CE.ps1"
Code:
Process completed with exit code 0
Anyone can help me ? thank you
Sorry for my english i'm not very good.
best regards
