AhmedLS
Well-Known Member
- Messages
- 181
- Solutions
- 17
- Reaction score
- 17
- Points
- 18
Hi,
i have been trying everything to copy a PS module to (program files/windowspowershell/modules) but with no luck. tried using powershell and batch file and in both cases nothing happens and no errors in the logs. just the copy doesnt happen. is there any restriction that i dont know about or may be something i am missing.
the module is located on a network share with all other apps that i deploy througt our distribution point.
the powershell command i am using is (running them manually within powershell on the client works).
copy-item $executingScriptDirectory\PackageManagement $env
rogramFiles -force -Recurse
copy-item $executingScriptDirectory\WindowsPowershell $env
rogramFiles -force -Recurse
the command within the package is
powershell.exe -executionpolicy Bypass -file ".\move-script.ps1"
i have been trying everything to copy a PS module to (program files/windowspowershell/modules) but with no luck. tried using powershell and batch file and in both cases nothing happens and no errors in the logs. just the copy doesnt happen. is there any restriction that i dont know about or may be something i am missing.
the module is located on a network share with all other apps that i deploy througt our distribution point.
the powershell command i am using is (running them manually within powershell on the client works).
copy-item $executingScriptDirectory\PackageManagement $env
copy-item $executingScriptDirectory\WindowsPowershell $env
the command within the package is
powershell.exe -executionpolicy Bypass -file ".\move-script.ps1"