Hi @com com ,
This is an English-language forum, so it is recommended that you edit the question to post it in English.
You can refer to the following code using WMI.
Public Shared Sub DisableBidirectionalSupport(printerName As String)
Dim query As String = String.Format("SELECT * FROM Win32_Printer WHERE Name = '{0}'", printerName)
Dim searcher As New ManagementObjectSearcher(query)
Dim printer As ManagementObject = Nothing
For Each obj As ManagementObject In searcher.Get()
printer = obj
Exit For
Next
If printer IsNot Nothing Then
Dim bidirectionalSupport As Boolean = Convert.ToBoolean(printer("BidirectionalSupport"))
If bidirectionalSupport Then
printer("BidirectionalSupport") = False
printer.Put()
Console.WriteLine("Bidirectional support disabled for printer: " & printerName)
Else
Console.WriteLine("Bidirectional support is already disabled for printer: " & printerName)
End If
Else
Console.WriteLine("Printer not found: " & printerName)
End If
End Sub
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.