Hello, I am trying to create a script like the following using powershell, in fact I tried these commands and changing the “@SET / P Data = Enter IP_ADDRESS SUBNET_MASK GATEWAY:” for “$ Data = Read-Host -Prompt” EnterIP_ADDRESS SUBNET_MASK GATEWAY: “” without getting results.
The first thing I would recommend is that you use actual Powershell cmdlets, not DOS commands. Powershell has been around for a while now and you will be remiss to find cmdlets, examples, blogs that don’t perform common networking tasks. Take a look at the following blog: