No PowerShell, you may not install Bing Desktop on my Computer!

I recently noticed some strange behavior from PowerShell on my computer when attempting to import all of the available modules :

022014-2

PS [MikeFRobbins.com]\>Import-Module -Name PSWindowsUpdate
Confirm
Are you sure you want to perform this action?
Performing the operation “Bing Desktop v1.3.1[9 MB]?” on target “PC01”.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “Y”):

I could create some elaborate script to iterate through each module and tell me what module is trying to install Bing Desktop, or I can simply use the -PassThru parameter:

022014-3

As shown in the previous image, the message about wanting to install Bing Desktop shows up just after the PSTerminalServices module and just before the PSWindowsUpdate module, both of which are custom third party PowerShell modules.

In order to determine which one is causing the issue, manually import them one at a time:

022014-4

The PSWindowsUpdate module which is a custom third party module that I downloaded from the TechNet script repository is causing the issue. Answering yes to the message will result in Bing Desktop being installed on your computer without any further confirmation:

022014-1

I decided to revisit this issue prior to publishing this blog. I downloaded the latest version of the PSWindowsUpdate module from the TechNet script repository and it does not appear to have this issue.

The moral of the story is that if you experience issues with a PowerShell module, especially a custom third party one, make sure you have the latest version because your issue may have already been resolved in the newest version :-).

µ

1 Comment

  1. Erwin

    Mike,
    I would like to ask you a question about unzipping a file with powersheel. I am not used to work in Powershell, but when I run the script from the Powershell console, it works. When it is part of an MSBuild, it doesn’t.
    The code you wrote gives me this error : Unable to find type [System.IO.Compression.ZipFile]: make sure that the assembly containing this type is loaded.
    .net 4.5 is installed on the server though…

    I have been fighting all week with this… Any help would be greatly appreciated!

    Thanks,
    Erwin

    Reply

Leave a Reply

%d bloggers like this: