psexec

How do you run jvisualvm.exe under the local system account under Windows Server 2008?

我怕爱的太早我们不能终老 提交于 2019-12-03 19:07:08
I've been looking for a comparable approach as posted here for Windows Server 2003 for starting jvisualvm under system account. But I got the error: ...\jdk1.6.0_24\bin\jvisualvm.exe exited on ... with error code -1073741819. I found that jvisualvm is using a configuration file: ...\jdk1.6.0_24\lib\visualvm\etc\visualvm.conf This configuration file contains a default_userdir property that points to ${HOME}/... . The system account seems to have issues with ${HOME} . Changing this parameter and replace ${HOME} with C:/Temp makes the above mentioned solution available for Windows Server 2008 R2

Make sure that the default admin$ share is enable on ServerName

◇◆丶佛笑我妖孽 提交于 2019-12-03 06:53:50
When running the psexec command to remotely install or execute something on a sever on the same network the following error was displayed. Couldn't access ServerName The network name cannot be found Make sure that the default admin$ share is enable on ServerName Most references suggested that you add the following to the registry, but in my case this was already added to the server. This did not resolve the issue. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System and create or modify a REG_DWORD value LocalAccountTokenFilterPolicy and set its value to 1 Geddon

Start And Stop Windows Service remotely using PSEXEC

可紊 提交于 2019-12-03 06:15:37
How to start and and stop a Windows service remotely using PSEXEC? Preferably the syntax to write I tried the cmdlet given below psexec \\Server -u Administrator -p Somepassword ServiceName I can't test this right now, but it ought to be: psexec \\server -u username -p password net start ArgusCommunityWorkerService and psexec \\server -u username -p password net stop ArgusCommunityWorkerService PSService on SysInternals is specifically for remotely controlling services::` psservice [\\computer [-u username] [-p password]] <command> <options> where: query Displays the status of a service.

Extract session ID from psexec / PowerShell query user command

痴心易碎 提交于 2019-12-02 13:16:55
问题 I'm writing a PowerShell script to find out the session ID of the active user at a remote machine, to then launch a program using that session ID. Here is what I have so far. $queryusers = $psexecdirectory + ' \\' + $remotepc + ' -u ' + $domain + '\' + $username + ' -p ' + $password + ' query user' $results = iex $queryusers The above works fine, with the example results below being stored on the variable $results USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME usr1 3 Disc 1:12 9/5/2013 11

Run AutoIt on remote machine using psexec

…衆ロ難τιáo~ 提交于 2019-12-02 05:47:28
I am trying to run an AutoIt script on a remote machine. psexec.exe -accepteula \\remotemachine -u admin -p password "C:\Program Files\AutoIt3\AutoIt3.exe" "C:\Users\admin\runNotepad.au3" I am trying to open a Notepad from the script and write something in it. I am also writing some logs from the script. Although I can see the logs, but I am not able to see anything happening on the screen. I tried with argument -i 0 which opens an interactive screen which is not same as running the script on a local machine. Is there any other way to do it? Finally I was able to figure it out. We should first

Launch Notepad.exe using PsExec sysinternal tool

北城余情 提交于 2019-12-02 04:39:49
问题 I am trying to launch notepad.exe on remote server A from local server B. below is the command which works fine and I could see notepad.exe process on Task Manager however when I physically remote login to server I do not see notepad launched (GUI). C:\Windows\System32>D:\SysInternals\psexec.exe \\serverB -u Domain\user1 -p passXX -i -d notepad.exe PsExec v1.98 - Execute processes remotely Copyright (C) 2001-2010 Mark Russinovich Sysinternals - www.sysinternals.com notepad.exe started on

Kill a process on multiple remote machines

醉酒当歌 提交于 2019-12-02 02:26:45
I am looking as the title says to kill a process (for example name.exe) on multiple remote machines. I can do it individually using pskill or taskkill using (for example): pskill -t \ -u -p name.exe but this becomes impractical with 50+ machines. Is there a way to make it read a text file of IP Addresses like psexec does using the @C:\name.txt or in powershell or something similar? All devices are on the same domain. Thank you in advance for your help. If you have a text file with a list of machines you could do it trivially with: get-content serverlist.txt | Foreach-object {& pskill -t \\$_

Launch Notepad.exe using PsExec sysinternal tool

心不动则不痛 提交于 2019-12-02 00:01:45
I am trying to launch notepad.exe on remote server A from local server B. below is the command which works fine and I could see notepad.exe process on Task Manager however when I physically remote login to server I do not see notepad launched (GUI). C:\Windows\System32>D:\SysInternals\psexec.exe \\serverB -u Domain\user1 -p passXX -i -d notepad.exe PsExec v1.98 - Execute processes remotely Copyright (C) 2001-2010 Mark Russinovich Sysinternals - www.sysinternals.com notepad.exe started on serverB with process ID 3328. How would I see notepad GUI when logged in ? is serverB a terminal server ?

How to run executable from PHP website as a specific Windows user?

蹲街弑〆低调 提交于 2019-12-01 22:41:48
By default PHP runs under IUSR account. When executed directly: $lastline = exec('D:\\MyProgram.exe', $output, $return_var); It runs, but the program is unable to do it's tasks due to insufficient privileges. My question is: How do I run an executable under a specific Windows account from a PHP website? I've tried: When executed through Sysinternals PsExec : $lastline = exec('D:\\PsExec.exe -u UserName -p Password -accepteula "D:\\MyProgram.exe"', $output, $return_var); MyProgram.exe does not even execute at all. PHP throws empty output and return_var is -1073741502 . I assume this is some

PsExec run remote batch file in visible mode

☆樱花仙子☆ 提交于 2019-12-01 12:58:00
I am trying to execute following command psexec \\x.x.x.x -d -c -f cmd.exe /c d:\test\hello.bat It runs fine and gives output cmd.exe started on x.x.x.x with process ID 106084. But when I login on x.x.x.x I can find the process ID but no visible batch file is launched. It runs in background. Batch file echo "Hello" pause Please tell me how to see the command window launched on x.x.x.x Thanks in advance Alex K. is correct. Specifically, remove the "-d", which tells PsExec "Don't wait for process to terminate (non-interactive)". In fact, if you run the sample batch file above, which includes