Joining an Active Directory domain using netdom
316
I suspect your double percent signs are the culprit.
You can see how it's executing in your batch file by adding an echo on
immediately before the first netdom
and running the batch file from an elevated command prompt. I expect that you're going to see something like:
netdom join %THE_COMPUTER_NAME% /domain:OPSCODEDEMO.COM /userd:Administrator /passwordd:xxx
How you're getting it to work at all w/ the double percent signs, even just running those commands on the CLI "by hand", is baffling me.
Related videos on Youtube
Author by
KelvTheKid
Updated on November 23, 2022Comments
-
KelvTheKid over 1 year
I have a text file with the following data
//info.txt $ip = "192.168.12.201" $sno = "some text" $mac = "some text"
I want to be able to convert these variables from the text file into PHP variables to be checked with presaved data. I'm able to do this in python but it causes and extra redundant step. Could what I'm trying to achieve be done in PHP?
-
marc_s over 11 yearsTotally off-topic for a programming-related Q&A site - this belongs on Serverfault.com where sysadmins hang out ...
-
Matt almost 7 yearsIf you're able to put <?php ?> inside the text file, you should be able to include it using include('info.txt'); - This may also help php.net/manual/en/function.fopen.php
-
Alexander almost 7 yearsPossible duplicate of How to evaluate formula passed as string in PHP?
-