Форум программистов, компьютерный форум, киберфорум
Batch (CMD/BAT)
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.77/163: Рейтинг темы: голосов - 163, средняя оценка - 4.77
27 / 27 / 8
Регистрация: 30.03.2010
Сообщений: 380
Записей в блоге: 1
1

PsExec отказано в доступе

03.09.2017, 18:19. Показов 30238. Ответов 5
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Знаю что тема заезженная, и много топиков по ней написано, но всё же не получается у меня решить эту проблему.
В общем есть компы в локальной сети, на них нет учётных записей, т.е. нет логинов и паролей.
все находятся в WORKGROUP, видят друг друга.
Запускаю утилиту:
Bash
1
PsExec64 \\имя_компа ipconfig
Получаю стандартные кракозябры: PSEXEC ╬Єърчрэю т фюёЄєях.

Вот что тут можно сделать?
Добавлял параметр в реестр целевой машины, к которой обращаюсь:
Bash
1
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
не помогло
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
03.09.2017, 18:19
Ответы с готовыми решениями:

"Отказано в доступе"
Хочу из батника в win7 starter изменить значение реестра-REG ADD HKLM\Software /v shelluuu /t...

Отказано в доступе
#include<iostream> using namespace std; int main() { system("reg add...

Отказано в доступе - Win XP
Доброго времени суток. У меня такая проблема: в локальной сети несколько компов, все друг друга...

Отказано в доступе к папкам
Парни подскажите кто сможет! Ситуация такая. Юзер пренес мне винт, на нем папка на которую...

5
4334 / 2124 / 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
4334 / 2124 / 661
Регистрация: 26.04.2015
Сообщений: 6,823
03.09.2017, 19:26 4
а просто запуск
Windows Batch file
1
2
3
@echo on
PsExec64.exe \\Имя компа
pause
что показывает?
0
5986 / 1995 / 323
Регистрация: 10.12.2013
Сообщений: 6,875
04.09.2017, 02:44 5
зачем тратить силы на борьбу с русскими буквами при диагностике access denied ?

проблема именно в доступе.

просто сетевой доступ без пароля возможен при включенной учётной записи guest(гость) без пароля на
удалённой машине, но с psexec, скорее всего, будет облом.

добейся для начала, чтобы psexec заработал с админ.учётной записью и с непустым паролем,
а потом уже можно будет последовательно разжимать тиски.

Добавлено через 14 минут
0
27 / 27 / 8
Регистрация: 30.03.2010
Сообщений: 380
Записей в блоге: 1
04.09.2017, 19:43  [ТС] 6
Цитата Сообщение от alpap Посмотреть сообщение
что показывает?
Windows Batch file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
c:\>PsExec64.exe \\COMP_1
 
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
 
PsExec executes a program on a remote system, where remotely executed console
applications execute interactively.
 
Usage: psexec [\\computer[,computer2[,...] | @file]][-u user [-p psswd][-n s][-r
 servicename][-h][-l][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<p
riority>][-a n,n,...] cmd [arguments]
     -a         Separate processors on which the application can run with
                commas where 1 is the lowest numbered CPU. For example,
                to run the application on CPU 2 and CPU 4, enter:
                "-a 2,4"
     -c         Copy the specified program to the remote system for
                execution. If you omit this option the application
                must be in the system path on the remote system.
     -d         Don't wait for process to terminate (non-interactive).
     -e         Does not load the specified account's profile.
     -f         Copy the specified program even if the file already
                exists on the remote system.
     -i         Run the program so that it interacts with the desktop of the
                specified session on the remote system. If no session is
                specified the process runs in the console session.
     -h         If the target system is Vista or higher, has the process
                run with the account's elevated token, if available.
     -l         Run process as limited user (strips the Administrators group
                and allows only privileges assigned to the Users group).
                On Windows Vista the process runs with Low Integrity.
     -n         Specifies timeout in seconds connecting to remote computers.
     -p         Specifies optional password for user name. If you omit this
                you will be prompted to enter a hidden password.
     -r         Specifies the name of the remote service to create or interact.
                with.
     -s         Run the remote process in the System account.
     -u         Specifies optional user name for login to remote
                computer.
     -v         Copy the specified file only if it has a higher version number
                or is newer on than the one on the remote system.
     -w         Set the working directory of the process (relative to
                remote computer).
     -x         Display the UI on the Winlogon secure desktop (local system
                only).
     -arm       Specifies the remote computer is of ARM architecture.
     -priority  Specifies -low, -belownormal, -abovenormal, -high or
                -realtime to run the process at a different priority. Use
                -background to run at low memory and I/O priority on Vista.
     computer   Direct PsExec to run the application on the remote
                computer or computers specified. If you omit the computer
                name PsExec runs the application on the local system,
                and if you specify a wildcard (\\*), PsExec runs the
                command on all computers in the current domain.
     @file      PsExec will execute the command on each of the computers listed
                in the file.
     cmd            Name of application to execute.
     arguments  Arguments to pass (note that file paths must be
                absolute paths on the target system).
     -accepteula This flag suppresses the display of the license dialog.
     -nobanner   Do not display the startup banner and copyright message.
 
You can enclose applications that have spaces in their name with
quotation marks e.g. psexec \\marklap "c:\long name app.exe".
Input is only passed to the remote system when you press the enter
key, and typing Ctrl-C terminates the remote process.
 
If you omit a user name the process will run in the context of your
account on the remote system, but will not have access to network
resources (because it is impersonating). Specify a valid user name
in the Domain\User syntax if the remote process requires access
to network resources or to run in a different account. Note that
the password and command is encrypted in transit to the remote system.
 
Error codes returned by PsExec are specific to the applications you
execute, not PsExec.
0
04.09.2017, 19:43
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
04.09.2017, 19:43
Помогаю со студенческими работами здесь

Нет доступа. Отказано в доступе
Некоторым папкам в свойствах поставил флажек напротив функции &quot;Шифровать содержимое для защиты...

не удалось выполнить сопоставление сетевого диска из-за следующей ошибки: отказано в доступе
как решить проблему? написано на заголовке. буду очень рад.

PsExec: Error establishing communication with PsExec service on LOCALHOST
Всем доброго времени суток. PsExec почему-то не желает исполнять процессы от имени системы / на...

"Отказано в доступе" к файлу, даже при попытке взять на себя владельца
&quot;Отказано в доступе&quot; к файлу, когда пытаюсь удалить/переместить/переименновать его, а так же когда...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
6
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru