Apologies in advance for being a noob.

I'm having big problems on our new Jenkins 2 server on Windows 2012 and would 
really appreciate some advice/help.

I'm trying to run a Powershell script to establish a remote session to another 
(same domain) Windows 2012 machine. I can do this no trouble at all from the 
Powershell command line. I installed the Powershell plugin and thought it would 
be a walk in the park to use that to drive the Powershell script to do what I 
need. Uh hu....

I get "access denied" messages every time. I think it might be because the 
Powershell script run by Jenkins is executing as a different user. I have tried 
injecting user names and passwords into the build - but I'm not confident that 
the correct user is being selected. I can run local Powershell scripts no 
trouble, and when I do I can get Powershell to dump the current user name and 
it's not anything like the user I need it to be for removing to work :-( how 
the heck can I control which user runs the Powershell code from Jenkins?

Would very much appreciate any clues.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/18d729b1-9371-43e4-921e-0feb141d2520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to