locked
Send Secure String to NetDom command RRS feed

  • Question

  • Hi! I'm invoking a Netdom command from the Client computer to the Domain Controller. The netdom command requires me to send Password credentials along with the command, Is there any possible way to use "Credential object" with Netdom command? or How to send Password as Secure String to the Netdom command.
    Thanks in Advance for your suggestions!
    Wednesday, February 21, 2018 7:25 AM

Answers

  • The NetDom command does not use a secure string. It uses a plain text password.  You cannot send a secure string to a NetDom command.

    The NETDOM command has a securepassword popup  that can be used to obfuscate the password.

    NETDOM ADD /?

    PowerShell Add-Computer can use a secure string as a password as a part of a PsCredential object.


    \_(ツ)_/


    • Edited by jrv Wednesday, February 21, 2018 7:38 AM
    • Marked as answer by BattleCooper Wednesday, February 21, 2018 7:45 AM
    Wednesday, February 21, 2018 7:35 AM