WSUS and PowerShell: Declining and Deleting updates based on keywords

I am back again with just another write-up on WSUS in a very short time. Last time we talked about Reporting and Cleanup, this time its more into troubleshooting, which often requires one to find particular updates and nuke them out.

Yes! We are talking about those pesky Event IDs 364, which often mention about certain cab files and we System Admin bang their heads on walls to find out that which particular updates they belong to.

Let me give you an easy permanent way out via a Custom PowerShell module named PoshWSUS.

How to use that?

Just download the module, extract the folder named PoshWSUS and copy the same to PowerShell module location for your WSUS Server (I am assuming you have Windows 2008 or Windows 2012 though it works for older ones as well).

Ok. So where is this PowerShell Module Location?

Usually it is C:\Windows\System32\WindowsPowerShell\v1.0\Modules but to know for sure, can open PowerShell prompt and Type $PSHome, which should give you C:\Windows\System32\WindowsPowerShell\v1.0

Installed the module, now what to do?

You can make use of the below code:

Import-Module PoshWSUS

Connect-PoshWSUSServer –WsusServer  -port 8530

# In case you got some Windows 2003 machine which is connect over port 80 in place of 8530 then uncomment the below line and comment the one above this comment.

# Connect-PoshWSUSServer –WsusServer  -port 80 

Get-PoshWSUSUpdate | Get-PoshWSUSUpdateFile | export-csv -notype $env:userprofile\desktop\WSUSFiles.csv

This would give you all the update names, their corresponding files, their actual disk locations and then you can easily find out, which was the particular update, which is causing you Event ID 364. Once you know that its your choice that how to deal with that update, decline, clean and approve, download again or whatever you prefer.

All well? Nope! There might be still a trouble

There is a tricky scenario as well like the one I faced once and that is Local Update Publisher. Microsoft gives the way that one can push certain non-Microsoft updates via WSUS solution after packaging it in a certain format. Looks good but may be a huge trouble when things go wrong. Updates pushed by LUP don’t show up in GUI of WSUS console, so it gets tricky to decline or clean them out. PowerShell comes handy in such scenario as by that we can find updates by keywords and then decline or delete them. Here goes the code.

[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")


$WSUS = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer(,$false,8530) # Or port 80
$UpdateScope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
$UpdateScope.ApprovedStates = [Microsoft.UpdateServices.Administration.ApprovedStates]::Any
$updatescope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::All
$Updates = $WSUS.GetUpdates($UpdateScope)| where-object {$_.title -like "*7-Zip*"}
# In case, the purpose is just to list patches first where title contains 7-zip

$Updates.Title.ToString()

#In case, the purpose is just to decline those patches where 7-zip comes in title, then uncomment the below line 

#$Updates.Decline()

# Uncomment the line in case you need to delete the update files and remove patch from DB as well, then uncomment the below line

#$Updates | Foreach-OBject{$WSUS.DeleteUPdate($_.Id.UpdateId.Tostring()); WRITE-host $_.Title.ToString() deleted -ForeGroundColor RED}

Hope this helps. As you know, the health of WSUS can be checked via wsusutil checkhealth and appearance of Event ID 10000 and 10030 confirm that everything is well.

Advertisements

Nokia Lumia 730, Lumia 830 Pureview and Flagship Lumia 930 Pureview Launched to enlighten your Diwali

October 1, 2014, Nokia India launched three new Lumia’s to Indian market which would be available for purchase post October 15, 2014. Nokia Lumia 730 for affordable smartphone category at a price point of 15,299/-, Nokia Lumia 830 with a Carl Zeiss Pureview camera at a price point of 28, 000/- around and flagship Nokia Lumia 930 Pureview with metallic bezel at price point of 38,000/- around which would be available later.

IMG_6207

With flood of phones in the market on almost weekly basis, it’s getting hard to differentiate for a brand. Brands have to re-think each time that which features they need to highlight for selling the new range of phones. This time, Nokia has branded their affordable Nokia Lumia 730 as Selfie phone.


Why Selfie?

Photography has came a long way ahead since the time when Nokia introduced the first camera phone to the world. The kind of challenges and requirements with camera phones kept on changing over time and so were the phone.

First it was about having easy access to a camera which is always with you to take a snap than dedicated camera, then the challenge moved ahead to compete with digital cameras and focus moved to quality of pictures along with the ease of use, then we moved ahead to cope with DSLR Cameras along with ease of use. At many occasions, people find that its good to use a smartphone to take pictures than a dedicated camera or DSLR considering the ease of use, easy to snap, easy to edit on the go and easy to share with the dedicated connectivity. What else one would be need from a photography solution?

But soon the next generations found the answer for “what else?” and the answer was “Selfie”. This always been a common complaint of many who love taking snaps that at the end of day, they find that though they might have taken thousands of snaps in a day, there are a few pictures in those including themselves as it’s not that convenient to give your phone to others and asking them to take the perfect pictures like you or of your choice. So answer was, why not take pictures of self? The use case became mainstream with usable resolution front cameras which started coming with new age smartphones as timer option was just not cutting it and taking a snap via back camera by guess work wasn’t giving perfect results every time.

IMG_6205

Capable wide angle camera means one can take snaps of self and even of a big group including himself in it.


Nokia Lumia 730 : Polycarbonate Unibody build carries the legacy

IMG_6231IMG_6234

Its hard to keep a differentiator about your phones when it comes to build due to rush of similar looking phones in the market and one should give full credit to Lumia series that they kept their designs unique through entire range. Not only design but material and durability also to go along.

Even though it might be at a lower price point with similar kind of base specs as Moto G next gen might have but the dual SIM offering of Nokia at affordable smartphone segment doesn’t looses its punch with 720p 4.7” CBD display along with ultrathin Corning Gorilla Glass 3. The camera might be of 6.7MP, but it Carl Zeiss optics which been known for being kind of best out there. While front and back both cameras can record at 1080p  resolution, the battery at 2200mAh promises 22h of talktime and 600h of standby time.

Sure enough punches for the price point for the users which are not dedicatedly Android.

Nokia Lumia 830 : The first Pureview Phone without the camera bump

Even though the original Pureview definition of having a Super pixel created by heavy resolution camera compressed to few has changed over time, Pureview still stands for Carl Zeiss and quality pictures with it even though it wasn’t able to make phones very slimmer. Not any more.

IMG_6221

Nokia Lumia 830 is just 8.5mm thick phone with 5” 720p IPS LCD screen weighing just 150g.. apparently the thinnest and lightest Lumia till date. A polycarbonate back along with metallic bezel for a phone which not only takes great night, low light pictures but also takes great wide angle selfies with 28mm front camera of 5MP capability.

The other differentiator with the phone was “Live Images”, which is a term for Nokia’s answer to HTC’s “zoe”. A photo which keeps moments in it like videos. I don’t really know how the describe it other way around.

IMG_6215

If something was awkward with the phone then it would be the back cover which facilitates Wireless charging and all while made of polycarbonate material, it remains a pain in ass in case one needs to remove it for accessing battery/ storage / SIM etc.

IMG_6222

The speaker continues to remain on the backside and single.

IMG_6225

The no-bump Pureview camera on the back. The new about the camera is introduction of 3-Microphone system which claims to record true 5.1 Surround sound.

IMG_6198

When it comes to Lumia series then apart from Windows Phone OS, the other differentiators are services, which Microsoft trying to push towards the end of spectrum till the lowest price points and the big step towards that this time is introductory offer of 1Tb Cloud Storage for six months and then on a cost of Rs150/- per month later on. The same cloud storage supposed to be available with any the new phones from now on.

This is definitely a Lumia which I would like to talk about more when it pays me a longer visit.


Nokia Lumia 930 : The flagship Pureview smartphone of Nokia talking metal

This was a surprise launch which wasn’t given hint about before the launch. The highest priced phone of the spectrum comes with the topmost of specs in entire range along with metallic build quality (reminding of iPhone 4S like bezel).

IMG_6238

The specs include:

  • Quad-core 2.2 GHz Krait 400, Qualcomm MSM8974 Snapdragon 800, Adreno 330, LTE CAT4 Support
  • 137 x 71 x 9.8 mm, 167g
  • A 1080p 5” display competing the best of displays in the market with ~441 ppi pixel density, which is CBD AMOLED along with Corning Gorilla Glass 3.
  • Dolby Digital Plus Surround Sound
  • 20 MP Carl Zeiss Optics with Dual LED Pureview Camera with Optical Image Stabilization. 1.2 MP front camera @720p though.
  • Wireless Charging Plate DT-900 included in retail package

I didn’t had much hands on over the phone, so can’t say more..

Gionee Elife S5.5-The Final part of review-Is the software part same impressive?

1. Gionee Elife S5.5 – Time to move beyond biases and stereotypes

When you are reviewing an entirely new product about which you never knew anything before, nor you would have reviewed any sister product of it to understand part of things, then it becomes absolute necessary to give it undivided attention and comparatively longer period of use to understand the bottlenecks & possible issues that may start nagging over time. Because such issues can never been checked during two three weeks period as product remains comparatively new.

DSC07978

I should thank Gionee on this part that they allowed me to retain the unit for a longer while to understand it and to put it in real world use (I kind of forgotten that it’s a review unit and sure gonna miss it hard as it became part of life).

I remember the time when I was to review a keypad phone while my own phones been all touch phones. During entire period of review, I restricted myself to use the touch phone to feel the essence of living with that particular keypad phone. Same was the right thing to do when it was about an entirely new brand.

DSC08000

So how did Gionee Elife S5.5, which is sure a marvel on hardware front and head turner wherever I go, fared on software front? Did it performed at par with iPhone 5S or Nexus 4 which I had? Does it produce images worthy of 13MP camera? Does the battery sails through day? Does the glassy build survives in long run?

A number of questions which I intend to answer in the rest part of blog….

Continue reading “Gionee Elife S5.5-The Final part of review-Is the software part same impressive?”

Gionee Elife S5.5 – Time to move beyond biases and stereotypes

Yes! Its again been long, since when I wrote last time, but I hope to make it up again with a detailed review of the product, about which I talked out in last blog post, the slimmest phone in the world right now, Gionee Elife S5.5. Slimness is obvious introduction, but trust me, this review would make you learn really a lot about the product and slimness would be just a little part of that.


Let’s know the brand first….

DSC07984

Brand Gionee: Preface

If we look at landscape of phones or more precisely smartphones, then sometimes it looks literally unbelievable that what has happened within less than a decade. We seen how less relevant conventional calls and messaging have gone in last decade, we seen how outdated non-touch phones became in a short period of time and we seen once towering personality of phones, the Nokia, going out from even top three manufacturers from once 80% market share. Same happened around prices of smartphones,  which risen up with unbelievable rise in smartphone specs and crossed even cost\ capabilities of desktops even.

In high priced game of HTC, Samsung, Apple etc, players like Micromax, Karbonn, Xolo etc also tried their bit, but even if some of their products succeeded a bit or offered a valid alternative, the difference between premium products and their products was always visible even by single look at product. But then, Gionee entered into the market.  Trust me, you need to read further and see this product in action to know why I feel a strong endorsement for this particular product. It definitely helped me in enlightening myself about the new players, the bright future ahead and I expect it would leave the same effect on you as well, that never write anything off, the landscape has changed in past and can change again.

Before starting the review, one should have a look at my earlier two posts 1 & 2 to have an idea about the company and why it galvanizes hope even in early interactions. This is a company, who entered in a market where “china” was literally synonym with duplicate, mediocre, unreliable etc (Might not be true for all in reality but the common perception) and rather than bending own ways to handle the market perception like many other competitors, decided to take it heads upon over itself to change the entire landscape.

Be it kind of products finishing/ logo etc, be it bold & unprecedented market strategies, be it kind of blogger interactions, be in unique Tier 1 retail relations, Gionee seems to be combining all the good parts of their competitors like Nokia, Apple, Samsung and Huawei into one and its definitely seem to be getting it right till now at least. 

Continue reading “Gionee Elife S5.5 – Time to move beyond biases and stereotypes”

A visit to Goa via GioneeSlimFest – Day Two – World’s Slimmest Mobile Phone Launched

It might have been just few hours of landing on the land of beaches, the royal treatment had made us forget about the real purpose of the event that was the launch of the world’s slimmest mobile phone. Trust me from hospitality to dinner\ lunches\ breakfasts to raw energy to the aura, we had seen nothing in slim format till that moment. Everything was that fat and royal.

We had already taken breakfasts so it was time to join the hall for the launch event.

IMG_2896IMG_2897

As the invited guests were in two categories, media and retailers, so we were given the badges accordingly and also given pedometers to signify the health conscious slim model. The sitting arrangements also placed the bloggers and media guys in the front seats while retailers were given a backseat.

DSC_0958 DSC_0959

We played around the pedometer a little as well and @Kalpik came out as a winner who was able to reset the pedometer successfully while most of us been struggling with that part.

Continue reading “A visit to Goa via GioneeSlimFest – Day Two – World’s Slimmest Mobile Phone Launched”

A visit to Goa via GioneeSlimFest – Day Two – The morning at beach

After a tiring first day which was spent mostly in journey and then in a charged evening\ night, majority of us couldn’t think of anything else than our cozy decorated beds in Five Star AC rooms of Grand Hyatt with magical dim lighting, but same wasn’t case for some “night walkers”, which I came to know at next day. So some of us had a better time than me while I rather chosen to enjoy sleep 😦

In the morning, when alarms started buzzing by 0600 hrs, I tried to give up the sleep and after a while contacted @NikhilPai, @Kalpik and @gauravshukla if they awake and ready to run to beach. Apparently @Gauravh1 and @NikhilPai happened to be early than me.

Beach being on west of the hotel and sun rays coming from the hotel end to sea mixed with foggy weather of the morning, this wasn’t the best of the view that beach could have offered but still it was enough for a great morning.

DSC07343

Continue reading “A visit to Goa via GioneeSlimFest – Day Two – The morning at beach”

A visit to Goa via GioneeSlimFest – Day One – The celebration night

Time to resume from where I left in last post….

IMG_2857

First of all, I was needed to dress up with the traditional Goa style shirts as was written in the instructions card which given to us at the reception. Obviously it was for all to unify all 1000 guests into one and turn it into some theme party. Later I come to know about the context behind the party which wasn’t related to slimmest Smartphone in the world at all, yet possibly most important of entire trip for some of us who been first timer with the brand.

Let’s talk of some pretext… this event wasn’t planned for bloggers and media alone, it wasn’t about the launch of World’s slimmest phone alone but it was about the celebration for the company reaching to a 500 cr mark (unable to verify the claim from authentic sources though) and also to announce the plans for the next big milestone. Gionee had been spending big time for their brand positioning since a while and this event along with unmatched energy of the product leadership team was sure enough for inspiring huge confidence in team of retailers from all across India.

Continue reading “A visit to Goa via GioneeSlimFest – Day One – The celebration night”