How to run command on all machine in AD?

Hi,
I need to run few commands on different OU's in my Active directory environment, and want to make sure commands did run successfully on all machines. Please guide me for the same.

Hello,
Either use a Start-Up script or use Enter-PSSession at Powershell or use
PSExec. Below links might be helpful. You need WinRM up and running on your clients.
Use PowerShell to Run WMI Commands on Remote Computers
PsExec v2.11
Regards.
Mahdi Tehrani   |  
  |  
www.mahditehrani.ir
Please click on Propose As Answer or
to mark this post as
and helpful for other people.
This posting is provided AS-IS with no warranties, and confers no rights.
How to query members of 'Local Administrators' group in all computers?

Similar Messages

  • How to run JMS in multiple machines?

    hello all,
    i am new to jms, so please let me know how to run jms in multiple machines.
    i mean, iin one machine publisher and the queue/topic are running, in other machine listener/clent. so client and the publisher must be running in an application servers. so it means only two app servers can send and receive messages?
    then what is the advantage of JMS?
    I think the sender will be sending messages and the listener can get them at later time, is my understanding is correct?
    Please let me know how it works in multiple machines? and how shold i start now?
    please give me the details....
    thanks in advance.
    charan

    Hi Charan!
    If I understand your questions right, yes, you can use JMS on several physical machines. They connect using JNDI.
    However, you cannot communicate asynchronously through JMS alone. The benefit of JMS is that you have a common interface to use when talking to a messaging provider, like WS MQ, Sonic MQ, etc. Most vendors support JMS, and those who do are called JMS providers. They are required to implement either the Queue functionality or Topic functionality (or both). When using a JMS provider, you really see the benefit of JMS. How else would you secure that your system is loosly coupled? Also, by using JMS and Message Driven Beans you get the benefits of container managed transactions, object pooling, etc.
    If you do not have a JMS provider, you still have the benefit of a loosly coupled system by using JMS to integrate your applications, but in a large system, you should consider a tool for asynchronous messaging(again WS MQ, Sonic MQ, etc).
    I would recomend you start by reading the JMS section of the J2EE tutorial provided by sun.
    -K-

  • How to run forms6i on Unix Machine

    Hi all,
    I have just migrated a form4.5 to form6i. We have character mode application.
    Can anyone give me some idea how to run form6i on unix machine.
    Is it the same way we run form4.5(f45gen xyz.fmb $Path) or bit different
    Thanks
    regds
    Lasily Thomas

    We run some Forms6i character-mode forms on Linux (using "f60run") and just started having some problems after we upgraded our database from 8i to 9i, and especially after applying the latest patch to 9.2.0.4. We get lots of ORA-03113 errors now. We also have problems with at least some calls to server-side (user-written, not built-in) stored functions (not procedures). The Forms compiler crashes on these unless we re-write those function calls to call new wrapper procedures that we wrote (that in turn call the existing functions).

  • How to run db2ckmig on all DB partitions?

    We need to check the readiness of our DB for the migration to 9.5.
    Could you inform us how to run db2ckmig on all DB partitions? Exact syntax and steps are appreciated.
    Thanks!

    Hi Jennifer.
    If all of your partitions are physical partitions (i.e. a separate physical machine for each), then you can run db2_all as the instance owner directly as follows:
    db2_all "db2ckmig <dbname> -l /tmp/db2ckmig.log"
    However, if you are using multiple logical partitions on each physical machine, you run into problems with collisions accessing the same log file from multiple partitions on the same machine.  In this case, you must write a script or some sort of loop to automate this process.  For example, you can do something like this on windows:
    for /F "tokens=1" %1 in (db2nodes.cfg) do db2_all "<<+%1< db2ckmig <dbname> -l /tmp/db2ckmig.log.%1"
    On linux/unix, you likely need to script a while loop through a scan of the db2nodes.cfg file using shell or perl, in order to get a list of partitions, and then execute the db2_all using those partition numbers as shown in the above windows example with %1.
    Best regards,
    Jer.

  • How to run command SQLLoader Oracle in c#

    Hello,
    How to run command SQLLoader Oracle in c#. I try my sourcode for run this SQLLoader, but nothing happen and error "No process is associated with this object.". Please tell me how i fix it. Thanks.
    This is my code:
    System.Diagnostics.Process process1;
    process1 = new System.Diagnostics.Process();
    process1.EnableRaisingEvents = false;
    string strCmdLine;
    strCmdLine = @"/C SQLLDR XL/secreat@O11G CONTROL=E:\APT\LoadXL.ctl";
    System.Diagnostics.Process.Start("CMD.exe", strCmdLine);
    process1.WaitForExit();
    process1.Close();

    jesperdj ,thanks:)
    actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
    robin

  • How to run qemu Linux virtual machines properly on android tabs.

    My tab specification's are 1.2 GHz quad core processor and 1 GB ram, 16 GB internal ROM.
    I want to run RHEL 5.0 X86 CLI I mean without any gui on my tab and so I followed the steps below
    At first on windows I have installed qemu manager and after that I have created a virtual machine RHEL with processor option as Pentium 3 and ram option with 256 MB. The installation was successful and I am able to boot properly into it.
    After that I have transferred the installation image to my tab. In order to run the virtual machine I have installed limbo qemu manager. I have selected the transferred image and specified the same options as above.
    When I run the above virtual machine I am unable to boot into my system properly and I getting the following errors
    kernel panic not syncing: kernel compiled for Pentium+ requires TSC feature.
    general protection fault : fffa [#1]
    Kindly suggest how to successfully run the above virtual machine on my tab.
    Regards,
    Rupesh.
    Regards,
    Rupesh.

    You don't say what tablet you have, but all of Lenovo's Android tablets that I know of have ARM processors, not X86 processors, so what you're doing isn't going to work.

  • URGENT-How to run command in java application???

    URGENT!
    i would like to run command to invoke some applications (like invoke application using command line in DOS) in my java appication.
    Do anyone know how to do this? Thanks a lot.

    This question has been asked upteen times.
    ok the code is
    for win95
    Runtime.getRuntime().exec( "start c:\\tmp.txt" );
    for win 2000
    Runtime.getRuntime().exec( "cmd /C startc:\\tmp.txt" );
    //change the file to your desire file..
    i am not so sure about win98, sorry...

  • How to run command line argument programe

    Hi guys, I am doing pass command line argument programe in java but I don't know how to run this programe. Path for this programe in my my computer is C:\Users\Desktop\Mainjava\mycode\CommandProgjava*
    {code/}
    public class CommandProg
    public static void main(String[] args)
    System.out.println("d");
    for (int i = 0; i < args.length; i++)
    System.out.println(args);
    {code/}
    Where i need to go and what command i need to give so i can execute this programe(I am using window vista). I only know i have to give
    this command some where CommandProg arg1 arg2 arg3 arg4. Output should be
    Output:
    arg1
    arg2
    arg3
    arg4
    Please help me, Thanks in advance.
    Edited by: JayVirk on Dec 30, 2007 11:33 AM

    Jay,
    Your question isn't very clear, hence Joerg's well meaning but irrelevant advise.
    Do you mean:
    I've written a simple program in java which echos
    it's command-line arguments to back to the console.
    Here's my code:
    package forums;
    public class ArgsEchoer
      public static void main(String[] args) {
        for (String arg : args) {
          System.out.println(arg);
    But can't figure out how to compile and run the program.
    I'm using winblows shista, and it's cr@p.
    Please help me, Thanks in advance.So... where are you at? Have you installed the JDK (java development kit)? Which version? Is your path set? Is your classpath set?
    Start here: http://java.sun.com/developer/onlineTraining/new2java/

  • How to run commands like "ipconfig" and get the output in adobe AIR in windows?

    import flash.desktop.NativeProcess; 
    import flash.desktop.NativeProcessStartupInfo;   
    if (NativeProcess.isSupported) {     
         var npsi:NativeProcessStartupInfo = new NativeProcessStartupInfo();     
         var processpath:File = File.applicationDirectory.resolvePath("MyApplication.whatever");     
         var process:NativeProcess = new NativeProcess();       
         npsi.executable = processpath;     
         process.start(npsi); 
    The above can only run a sub-application, but how to run an independent  application(command) like ipconfig and get the result?

    Hi,
    here is an example of running a net Use command line from AIR, unig the new NativeProcess. Hope it will help !
    function launchProcess()
      var file = air.File.applicationDirectory;
      // set command path
      file = file.resolvePath("C:/Windows/system32/net.exe");
      var nativeProcessStartupInfo = new air.NativeProcessStartupInfo();
      nativeProcessStartupInfo.executable = file;
      // prepare command parameters
      var args = new runtime.Vector["<String>"]();
      args.push('USE');
      args.push('W:');
      args.push('/delete');
      args.push('/y');
      // set arguments
      nativeProcessStartupInfo.arguments = args;
      // add listeners to catch command outputs
      process.addEventListener(air.ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
      process.addEventListener(air.ProgressEvent.STANDARD_ERROR_DATA, onErrorData);
      process.addEventListener(air.NativeProcessExitEvent.EXIT, onExit);
      // create and run Native process
      process = new air.NativeProcess();
      process.start(nativeProcessStartupInfo);
    function onOutputData(ProgressEvent)
      var processResults = process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable);
      air.trace("Results: \n" + processResults);
    function onErrorData(ProgressEvent)
      var processResults = process.standardError.readUTFBytes(process.standardError.bytesAvailable);
      if(processResults.search('password') > -1){
        window.alert('Bad password');
      air.trace("Errors: \n" + processResults);
    function onExit(NativeProcessExitEvent)
      air.trace("Process ended with code: " + NativeProcessExitEvent.exitCode);

  • How to run commands upon system boot as user?

    How can I as a user run commands upon system boot? In Vixie's cron, one can use the @reboot syntax in a crontab, and the job is ran every time the cron daemon starts. Arch however, uses Dillon's cron which seems not support this feature.

    bwalk wrote:Hmm, does not work, because root owns init, so everything requires root. stb's version is valid, the -s parameter drops privileges to <USER>, spawns a shell and executes <COMMAND>. So, no security problem whatsoever.
    So there is nothing like @reboot in vixiecron?

  • How to run command line tool in my program???

    Hi,all,I've got some tools that are usually,or take JDK for example,if we are not using an IDE,we need to open the command prompt,and then use the javac command to compile the source files and the "java "command to run the program,and both of them accept some command line params.The problem is that how could i integrate the tools in my own program,like JBuilder or some other IDE,you configure the params and compile and run in the IDE which don't need to open a command line prompt.Hope i have got my question clear:)
    Best regards..

    jesperdj ,thanks:)
    actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
    robin

  • How we run command line commands in oracle

    Hi,
    In sql server i have an option "xp_cmdshell" i can run windows commands e.g "dir " using query analyzer.
    How can i do same thing in oracle
    Thanks in advance.
    Regards
    Faheem

    > MY SELECT:select OSexec('dir') as STDOUT from dual;
    ERROR:-1command[dir] The handle is invalid.
    In the sample code, I've executed a Linux/Unix program called date, physical file /usr/bin/date.
    Is there a DATE.EXE or a DIR.EXE program that you can execute on Windows?
    No. Both DATE and DIR are commands of a program - a 32bit console program called CMD.EXE.
    Your confusion stems from thinking that OSEXEC is calling the Windows shell command line. It is not. It is not calling CMD.EXE and passing Window Shell Commands to CMD.EXE.
    OSEXEC is calling, via Java, the Win32 API call called CreateProcess(). This is a call to the Win32 kernel. It requests the kernel to load an executable program as a process image.
    The kernel expects an EXE (or executable) file to load. You are passing it a command from a program. You just as well can pass it a Java command, a MS Access Basic Command, an Excel Macro, etc... Same thing. The kernel has no idea that this "command" needs another program to be loaded, and that command be "passed" somehow to that program.
    So, you need to call CMD.EXE via OSEXEC. And you can pass parameters to it. Open a Command Console and type cmd /? for help on the command line switches and parameters for CMD.EXE.
    I believe the following should work:
    SQL> select OSEXEC( 'c:\windows\system32\cmd.exe /c date /t') from dual;

  • How to run application on two machine?

    hi
    how can i run coherence test program on two machine,
    and what configuration need on two machine, so that i can see the sharing of cache.
    thanks
    praven jain

    Here are some "getting started" links that may help:
    http://wiki.tangosol.com/display/COH33UG/Installing+Oracle+Coherence
    http://wiki.tangosol.com/display/COH33UG/Creating+and+Using+Coherence+Caches
    http://www.javalobby.org/java/forums/t78008.html
    Coherence includes a default configuration out-of-the-box that will connect any machines using that same configuration (e.g. if you launch the cache client or server scripts in the /bin folder they will detect each other automatically via multicast).
    Jon Purdy
    Oracle

  • How to run EMET on all Process (tabs) of the Modern IE (Metro)

    Hi,
    i have the problem that EMET is only running on the first open Tab-process in my Modern IE.(metro)
    Body text cannot contain images or links until we are able to verify your account...
    In this picture i have 3 Tabs open in modern IE and on the EMET GUI says that only the first Tab is protected.
    On the Desktop EMET runs on all Tabs and Process of IE11.
    How can i use EMET on alle Process of my modern IE?
    IE 11
    Win 8.1 X64
    EMET 4.1

    there isn't any option to set this tab behaviour. your home page will be loaded on any new Safari window but new tab is always blank.

  • How to run java programs on machines without JDK

    I want to make an installer for my java program that would work on machines even without JDK or Java runtime. How should I go?

    Here's another point.
    There is no particular need to "install" anything to run java. You can simply copy the jre to a directory of your choice, and from that directory invioke the JVM as you need it.

Maybe you are looking for