![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re^5: Windows single sign-on / NTLM questionby haukex (Archbishop) |
on Jan 23, 2019 at 19:48 UTC ( #1228886=note: print w/replies, xml ) | Need Help?? |
Thanks for the update! Sometimes calling the native tools turns out to be the "easiest" way to go, in cases like that I usually make sure the interface is as clean as possible. I've not actually integrated into my scripts, but as a proof of concept, it works. A quick test shows me that something like this seems to work:
(I'm using IPC::Run3 because newer versions use Win32::ShellQuote under the hood, and it allows redirection of STDIN/OUT/ERR if desired. For really complicated cases, I guess PowerShell's -EncodedCommand is probably the way to go.) Update: Wrapped up in a function:
In Section
Seekers of Perl Wisdom
|
|