WMI in VB.Net to Create Printer Ports
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Hi All,
I am trying to use the system.management class in .NET to create a printer
port on a remote server. I know that the following code is what is used with
VBScript:
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNewPort = objWMIService.Get _
("Win32_TCPIPPrinterPort").SpawnInstance_
objNewPort.Name = "IP_169.254.110.14"
objNewPort.Protocol = 1
objNewPort.HostAddress = "169.254.110.14"
objNewPort.PortNumber = "9999"
objNewPort.SNMPEnabled = False
objNewPort.Put_
But I cannot find any information on how to achieve the same thing in
VB.NET. Can some please help me as it is driving me mad!?
Thanks in advance.
Richard McCue
.
Relevant Pages
- Re: iptables rule to block FTP-NAT-Helper-Traffic
... - the remote server responds with "sure, I'll send that data on port 5900" ... Actually it's the local FTP client which chooses and tells the remote server which port to connect to. ... As I wrote, the security problem happens only with FTP active mode, so you can block active mode data connections, which are incoming connections. ... Couldn't the hostile applet just connect locally to the VNC port and relay the communication with the hostile server? ... (comp.os.linux.networking) - Re: Help with reading strace
... Check for general network malaise by floodpinging, ... So far that problem is only present when connecting to port 1521 on ... the remote server. ... (Fedora) - Firewall causes false postives in port scans?
... I ran a Nessus scan on a remote server recently and it detected port 21 ... When manually connecting to the remote server via FTP client, ... remote server has closed connection ... (comp.security.firewalls) - RE: There was a SMTP communication problem
... Telnet to Port 25 to Test SMTP Communication ... remote server that is performing a reverse DNS lookup prior to accepting ... SMTP mail. ... (microsoft.public.exchange2000.win2000) - Re: Outlook 2k3 vs Hosted Exchange 2003 RPC over Http login problem
... Main problem so far, every time a user connects, the firewall reports a ... "port scan attack" coming back from the remote server. ... This happens with both NTLM and BASIC. ... (microsoft.public.exchange.admin) |
|