Run the command in the comments: dnscmd

I use the command run in comments to run commands on a host windows below. The account that runs the command has permissions to run these commands.

cmd.exe /c dnscmd xx.xx.xx.xx hostName1 some.dns.host /recorddelete has xx.xx.xx.xx/f

cmd.exe /c dnscmd xx.xx.xx.xx /recorddelete some.dns.host hostname1 PTR/f

(real info IP and host names are hidden to protect the innocent)

Both run successfully (and should be) run interactively from a CMD prompt, I get the expected result and indicates a nslookup on the hostname '... cannot find < hostname >: field Non-existend' as expected. (img1 attached)

If run via the command run in the comments, the first command runs (to delete the a record, however, while the second command seems to work, the PTR record is not deleted and nslookup on the hostname returns ' name: < hostname > '(attached img2))

Thoughts?


Here is an excerpt of the object 'command' treatment of an article on my blog: How to run a PERL Script from a vCenter Orchestrator Workflow


// Prepare Command line and parameters to execute:

cmd = scriptName + " " + scriptParams;

System.debug("executing cmd: " + cmd);

// Create and execute the command:

var command = new Command(cmd);

command.execute(true);

// Display command results and output 

var scriptResult = command.result;

System.debug("Script Result: " + scriptResult);

var scriptOutput = command.output;

System.debug("Script Output: " + scriptOutput);

As you can see from the code above, you'll want to look at the results and the exit of the execution of the object of your cmd. I hope that this release will contain some clues as to why your second command fails...

Tags: VMware

Similar Questions

  • Run the command in the comments - vRO options?

    Hi, I am currently using vRo to run a script simple powercli with 'invoke-vmscript"to run a command at a prompt linux once it is supplied of vRA (it changes the hosts file). I'm looking for another method to do this, if someone could share their experience please.

    I thought to SSH could help, but I am dependent on having an IP address or the host name when I run the workflow. That is not the case that I need to wait for it to start, get address DHCP and save DNS.

    Does anyone have any suggestions how I could achieve? The PowerCLI works because I can do the name of the computer that went from vRA. However, the script does not work very cleanly and I would find that an alternative with vRO is possible.

    Thanks in advance for any advice

    Steve

    No problem

    Yes, you can easily run these commands with the vRO workflow.

    When you log on to your linux VM you can use the command "which" where the "command/program' is you want to run, so

    "what echo" showing you the executable you call is "/ bin/echo", while passwd is on centos for example "/ usr/bin/passwd.

    Tim

  • run the program comments-VM on the host

    Hello

    I need to find a way to suspend my VM running as easy as possible.

    The start command looks similar to "vmware - fullscreen.exe - poweron - fullscreen"xxx.vmx".

    I find the host tool "suspend the vmrun.exe." (Something I'd use)

    But I will start the process of suspension in the comment system, without switching to the host with a hotkey. In a Batch process.

    Is it possible to run this program from the commenting system directly? Or a better way to do it?

    I think that there is a problem with security.

    Thank you

    Gregor

    What operating system runs your comments? If Windows, try suspending Windows from the inside of the prompt (start-> Shutdown-> Stand-by) and see if VMware made a break from the virtual machine.

  • I get "command not found" error to the linux terminal when you try to run the tar.bz2, ACE extracted in the installation instructions. Any advice?

    I extracted to the terminal linux firefox in my own repertoire and you try to run the executable file called firefox. But he's saying "command not found".

    You seem to have 64-bit Linux because Linux versions served on mozilla.org are 32-bit.

    FTP://FTP.Mozilla.org/pub/Firefox/releases/21.0/Linux-x86_64/

  • Re: How to run the update to the BIOS of the DOS - Satellite A100 PSAA8A command prompt?

    I'm having some trouble with my GF Satellite A100 (PSAA8A). When installing a new HARD drive with a clean install of XP, I flashed by chance, one of the BIOS when installing drivers. Its kind of bricks now.

    Using a floppy disk CD boot, combined with the update of the V6.00 BIOS, I goes to a DOS command prompt, but not sure where to go now.

    Under * Tradional BIOS update *.
    See the link: [http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/faq.jsp?z=234&service=EU&from=faq_selection&CFID=B IOS & FID = TRO0000000b07]

    It is said:
    + 1. Extract the zip file containing the BIOS upgrade to a temporary folder. +
    + 2. Three subfolders will be generated in the temporary folder. "docs", "update - 3.5' disc', 'Update - CD - R or CD - RW +.
    + 3. Insert a 1.44 MB diskette formatted in the floppy disk drive. +
    + 4. Run the *.exe file in the folder "" Update - 3.5 disk ". Follow the instructions on the screen. A BIOS update diskette will be generated. +

    But there is no 3 folder. There is only a single called S10VWF that contains Winphlash etc. (see photo url). As far as I know, I can only run Winphlash Windows environment due to its GUI. Then what should I do? Help!

    http://img.Photobucket.com/albums/v259/tRUkbOY/S10SWF.jpg

    Hi Brett

    There is a little thing that you have forgotten or supervised.

    The BIOS you downloaded is a version of BIOS to WIN. It s not traditional BIOS update!

    The description published in your ad describes the update using the traditional BIOS.
    But the Toshiba driver page only provides updates of BIOS based VICTORY. The BIOS can be upgraded only from Windows operating system running.

    Please don't mix these two possibilities of updates!

  • Portege R600-108 - the tool to run the TRIM command to improve the performance of SSDS

    Hello

    We have a couple of R600-108 with SSDS, they run Vista Business 32-bit.

    I was wondering if there is a utility I can download to run the TRIM command on drives to improve performance?

    Thank you

    James

    Hello

    To be honest I m not an expert in the increase in performance of the SSD, but according to the Wikipedia article, TRIM has been implemented in Windows 7 and Windows Server 2008 R2 and came out with the final versions of these operating systems in October 2009.
    It seems former SSD drives have firmware updates, otherwise the new command will be ignored.

    According to Wikipedia, there are utilities that can send TRIM commands manually.
    These utilities are available from various manufacturers such as Intel or G.Skill.
    http://en.Wikipedia.org/wiki/trim

    You can consult the Intel tool called "Intel Solid - State Drive Toolbox and Optimizer".
    http://download.Intel.com/support/SSDC/hpssd/SB/intel_ssd_toolbox_fqa.PDF

    I hope this helps a little

  • Running a Seq file when running the GUI (command line option) return an error

    Hello

    I use a LabVIEW based UI to run/execute a file in sequence by using the command line option. My command line is "Test DUT' D:\QF\GUI-test-Sequential.seq D:\QF\GUI-Test.exe - runEntryPoint

    When I ran the get 3 popup saying that some of the perameters 'is not a valid file of LabVIEW"(see attachments). No idea how to avoid these messages? (The user interface works very well and runs the entrypoint of the USE Test)

    LabVIEW 8.5

    TestStand 4.1

    Thank you.

    Hi Tom,

    When you create a new application to your specification to Build, you must set the 'Pass all arguments for application command line' in the Advanced tab.

    Once you do that it should all work.

    Concerning

    Ray Farmer

  • Run the command in Start menu show sites and other files that I opened.

    I was typing letters in the menu run from the start menu ("Start" > "run" > "a, b, c, d, e, f, g, etc...) and I noticed that the Web sites I visited were stored there. This information is accessible by hackers or other intruders unwanted? I was checking to see if I could find my e: drive using the command run from the start menu when I noticed similar entries in the recent documents folder from the start menu. I forgot this shortcut in the past and by chance came across it accidentally. How to delete these lists. I've seen websites that need my e-mail and password. even if she had a lot of jibberish, some words were read by me at a superficial glance. What is a security breach? example: if I type only (a), then all files and websites beginning with a are displayed

    Hi Marc,

    Welcome to the Microsoft Community Forums.

    According to the description, it seems that you are facing problems in removing the story from the beginning, run the command. I'll be happy to help you in this problem.

    -What operating system is installed on your computer?

    Windows saves a history of the names of files, programs, and locations that you type in the Run dialog box. You can delete this history, which you can do if you use a public or shared computer.

    I suggest you follow the steps in the link to clear the history run in the start menu and check if it helps.

    Clear history run on the start menu

    http://Windows.Microsoft.com/en-us/Windows7/clear-the-run-history-on-the-start-menu

    I hope it helps. If you have any questions about Windows in the future, please let us know. We will be happy to help you.

  • Run the VI command line in Windows 7

    I try to open a VI and do it run whenever called from the command line.  I am running Windows 7 and LabVIEW 2009.

    I followed this guide to get me started.

    First, I marked my VI "run the opening:

    I therefore call on my command prompt similar program:

    "C:/Program Files/National Instruments/LabVIEW 2009/LabVIEW.exe" "C:/User/Desktop/test.vi"
    

    If I already open LabVIEW and running in the main menu, then it opens my VI perfectly without any problems.

    However, if I don't already have LabVIEW open, it opens LabVIEW as she normally does, but it only loads to the main menu.  It doesn't load any of my VI.

    Does anyone know if this is expected behavior, or how can I fix this so that it opens upward Although LabVIEW is currently closed?

    Well... I managed to do work haha.  If you come to ignore the document and open the file via the command line, it opens fine.  I don't know why they say that you can use the command line argument LabVIEW.exe.

    "C:\User\Desktop\test.vi"
    
  • Please help me. My task manager disappeared, also run the command

    I have automatic updated my computer this morning. After the update, I had to reboot my computer. After the reboot, my task manager disappeared, I received a message that it is disabled by the administrator. The thing is, I am the administrator. I tried to bring it using command run, but he went too. I tried the command run in the properties of the start menu, impossible to find. How can I bring back?

    Another thing, all my word files are now listed as files Visual Basic EDITOR. I guess it's because of virus. I turned off to avoid any automated scripts from script virus running, but then I can't open any word file, so I still allowed him. I can open word file after that, but they are still reported VBEfile. What is VBEfile anyway?

    Another problem, the automated system recovery tab is also missing from my computer properties after the update.

    Please help me, I'm desperate here.

    If you see things like this:

    You do not have sufficient security privileges to restore your system.
    The System Restore tab is missing from the my computer properties.
    System Restore has been disabled by group policy.  To turn on system restore, contact your domain administrator.
    The System Restore tab is available, but the turn off System Restore (disabled by Group Policy) box is grayed out.
    The task manager has been disabled by your system administrator.
    The registry editor has been disabled by your system administrator.
    The task manager has been disabled by group policy.
    The registry editor has been disabled by group policy.
    The command prompt has been disabled by your administrator.  Press a key to continue...
    The operation has been cancelled due to restrictions in effect on this computer.  Please contact your system administrator.
    The "Run" option is missing from the start menu.
    The option "Log off."... ' is missing from the Start Menu.

    The usual advice are something in the sense of "something has been disabled in the group policy...". ", and it is probably true that something has been disabled, but you know what something is and what it takes to do about it.

    If you are using XP Home Edition, you will get away with advice to use the Group Policy Editor, because there is no Group Policy Editor in XP Home and that really doesn't tell you where to look in group policy, even if you run the Group Policy Editor.

    You need a complete solution that works for all versions of XP and requires no hunting around in the Group Policy Editor or registry to find where things are that have been disabled.

    Unless you have disabled these things on purpose, chances are good that your system has a malware infection.  The malware knows what tools you use to try to find and remove, for the malware disables the things you are more likely to consume and prevents them from running if you can't find the malware and remove it.

    If your system has this kind of affliction, all malicious software tools you currently use or have used failed to protect your system so that you can expand your horizons malware detection and prevention to prevent these kinds of afflictions in the first place.

    The malware will be happy you trick into thinking that you need to so something drastic to fix your system - as a facility repair, system restore point or a total reinstallation of XP.  This is what it would be like you, but these measures are not necessary.

    You must solve the immediate problem of the tools does not, then scan your system for malware when you are finished.

    No matter what kind of malware you've used analytical tools, they are unlikely to solve this problem, because they cannot tell if the changes made to your system have been on purpose (you or an administrator who makes them) or some malware changed them, so the analysis tools will let these things alone (it's usually a good thing).

    If your system is afflicted in this way, there are probably other things that also do not work - like the registry editor, System Restore and the command prompt, so fix them all at once even if you have not discovered they are broken again.

    These commands from registry removes the registry entries that are stop opening programs.  Although the registry entries do not exist, these commands are safe to run and will work for all versions of XP.

    Before making any changes to your registry, back up the registry with this free and popular tool:

    http://www.SnapFiles.com/get/ERUNT.html

    Open Notepad to create a new text file:

    Click Start, run and enter in the box:

    notebook

    Click OK to open a new Notepad file.

    Copy and paste the following lines in bold text in the new Notepad file.

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    "DisableTaskMgr" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    "DisableRegistryTools" = -.
    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]
    "DisableCMD" = -.
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\]
    "DisableTaskMgr" = -.
    [HKEY_USERS\.default\Software\Microsoft\Windows\CurrentVersion\Policies\System]
    "DisableTaskMgr" = -.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
    "DisableCAD" = DWORD: 00000000
    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\SystemRestore]
    "DisableConfig" = -.
    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\SystemRestore]
    "DisableSR" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoRun" = -.
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoRun" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoClose" = -.
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoClose" = -.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoSetTaskbar" = -.

    Save the new text file with extension .reg on your desktop or somewhere you can remember with a name you can remember, something like:

    enableit.reg

    After you save the file, close Notepad.

    Locate the file enableit.reg on your desktop and double-click it.

    Alternatively, you can right-click on the enableit.reg file, choose open with... and select the registry editor.

    Answer in the affirmative to the question... Are you sure you want to add the information in the registry?

    You should then see a message that information has been registered in the register.

    Reboot your system and test.

    You can delete the enableit.reg file when you are finished.

    If the registry editor has also been disabled, we first fix (not a problem).

    Because now you have or have had a malware infection, I would follow with this:

    Download, install, update and do a full scan with these free malware detection programs:
    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/
    They can be uninstalled later if you wish.
  • How to use the run as command without a password in XP

    Hi there ;)
    See, me and my father have administrator accounts on a computer running Windows XP. Sometimes, I do not want to connect as myself (I want to use some of its apps while I use my own) but I still want to run commands like me (for example start firefox like me) while I'm logged into his account.

    We both don't have passwords, but when I use the Runas command either right click or the command line on my father's account, I get the error "failed to connect. The possible reasons are blank passwords." When I give myself a password, I do not get this message, but my password is empty, I get this message. How to use runas without password?

    Here is the error: http://bayimg.com/baiFMAadn

    Hello

    As the two users are administrators of the computer it you cannot use the application without password. You will need to have the password to run the application.

    For reference: overview of user accounts: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/usercpl_overview.mspx?mfr=true

  • How do you do the command prompt window stay open after running a command?

    OK, I feel stupid asking this, because I knew the answer before. I learn Visual C++ programming. The book I learn to write C++ and past then in details on the writing of the GUI from Visual C++ part. The book that I market me through compilation and to make an exe file in a cpp file, and then he said: go to the directory in Explorer and double click on the exe file. I do, and the command prompt appears a quick second before closing down. The example in the book shows the output, and the writer obviously has his guest configured to pause after executing an exe file.

    I just set up my guest to do the same thing, so I can at least see the results. I know that running the exe I wrote, but I would like to see the output for less than a second.

    I don't know how you code this. But if it's like a normal batch or whatever it is command line related.

    Follow these steps to use a switch defined by the user at the end of the script.

    To pause a file of DOS commands under Windows XP, continue to the next command, you can use the PAUSE command. Make request to the user with the text:

    Press any key to continue. . .

    Then the batch file is waiting for the user to press a button. However, if you want to pause a batch file and display anything? Simply redirect the results to no one as follows:

    pause > null

    Given that it is perhaps not very useful (how will the user know they need to press a key to continue the batch file?) you display a different prompt. Issue a command with your desired guest ECHO, and then issue the break preceding > no command.

    For example, to pause a batch file of Windows XP with the prompt "Press ENTER to run the command", use the following commands:

    echo press ENTER to run the command
    pause > null
    MCP. MCDST. LVL 80

  • I'm trying to run the sfc/scannow command. but the computer won't let me

    How to make a console session
    I'm trying to run the sfc/scannow command. but the computer won't let me. He tells me that I need to be an administrator (which I am) and I have to run a session of consul?

    Go to start | Programs | Accessories and right click on the command prompt, and then select run as administrator.  It's a console session.

    Steve

  • Cannot run the Vista command prompt, commandprompt.ink message is missing

    I'm unable to open the command prompt, commandprompt.lnk refers to lack msg is displayed.

    Hello

    Start - type in the search box-> CMD.exe

    The default path is C:\Windows\System32\CMD.exe

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    I hope this helps.

  • How to run the command sfc runs on Vista

    My dept here reimagee IT my computer today and I'm unable to access my WD external drive. WD has suggested to get help with the sfc command before possibly spoil my data. Anyone have any ideas?

    Thank you

    Hello

    Run the sfc/scannow command.

    http://support.Microsoft.com/kb/929833

    Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    1. Open an elevated command prompt. To do this, click Start, click principally madeprograms,Accessories, right-clickguest, and then clickrun as administrator. If you are prompted for an administrator password or a confirmation, type the password, or clickallow.
    2. Type the following command and press ENTER:
      sfc/scannow

      The sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions

    you have a newly imaged drive today while there should be no problem with the operating system

    SFC is only to solve minor problems

    for the major problems you will need to do a repair installation

    but this does not apply to you in your case that your IT Dept use not reimage repair

    I suggest that you go and talk to your IT Department

    ask them about the last vista hardware drivers for your hardware of computers

    and your IT Department is responsible for your safe running of computers

Maybe you are looking for

  • Restore a file from Time Machine

    Hello world I am a user of Word 2011 and I crushed my thesis with a blank document. I lost my whole job and I can't restore a previous version of the folder 'Office 2011 Autorecovery'.' Can someone help me with this issue? I am also a "Time Machine"u

  • Completely remove iTunes

    I tried all the programs and opportunities, but I miss a msi to uninstall the product, so whenever I install a new version, that it says I can't delete the old. Help me I am desperate.

  • Problem with adapter for PC laptop

    I have a R60 laptop with an integrated intel pro Wireless card which doesn't seem to work real well. I bought a portable WPC54G card and loaded the software.  Then when I put the card on the left side of the laptop, it did not close and the power led

  • Computer Dell laptop does not start with error: 0xc000021a in windows 8 pro with media center...

    I have dell laptop computer (windows 8 pro with little Media Center x 64) ##genune, not cracked or pirated... #. It worked fine until the evening yesteday and I was playing Holy 4th place after closing, I noticed that the battery is about to happen a

  • Can I upgrade Adobe Acrobat 10 Japanese Std Acrobat DC Std English?

    Hello!In my company, we have a few Adobe Acrobat 10 Std with English and Japanese interface. Now, we want to upgrade to Acrobat DC but we did not upgrade to the Japanese version. We could do with the English version upgrade (even if she changes the i