RE: a .bat file to execute something into a different server




net start >running.txt

if executed on the server, will create a file listing the running services.
You could schedule this to run at suitable intervals, and deposit its output
into a visible share, such as Q:

A slightly more sohisticated method would be to use AutoIt's ProcessExists()
fucntiion to poll the required services and produce a report.

It is in fact possible to launch a process on a remote computer, see
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
but this requires Domain Admin or server local-admin credentials to be
stored on the local computer, and thus exposes the server to all sorts of
security issues. In principle I don't recommend doing this kind of thing.

"HuanManwe" wrote:


Hello,

what I want to do is:

1.- Use a .bat file to get into a Win2003 Server (already done)

2.- Execute there "start services.msc" (I can only make it work
locally)

The idea was to see if certain services were started or not. For
example the IIS Server. But at least I needed to execute something
there.

This is what I've done until now.:

Code:
--------------------
@echo off

net use Q: \\servername domainname /user:serverIP\adminname password /PERSISTENT:NO

pause

echo We're in but now I try and execute services.msc:

START C:\WINDOWS\system32\services.msc

goto end

:end
echo End of process
--------------------


Can you help me?

Thank you all in advance.




--
HuanManwe

.



Relevant Pages

  • Re: Script Need to check disk space on remote servers
    ... Is it possible to keept the process running by skipping over remote computer ... Is it possible to get SQL Server database and log information (like ... echo Checking drives on Server %%S... ... REM and then launches it using the default browser. ...
    (microsoft.public.windows.server.scripting)
  • Re: File Upload - Security Issues
    ... uploaded and the user could upload any or all of these in theory. ... There is no one product that can give you 100% security, ... > Code doesn't execute in local memory space unless remote user has rights ... > You don't have MS Office installed on the server. ...
    (microsoft.public.scripting.vbscript)
  • Re: System.Security.SecurityException was unhandled
    ... Is it a must that I need to register the COM server to the machine using ... CAS permissions on the client machine, and the COM issue is a new problem. ... assembly actually has the permission in question. ... When I execute the application I received and error message. ...
    (microsoft.public.dotnet.security)
  • 2nd Post - Trouble Getting VS.Net 2003 WalkThrough working
    ... the server. ... MSDE either from the Setup or from the SQL2KDeskSP3 execute. ... it does look like some of the sample databases have been ... >> and they directed me to install MSDE and they attached a ConfigSamples ...
    (microsoft.public.sqlserver.msde)
  • Re: IIS 6.0 on Windows Server 2003
    ... If PHP insists on using CMD.EXE to execute the shellcommand on the ... server, then no, you have no choice -- you must give read permissions to the ... this would be a security vulnerability caused by PHP. ...
    (microsoft.public.inetserver.misc)

Quantcast