Given the batch script below. How would I be able to give me a MAC address with no dashes and add a "D" in front of it? So when I go and paste, it has a MAC address that starts with a D and there are no dashes? Possibly even using what I copied to automatically change the computer name with it using newsid?
@ECHO OFF FOR /f "tokens=12 delims= " %%a IN ('IPCONFIG /all^|FINDSTR "Physical Address"') DO ( SET PA=%%a IF NOT "%PA%"=="." GOTO Done ) :Done ECHO %PA%| CLIP CLS ECHO The Physical Address has been copied to the clipboard. ECHO. PAUSE EXIT