Proper way to trigger a Windows action from Linux?

39 views
Skip to first unread message

Hammer, Erich F

unread,
Jan 27, 2022, 1:10:28 PM1/27/22
to ntsys...@googlegroups.com
I have a scripted action on a Windows server that I would like to be able to trigger via our Linux webserver. There is no need for information transfer although ideally, it could independently trigger two actions/options which means either two "watchers" or a couple bits (literally) of information transfer. Obviously, I want to limit which remote system(s) can trigger the action(s).

I could set up IIS or WAMP and trigger off a web page, but this server will never serve any other web sites, so that seems like overkill.

I could make a "drop box" and have the Linux app put a file there with an event watcher (yes, related to the same project -- probably should have asked this question first!), but that seems, I dunno, amateurish.

Is there a "proper" way to allow a very simple communication from Linux to Windows? For example, can Windows kick off an action when it gets pinged from a particular IP address?

Cross-server communication isn't something I have any experience with, so I hope this isn't a really noob question!

Thanks,
Erich



--
Erich Hammer Head of Library Systems
er...@albany.edu University Libraries
518-442-3891 University @ Albany

"Isn't it enough to see that a garden is beautiful
without having to believe that there are fairies
at the bottom of it too?" -- Douglas Adams

Kurt Buff

unread,
Jan 27, 2022, 1:20:50 PM1/27/22
to ntsys...@googlegroups.com
This sounds like a job for WinRM:

I'm sure there are lots of other ways, too, but that's what came to mind first.

Kurt

--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/MN2PR04MB64167AAD5E96CB800EBACD19CC219%40MN2PR04MB6416.namprd04.prod.outlook.com.

Henry Awad

unread,
Jan 27, 2022, 1:58:15 PM1/27/22
to ntsys...@googlegroups.com
PowerShell could possibly work too. Have not used it on from a Linux server to initiate an action on a Windows server. Don't know if anyone else has in this group.

Michael B. Smith

unread,
Jan 27, 2022, 2:00:16 PM1/27/22
to ntsys...@googlegroups.com

I think PSRP-WinRM on Linux was dropped in favor of PSRP-SSH. Regardless, that’s a pretty big stick to install.

 

If samba is already on the Linux box, I’d use the file dropbox method. And it’ll patch as normal (patching PS would be a separate effort).

 

If samba isn’t there, I’d drop a file with SSH. You do have to install the OpenSSH server on the Windows box, but it’s supported now and patched along with Windows like any other feature.

Philip Elder

unread,
Jan 27, 2022, 4:01:21 PM1/27/22
to ntsys...@googlegroups.com

I think newer Windows versions have OpenSSH installed by default.

 

At least, when setting up key sets between fresh Ubuntu installs and the Windows PAW we use for the task ssh-keygen is run right from an elevated PoSh.

 

Might be from CMD too just never tried it there.

 

Philip Elder MCTS

Microsoft High Availability MVP

E-mail: Phili...@mpecsinc.ca

Phone: +1 (780) 458-2028

Web: www.mpecsinc.com

Blog: blog.mpecsinc.com

Twitter: Twitter.com/MPECSInc

Skype: MPECSInc.

 

Please note: Although we may sometimes respond to email, text and phone calls instantly at all hours of the day, our regular business hours are 8:00 AM - 5:00 PM, Monday thru Friday.

Markus Klocker

unread,
Jan 28, 2022, 2:13:48 AM1/28/22
to ntsys...@googlegroups.com
Why not enabling SSH on the Windows Server?
    Markus
Reply all
Reply to author
Forward
0 new messages