![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | get-content as variable for add PrinterPorts Hello I would like form a txt file, create Printer Ports. How do that? $Port = Get-Content c:\PortListe.txt Cscript c:\Windows\System32\Prnport.vbs -a -s srvdeploy -r $Port -h $Port -me -y public -o raw -n 9100 This don't create Ports?! I hope someone can me help Thanks Gregor |
My System Specs![]() |
| | #2 (permalink) |
| | Re: get-content as variable for add PrinterPorts Try this: Get-Content c:\PortListe.txt | foreach {Cscript c:\Windows\System32\Prnport.vbs -a "-s srvdeploy" "-r $_" "-h $_" -me "-y public" "-o raw" "-n 9100" -- Kiron |
My System Specs![]() |
![]() |
| Thread Tools | |
| |