- Remove From My Forums
-
Question
-
i am using psexec to copy a file from local machine to remote machine
psexec \192.168.1.14 -u master -p master1234 -w c:pstoolsone.txt -c \192.168.1.14test
destination 192.168.1.14
username master
password master1234
destination file c:pstoolsone.txt
source path \192.168.1.14test
error copying \192.168.1.14test remote system
access denied
can anyone help to send a file from source to destination
any code write can you share it
vinay
vinay
-
Moved by
Friday, June 28, 2013 2:04 PM
IT related
-
Moved by
Answers
-
«-w» is supposed to designate a working directory, not a file (one.txt).
-
Marked as answer by
tracycai
Friday, July 5, 2013 1:32 AM
-
Marked as answer by
-
Hi,
What system are you using?
Also, run the command in an elevated command prompt.
Tracy Cai
TechNet Community Support-
Marked as answer by
tracycai
Friday, July 5, 2013 1:32 AM
-
Marked as answer by
I want to run a script I called «systemInfo.vbs» that outputs to a logfile the system name and service pack.
In command prompt I am doing «PsExec.exe REMOTECOMPUTER -c systemInfo.vbs».
I am running this from a directory on my local system that has ONLY PsExec.exe and systemInfo.vbs
I get the error
PsExec could not start systemInfo.vbs on REMOTESERVER: «The system
cannot find the file specified.
Any idea why this may be? I thought I could do this to run a remote script as if it is on the remote server?
asked Jul 17, 2012 at 14:47
You need to give the path to your script either on the remote pc or through a UNC path on a share on your pc or a netsworkdrive. So if the script has a copy on the remote c:
PsExec.exe \REMOTECOMPUTER -c c:systemInfo.vbs
or if it is on the share \mypcshared
PsExec.exe \REMOTECOMPUTER -c \mypcsharedsystemInfo.vbs
Also you need to make sure you have administrator rights on the pc where you start the script and depending on what your script does possibly on the remote pc as well.
answered Jul 17, 2012 at 15:13
peterpeter
41.5k5 gold badges64 silver badges107 bronze badges
2
For anyone who might encounter this in the future, the -c
flag does allow you to copy over a file for execution; the documentation didn’t specify, but you need to follow it with the path on your local machine to the binary you want copied and executed. (I have submitted a pull request to the documentation.)
For example, this could be used to add the «Blend for Visual Studio SDK for .NET» to a remote installation of Visual Studio 2017 Professional by copying the web installer (named vs_professional.exe
) to that machine (\TargetMachine
) with credentials, (note the DOMAIN is only if you’re using a domain instead of local user), and executing it with appropriate parameters.
D:PSToolsPsExec64.exe "\TargetMachine" -u "DOMAINuser" -p "pass" -h -c "D:deployvs_professional.exe" vs_professional.exe modify --installPath "C:Program Files (x86)Microsoft Visual Studio2017Professional" --add Microsoft.Component.Blend.SDK.WPF --passive
Another contrived example:
PsExec64.exe \Target -u user -p password -h -c "filetoremoteexec.exe" filetoremoteexec.exe --flag param1 param2
answered Jan 11, 2018 at 16:30
CodeShaneCodeShane
6,4701 gold badge17 silver badges24 bronze badges
I can’t seem to get psexec
commands to work on a remote Windows 7 Enterprise workstation.
I’m trying to execute the following command:
psexec.exe \172.16.165.157 -u jc -p testing123 -c -f -i cmd.exe
But I keep getting the error:
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
Error copying C:WINDOWSsystem32cmd.exe to remote system:
Access is denied.
I’m trying to execute the command from a machine running Windows XP Professional.
slayernoah
1,6302 gold badges13 silver badges19 bronze badges
asked Jun 30, 2010 at 17:18
3
I used the -d
argument as a workaround. But that means I don’t get back the return code from the process I started remotely.
This is a workaround, but it is not ideal.
slayernoah
1,6302 gold badges13 silver badges19 bronze badges
answered Oct 23, 2010 at 15:43
If you are trying to do something that could generate a UAC prompt on the remote system, you need to use this:
-h If the target system is Vista or higher, has the process run with the account's elevated token, if available.
Copying cmd.exe from the system32 directory of a WinXP machine to the system32 directory of a Win7 machine is a very poorly conceived example. Please be careful. It is unwise to treat system files with such disrespect, especially across OS versions or architectures.
When you are using psexec, please specify a full path that is not within the c:windows hierarchy on the remote system.
answered Aug 23, 2010 at 14:30
SkyhawkSkyhawk
14.2k3 gold badges53 silver badges95 bronze badges
Presumably, there is a user account «jc» on the machine «172.16.165.157», with the password «testing123», and that account has «Administrator» rights there?
If the answer is «no» then this is your problem.
You don’t want to copy «CMD.EXE» to the remote machine, either. It’s already there. You don’t need the «-c» flag on your PSEXEC command-line.
answered Jun 30, 2010 at 17:29
Evan AndersonEvan Anderson
141k19 gold badges192 silver badges329 bronze badges
2
Try -u computernamejc
answered Aug 14, 2010 at 14:23
Luca MatteisLuca Matteis
5284 gold badges11 silver badges21 bronze badges
3
Three things comes to my mind…
- Make sure to activate admin$ share on the target
- Even if you pass an admin user in the arguments with psexec you still need to run the psexec-command itself on the source as a administrator too.
- On the resent psexec there is a -h switch to overcome issues reaching Vista and above machines, although I haven’t tested it.
Magellan
4,4313 gold badges29 silver badges53 bronze badges
answered Aug 1, 2012 at 14:58
Hello Team,
I am using PSEXEC to get registry key value. The below is my code
Powershell:
set-alias psexec «e:testpsexec.exe»
psexec \172.20.118.74 -i -d -s -u xsumrouadm -p Welkom01 /c «E:testDeviceHealthRegistry.bat»
Batch file:
@echo off &setlocal
reg query HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlClass{4D36E972-E325-11CE-BFC1-08002BE10318}011 /v «IEEE11nmode»
@echo >> \esessmw2395c$testQueryDeviceHealth-Registry.csv
I am getting error as below:
psexec :
At line:3 char:1
+ psexec \in00121324 e:testDeviceHealthRegistry.bat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
PsExec v2.11 — Execute processes remotely
Copyright (C) 2001-2014 Mark Russinovich
Sysinternals — www.sysinternals.com
The system cannot find the path specified.
Connecting to in00121324…Starting PSEXESVC service on in00121324…Connecting with PsExec service on in00121324…Starting
e:testDeviceHealthRegistry.bat on in00121324…
PsExec could not start e:testDeviceHealthRegistry.bat on in00121324:
Computer name modified to IPaddress
psexec :
At line:3 char:1
+ psexec \172.20.118.74 -i -d -s -u xsumrouadm -p Welkom01 /c «E:testDeviceHeal …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
PsExec v2.11 — Execute processes remotely
Copyright (C) 2001-2014 Mark Russinovich
Sysinternals — www.sysinternals.com
The file exists.
Connecting to 172.20.118.74…Starting PSEXESVC service on 172.20.118.74…Connecting with PsExec service on
172.20.118.74…Copying E:testDeviceHealthRegistry.bat to 172.20.118.74…Error copying E:testDeviceHealthRegistry.bat to
remote system:
Could someone help me please……
Regards,
Suman Rout
-
Moved by
Tuesday, February 2, 2016 11:04 PM
Unanswerable drive-by question
Перейти к содержанию
На чтение 2 мин Обновлено 17.01.2023
Используем psexec от Марка Руссиновича
Все новые темы
Автор | ||||
---|---|---|---|---|
svavlad79 Новичок Зарегистрирован: 19.06.2007
|
|
|||
Вернуться к началу |
|
|||
Зарегистрируйтесь и реклама исчезнет!
|
||||
ChaoLi Новичок Зарегистрирован: 01.10.2007
|
|
|||
Вернуться к началу |
|
|||
ChaoLi Новичок Зарегистрирован: 01.10.2007
|
|
|||
Вернуться к началу |
|
|||
romand Участник форума Зарегистрирован: 14.04.2011
|
|
|||
Вернуться к началу |
|
|||
MVV Windows guru Windows guru » title=» Windows guru » border=»0″/> Зарегистрирован: 20.10.2003 |
|
|||
Вернуться к началу |
|
|||
romand Участник форума Зарегистрирован: 14.04.2011
|
|
|||
Вернуться к началу |
|
|||
Fraer Участник форума Зарегистрирован: 13.12.2010 Источник Используем psexec от Марка Руссиновича |
Все новые темы |
Автор | ||||
---|---|---|---|---|
Max999 Почетный житель Зарегистрирован: 04.02.2006 |
|
|||
Вернуться к началу |
|
|||
Зарегистрируйтесь и реклама исчезнет!
|
||||
svavlad79 Новичок Зарегистрирован: 19.06.2007
|
|
|||
Вернуться к началу |
|
|||
xlam Активный участник Зарегистрирован: 23.09.2005
|
|
|||
Вернуться к началу |
|
|||
SpV82 Участник форума Зарегистрирован: 19.09.2006
|
|
|||
Вернуться к началу |
|
|||
Nikum Участник форума Зарегистрирован: 16.07.2004 |
|
|||
Вернуться к началу |
|
|||
svavlad79 Новичок Зарегистрирован: 19.06.2007
|
|
|||
Вернуться к началу |
|
|||
ChaoLi Новичок Зарегистрирован: 01.10.2007
|
|
|||
Вернуться к началу |
|
|||
ChaoLi Новичок Зарегистрирован: 01.10.2007
|
|
|||
Вернуться к началу |
|
|||
romand Участник форума Зарегистрирован: 14.04.2011
|
|
|||
Вернуться к началу |
|
|||
MVV Windows guru Windows guru » title=» Windows guru » border=»0″/> Зарегистрирован: 20.10.2003 Источник Читайте также: Ordersend error 4107 таблица ошибок Adblock |
hello everyone,
i intend to install a management agent on a windows host, i did that following the offical guide but I meet some questions.
my oem version is 13.2..0,
the offical guide link :Installing Management Agents on Microsoft Windows Target Hosts Without Using Cygwin
the content of the response file is as follows:
HOST_NAMES=WIN-SO81AGGO0DG
USER_NAME=administrator
PASSWORD=123456a!
PSEXEC_DIR=C:PSTools
AGENT_IMAGE_PATH=C:TEMP13.2.0.0.0_AgentCore_233
AGENT_BASE_DIR=C:Ag
AGENT_REGISTRATION_PASSWORD=Oracle12c
EM_UPLOAD_PORT=1159
OMS_HOST=Oracle195
REMOTE_SYS_DIR=C:Windows
LOG_LOC=C:log
The error I meet ,please see the picture
the log is as follows:
Copying C:TEMP13.2.0.0.0_AgentCore_233\unzip.exe C:TEMP13.2.0.0.0_AgentCore_233\unzip_tmp.exe
已复制 1 个文件。
C:PSToolspsexec.exe \WIN-SO81AGGO0DG -u administrator -p ******AgADATMP_—_—
PsExec v2.2 — Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals — www.sysinternals.com
Connecting to WIN-SO81AGGO0DG…
Starting PSEXESVC service on WIN-SO81AGGO0DG…
Connecting with PsExec service on WIN-SO81AGGO0DG…
Starting cmd.exe on WIN-SO81AGGO0DG…
cmd.exe exited on WIN-SO81AGGO0DG with error code 0.
C:PSToolspsexec.exe \WIN-SO81AGGO0DG -u administrator -p ******TEMP13.2.0.0.0_AgentCore_233\unzip_tmp.exe
PsExec v2.2 — Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals — www.sysinternals.com
Connecting to WIN-SO81AGGO0DG…
Starting PSEXESVC service on WIN-SO81AGGO0DG…
Connecting with PsExec service on WIN-SO81AGGO0DG…
Copying C:TEMP13.2.0.0.0_AgentCore_233\unzip_tmp.exe to WIN-SO81AGGO0DG…
Starting C:TEMP13.2.0.0.0_AgentCore_233\unzip_tmp.exe on WIN-SO81AGGO0DG…
unzip_tmp.exe started on WIN-SO81AGGO0DG with process ID 3024.
C:PSToolspsexec.exe \WIN-SO81AGGO0DG -u administrator -p ******Windowsunzip_tmp.exe C:AgADATMP_—_—
PsExec v2.2 — Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals — www.sysinternals.com
Connecting to WIN-SO81AGGO0DG…
Starting PSEXESVC service on WIN-SO81AGGO0DG…
Connecting with PsExec service on WIN-SO81AGGO0DG…
Starting cmd.exe on WIN-SO81AGGO0DG…
cmd.exe exited on WIN-SO81AGGO0DG with error code 0.
C:PSToolspsexec.exe \WIN-SO81AGGO0DG -u administrator -p ******TEMP13.2.0.0.0_AgentCore_233
PsExec v2.2 — Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals — www.sysinternals.com
系统找不到指定的路径。
Connecting to WIN-SO81AGGO0DG…
Starting PSEXESVC service on WIN-SO81AGGO0DG…
Connecting with PsExec service on WIN-SO81AGGO0DG…
Copying C:TEMP13.2.0.0.0_AgentCore_233 to WIN-SO81AGGO0DG…
Error copying C:TEMP13.2.0.0.0_AgentCore_233 to remote system:
正在 Ping 127.0.0.1 具有 32 字节的数据:
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
来自 127.0.0.1 的回复: 字节=32 时间<1ms TTL=128
127.0.0.1 的 Ping 统计信息:
数据包: 已发送 = 10,已接收 = 10,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 0ms,最长 = 0ms,平均 = 0ms
C:PSToolspsexec.exe \WIN-SO81AGGO0DG -u administrator -p ******Windows C:AgADATMP_—_—
PsExec v2.2 — Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals — www.sysinternals.com
系统找不到指定的文件。
Connecting to WIN-SO81AGGO0DG…
Starting PSEXESVC service on WIN-SO81AGGO0DG…
Connecting with PsExec service on WIN-SO81AGGO0DG…
Starting cmd.exe on WIN-SO81AGGO0DG…
cmd.exe exited on WIN-SO81AGGO0DG with error code 1.
what should i do? please help,thanks
bupal 27 / 27 / 8 Регистрация: 30.03.2010 Сообщений: 380 Записей в блоге: 1 |
||||||||
1 |
||||||||
03.09.2017, 18:19. Показов 25547. Ответов 5 Метки нет (Все метки)
Знаю что тема заезженная, и много топиков по ней написано, но всё же не получается у меня решить эту проблему.
Получаю стандартные кракозябры: PSEXEC ╬Єърчрэю т фюёЄєях. Вот что тут можно сделать?
не помогло
__________________
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
03.09.2017, 18:19 |
Ответы с готовыми решениями: «Отказано в доступе» Отказано в доступе int main() Отказано в доступе — Win XP Отказано в доступе к папкам 5 |
4330 / 2120 / 661 Регистрация: 26.04.2015 Сообщений: 6,823 |
|
03.09.2017, 19:18 |
2 |
по-моему как раз PsExec не дружит с ru, может ip вместо имени — …?
0 |
27 / 27 / 8 Регистрация: 30.03.2010 Сообщений: 380 Записей в блоге: 1 |
|
03.09.2017, 19:23 [ТС] |
3 |
имена компов латиницей, но ip тоже пробовал, всё так же. кстати с русским именем psexec работал, пробовал на своём же компе
0 |
alpap 4330 / 2120 / 661 Регистрация: 26.04.2015 Сообщений: 6,823 |
||||
03.09.2017, 19:26 |
4 |
|||
а просто запуск
что показывает?
0 |
5617 / 1693 / 292 Регистрация: 10.12.2013 Сообщений: 5,957 |
|
04.09.2017, 02:44 |
5 |
зачем тратить силы на борьбу с русскими буквами при диагностике access denied ? проблема именно в доступе. просто сетевой доступ без пароля возможен при включенной учётной записи guest(гость) без пароля на добейся для начала, чтобы psexec заработал с админ.учётной записью и с непустым паролем, Добавлено через 14 минут
0 |
bupal 27 / 27 / 8 Регистрация: 30.03.2010 Сообщений: 380 Записей в блоге: 1 |
||||
04.09.2017, 19:43 [ТС] |
6 |
|||
что показывает?
0 |