→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Schertle
Engaged Sweeper
Hi,

we have a simple powershell script for testing, which is not working.

Here is the script:

Write-Output "TEST" >> \\ngde-invent\logs$\Printers.txt

And the deployment package has just this command:

powershell.exe -executionpolicy bypass -file "{PackageShare}\Scripts\test.ps1"

The deployment runs successfully, but I see no file. I changed the location of the script and the output, but without success.
2 REPLIES 2
scarsysadmin
Engaged Sweeper III
Did you check the security permissions to confirm the user has write ability to the share you are trying to write to?
Schertle
Engaged Sweeper
Hi,

it’s working with an additional parameter:

powershell.exe -noprofile -executionpolicy bypass -file "{PackageShare}\Scripts\test.ps1"

and running as Currently Logged On.

Is there a possibility to run with Scanning Credentials?