How to filter a Collection against an Array

Nice and elegant:

$collection | Where {$_.Name -and $filterList -eq $_.Name }



Problem: Can’t print anymore on Fedora 26

Some days ago my Fedora 26 workstation stop printing on a HP 1505n connected via network. This is what i found on eventlog:

[  234.320486] pdftopdf[2220]: segfault at 10 ip 00007f34fd4ea19f sp 00007ffee7b72d80 error 6 in[7f34fd461000+1c7000]

pdftopdf is crashing… and here the bug:

Update to qpdf-libs-6.0.0-8.fc26 for solve the problem.

How to Disable SMB1

WannaCry and Co. suggest that it’s time to remove some old protocol, and SMB1 it’s one of that.

Here you find a script that is usefull for that; run it as admin rights:


This batch call a powershell script (check that all the scripts is stored on the same folder and that the execution path is where you store the scripts)

I used a batch to bypass the powershell signature and make easier for helpdesk to runas as admin.

For disable it with GPO, check this:

PROBLEM: Outlook Indexing is not reliable

If you recently start to have problem with Outlook search after June patches rollout, this is a know issue:

Based on your OS there is a fix release (check the link above) or, if you prefer a workaround; a reg key to add.


Some other links regarding indexing problem:

How to Delete WSD printer Port

I had a Windows 2012 R2 printserver where a WSD port was still there after printer deletion. Delete only the port was not possible (operation not permit).

The spooler will delete the port only if it is assigned to a printer and you are deleting the printer. As workaround you can create a fake printer using this port and a preinstalled driver, then delete the printer.

But using powershell is possible to work less…

List all the WSD Printer Port:

Get-PrinterPort -Name wsd*

Delete the WSD Printer Port (PortName):

Remove-PrinterPort -Name PortName

or if you have only one WSD port:

Remove-PrinterPort -Name (Get-PrinterPort -Name wsd*).name