Does anyone have an idea on how I can execute the below code in php ?
<?php
$output = "rundll32 printui.dll PrintUIEntry /in /n \\omgb-omga-1\printer-hr";
?>
Running the above doesn't add the network printer...
Does my syntax in php is correct ? Because I am able to add the printer when i paste the command in command prompt .