When I take the following and attempt to have parameters passed I end up with File Path errors.
$command = { dnscmd PS_Server /RecordDelete myzone myhost A 192.192.192.192 /f }
Invoke-Command -ComputerName PS_Server $command
Change that fails and produces errors -
$command = { dnscmd $PS_Server /RecordDelete $myzone $myhost A $IP /f }
Do I have to have nested quotes to be able to pass the parameters correctly?
Thank you for your assistance.
SteveR77
I.T. where a world of choas and confusion comes down to nothing but 1s and 0s.
$command = { dnscmd PS_Server /RecordDelete myzone myhost A 192.192.192.192 /f }
Invoke-Command -ComputerName PS_Server $command
Change that fails and produces errors -
$command = { dnscmd $PS_Server /RecordDelete $myzone $myhost A $IP /f }
Do I have to have nested quotes to be able to pass the parameters correctly?
Thank you for your assistance.
SteveR77
I.T. where a world of choas and confusion comes down to nothing but 1s and 0s.