Regedit exited with error code 0

regedit.exe /s : does it return with an exit code? Distinguished Archived from groups: microsoft.public.windowsxp.general (More info?) does anyony know if regedit.exe, called to process data from an input reg file, returns with a sensible exit code? I’d like to know if reg file data was processed successful or not. Example: regedit.exe /s mydata.reg […]
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору urodliv, на шару \Ws2SharedFolder установлен полный доступ для группы Все. Также пробовал явно назначать полные права для domainuser — результат такой же.
К тому же, если локально из-под этого пользователя создавать сетевой диск — все успешно создается и доступ к этому диску имеется.

Код:

>PsExec.exe -e cmd /c net use z: \Ws2SharedFolder /user:domainuser password

Команда выполнена успешно.

net exited on ws1 with error code 0.

>PsExec.exe \ws1 net use

Новые подключения будут запомнены.

Состояние Локальный Удаленный Сеть

net exited on ws1 with error code 0.

Думал, что сработало, но потом залез на машину, а там диска не оказалось. Повторил PsExec.exe \ws1 net use еще раз и мне выдало состояние «Нет доступа»

Добавлено:
В общем, исходя из рассуждений отсюда:

Источник

PSExec issue — «CMD exited on (remote PC) with error code 0.»

I’ve been trying to capture screenshots of remote machines (across a MPLS tunnel) to determine if a certain issue has been resolved without interrupting the user. I’m using PSExec (SysInternals PSTools) with NirCMD.exe to attempt to get screenshots. Here’s the command:
psexec.exe \192.168.1.7 -u «mydomainadministrator» -i -c nircmd.exe savescreenshot «c:shot.png»

When I try it I get «CMD exited on (remote PC) with error code 0.» I also get this error when I simply login to the remote PC in the CMD prompt, then logout with this command:

psexec.exe \192.168.1.10 -u «mydomainadministrator» -p «password» cmd

I’ve noticed that RPC fails on my first attempt frequently, but then works, so I’ve brushed it off, but maybe that is the issue here.

Ensure AV Gear Plays Nice on the Corporate Network

as (root) said, it means success.

However I have found that sometimes I have to put the command ie: » nircmd.exe savescreenshot «c:shot.png»» into a .bat file, copy the file to the remote drive, and then run it from there.

It is also important to note that the shot.png file will be saved on the remote c: drive.

Lastly, be sure that the user which you are using has permission to write directly to c:, you might have to use a lower directory.

6 Replies

error code 0 = SUCCESS!

as (root) said, it means success.

However I have found that sometimes I have to put the command ie: » nircmd.exe savescreenshot «c:shot.png»» into a .bat file, copy the file to the remote drive, and then run it from there.

It is also important to note that the shot.png file will be saved on the remote c: drive.

Lastly, be sure that the user which you are using has permission to write directly to c:, you might have to use a lower directory.

error code 0 = SUCCESS!

Gotcha. It’s one of those «Error: there is no error» messages. Haha

as (root) said, it means success.

However I have found that sometimes I have to put the command ie: «nircmd.exe savescreenshot «c:shot.png»» into a .bat file, copy the file to the remote drive, and then run it from there.

It is also important to note that the shot.png file will be saved on the remote c: drive.

Lastly, be sure that the user which you are using has permission to write directly to c:, you might have to use a lower directory.

Ahh, very important details here! These users do NOT have local admin rights, so they can’t write to C:, plus I was thinking it was writing the file to my C: drive.

And where do you read the result of the command?

In the command prompt.

This topic has been locked by an administrator and is no longer open for commenting.

To continue this discussion, please ask a new question.

Read these next.

poor wifi, school’s third floor

I work as a help desk technician at a high school for a school district. Teachers/students on the building’s third floor have been reporting poor wifi, with their Chromebooks/laptops etc experiencing slow connectivity and random disconnections. We hav.

Need help crafting a job posting for an IT Pro

I’d really appreciate some thoughts and advice. I’m looking to hire an IT pro to be our resident go-to for all things IT (device support, SQL Server, network admin, etc) but who also is interested in learning — or even has some experience in — the.

Snap! — AI Eye Contact, Mine Batteries, Headset-free Metaverse, D&D Betrayal

Your daily dose of tech news, in brief. Welcome to the Snap! Flashback: January 13, 1874: Adding Machine Patented (Read more HERE.) Bonus Flashback: January 13, 1990: Astronauts awakened to the song Attack of the Killer Tomatoes (Read mor.

Spark! Pro series – 13th January 2023

Happy Friday the 13th! This day has a reputation for being unlucky, but I hope that you’ll be able to turn that around and have a great day full of good luck and good fortune. Whether you’re superstitious or not, .

Источник

Adblock
detector



Mar 31, 2004



1,239



0



19,280

0


  • #1

Archived from groups: microsoft.public.windowsxp.general (More info?)

Hi,

does anyony know if regedit.exe, called to process data from an input
reg file, returns with a sensible exit code?
I’d like to know if reg file data was processed successful or not.

Example:
regedit.exe /s mydata.reg

if errorlevel 1 echo «error while processing reg file…»
….

Thanks in advance.
Regards,
Andy

Guest

Guest


Guest

Guest


  • #3

Archived from groups: microsoft.public.windowsxp.general (More info?)

Then remove the /s switch.

All the /s switch does is suppress these popups…

Registry Editor
[[Are you sure you want to add the information in path of .reg file to the
registry?
If the user clicks Yes, the user receives the following message:
Registry Editor
Information in path of .reg file has been successfully entered into the
registry.]]
How To Add, Modify, or Delete Registry Subkeys and Values by Using a
Registration Entries (.reg) File
http://support.microsoft.com/default.aspx?scid=kb;en-us;310516

Sounds like you want to see them.


Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1122630774.533762.44750@g49g2000cwa.googlegroups.com,
andy <andy_gk@t-online.de> hunted and pecked:
> Hi,
>
> does anyony know if regedit.exe, called to process data from an input
> reg file, returns with a sensible exit code?
> I’d like to know if reg file data was processed successful or not.
>
> Example:
> regedit.exe /s mydata.reg
>
> if errorlevel 1 echo «error while processing reg file…»
> …
>
> Thanks in advance.
> Regards,
> Andy

apesoccer



Jun 11, 2004



1,020



0



19,310

8


  • #4

I have been getting error code 0 back with a similar run. Using psexec.exe \computer -u domainadmin -p password regedit.exe c:myregfile.reg

Running it locally it runs fine, but run it from an admin machine and it fails out with:

Connecting to computer…Starting PsExec service on computer…Connecting with PsExec service on computer…Starting regedit.exe on computer…
regedit.exe exited on computer with error code 0.

qe: running psservice.exe however in the same cmd structure runs just fine…i can start, stop and restart services np.

  • Advertising
  • Cookies Policies
  • Privacy
  • Term & Conditions
  • Topics

I’ve been trying to capture screenshots of remote machines (across a MPLS tunnel) to determine if a certain issue has been resolved without interrupting the user. I’m using PSExec (SysInternals PSTools) with NirCMD.exe to attempt to get screenshots. Here’s the command: 
psexec.exe \192.168.1.7 -u «mydomainadministrator» -i -c nircmd.exe savescreenshot «c:shot.png»

check
Best Answer

  • Author Matt Braunscheidel

    Matt9169


    This person is a Verified Professional

    This person is a verified professional.

    Verify your account
    to enable IT peers to see that you are a professional.

    thai pepper

    as (root) said, it means success.

    However I have found that sometimes I have to put the command ie: «nircmd.exe savescreenshot «c:shot.png»» into a .bat file, copy the file to the remote drive, and then run it from there.  

    It is also important to note that the shot.png file will be saved on the remote c: drive.

    Lastly, be sure that the user which you are using has permission to write directly to c:, you might have to use a lower directory.


    Was this post helpful?
    thumb_up
    thumb_down

  • View Best Answer in replies below

    Read these next…

    • Curated Can't communicate with scanner

      Can’t communicate with scanner

      Hardware

      Hello everyone,I have a client that uses Kodak ScanMate i940 scanners at their desks. They recently got a new computer that we prepped and put on their domain. This new computer is recognizing the scanner but it is unusable with the error «can’t communica…

    • Curated Different MAC address, same computer name - multiple DHCP leases

      Different MAC address, same computer name — multiple DHCP leases

      Windows

      I’m noticing a lot more now that our Wifi DHCP scopes are filled by the same computer name, but with different mac addresses. I know there’s a feature in Windows 10 called Random hardware addresses, but that setting is off. Is there anything else that cou…

    • Curated Snap! -- No-Password Logins, Solar Powered Water Filter, Glitch in the Matrix?

      Snap! — No-Password Logins, Solar Powered Water Filter, Glitch in the Matrix?

      Spiceworks Originals

      Your daily dose of tech news, in brief.

      Welcome to the Snap!

      Flashback: February 9, 1996: Introduction of the Bandai Pippin (Read more HERE.)

      Bonus Flashback: February 9, 1990: Galileo Probe does a Venus Flyby (Read more HERE.)

      You nee…

    • Curated Roku TV being used as Wallboard Issues

      Roku TV being used as Wallboard Issues

      Hardware

      Helping someone out at their shop. They have 4 large Roku screens and 2 laptops with dual HDMI ports for video. They are viewing static website business dashboards and PowerPoint. At first all 4 screens connected to wireless, worked for a while but with a…

    • Curated Charging for SSO

      Charging for SSO

      Security

      We have SSO set up with around 5 or 6 solution providers via our M365. Not one of them charges for this, they just sent us the documentation.I identified another online service in use by one of our departments which would benefit from using SSO for staff …

    Понравилась статья? Поделить с друзьями:
  • Regasm error ra0000 не удалось найти входную сборку
  • Reg ru 500 internal server error внутренняя ошибка
  • Reg open key error
  • Reduce dns lookups как исправить
  • Redshift error communicating with license server 17