which errors out with permission denied. I tried with domain admin acc, powershell started from admin, tried granting everyone all access to share (including security permissions)… no good. Any ideas?
Copy-Item works outside powershell wf, what am i missing?
Workflows aren’t scripts in the usual sense. Workflows get translated to XAML, and then passed off to Windows Workflow Foundation to execute. So regardless of how you opened PowerShell, the code is actually being executed, usually, by SYSTEM, which doesn’t have the ability to access network resources. “Everyone” on the share permissions (and you’d also need to look at the underlying NTFS file permissions) doesn’t include non-authenticated (Anonymous) users, which is probably what’s happening.
Try adding the -PSCredential common parameter when you run Gather-SecurityLogs. That should let you specify a credential for the workflow to run under.
works like this
ps. that for the verb info, didn’t think about it when doing this
pps. is there any easy way to secure password string?
ppps. how to mark an answer?