SOLVED! Windows 10 Reset – There was a problem resetting your PC

solved

Windows 10 built on the awesome features of Windows 8, and brought over the very powerful ‘Refresh My PC’ and ‘Reset My PC’ options.  Truly awesome, they’re able to refresh the base OS and forklift over your files, giving you that ‘just installed’ smell we all love so much.

I love that smell so much in fact, that I buy a new car every few weeks, or sometimes sleep in cars at the CarMax down the road from my house.  Mmmmm plastic and leather offgas.

However, sometimes things go awry, and from no fault of our own, we can end up with a system which will refuse to either reset or refresh.  Read on to see how to fix this problem.   Continue reading

Advertisements

SCOM: Quickly find Update Rollup Version

It’s SO tedious to track down the update rollup version of SCOM, as the SCOM console still doesn’t have this information available (only major releases!), so you end up looking through the registry or digging into files trying to look at the file version manually.

I wrote this little script in PowerShell. Simply CD into the drive where SCOM is installed and it will track down the SCOM install directory for you, then pull out the Update rollup version and return it to screen.

Download

PowerClippy

Back with the release of Office ’97 in November of 1996, Microsoft introduced a beloved new helper tool to assist users in navigating through the daunting changes in Microsoft Office,

Microsoft Clippy!

Copyright : Microsoft
Copyright : Microsoft

Clippy was wildly beloved by end-users and IT Professionals alike, just checkout it’s many accomplishments!

Smithsonian Magazine called Clippy “one of the worst software design blunders in the annals of computing”.[16] Time magazine included Clippy in a 2010 article listing fifty worst inventions.[17]

The creator of Clippy went on to great things, and was definitely never haunted by the memory of Clippy, as you can see in his keynote discussion at ROFLCon.

For too many years, Clippy has gone missing in Windows, and admins were left with horrible solutions, like sending e-mails or talking to their users face-to-face.

But now he’s back!

I am proud to share with you my newest slap-dash project,  ‘Invoke-Clippy!

clippy01

Clippy, how I've missed you!
Clippy, how I’ve missed you!

Today, it pretty much just pops up the familiar character.  Being a very lazy retreading of Chrissy’s code from her ‘Hey Scripting Guy’ article, it also features the PowerShell logo in the system tray to end the code!  AND it runs hidden!

You have the option of specifying -Button1 or -Button2 to add additional buttons.  If you’d like the buttons to do anything, add some code for them to the empty script blocks on line 71 and line 80.

Consider this a framework to use to annoy–, er notify your coworkers with helpful reminders.

Suggestions

  • Scheduled Task on your coworkers machine every 15 minutes to remind them to check the ticket queue
  • Add two buttons, and make the second button spawn another instance of Clippy (consider reversing the X,Y values to make Clippy appear on the other side)
  • Use this as a nice and professional way to communicate mandatory reboots to your end users

No matter what you come up with, share it with the class!  Did you find a way to make this appear interactively on a remote session?  Did you add -ComputerName support (If you did, AWESOME!).

Either comment here or make your own fork and send me a Pull Request.  I’d love to see what you come up with.

References

Pretty much everything here I learned on the spot thanks to Stack Overflow.  Also big big thanks to Chrissy Lemaire in her excellent Scripting Guys article, ‘How to Create Popups’ in PowerShell.  Most of the code for window sizing comes from her work!

 

Windows 10 for Raspberry Pi – Solving DISM ‘the Drive can’t find the sector requested’

series_RaspberryPi

This is part of the Learning Raspberry Pi Series here on FoxDeploy.com. Click the banner for more Raspberry Pi and Windows!


Symptom

You’re like me, and super excited to start playing with Windows 10 for the Internet of Things (IoT) on your Rasperry Pi 2.  But when running the DISM commands from this post, you see the following error:

The drive cannot find the sector requested
The drive cannot find the sector requested

Reason

This is sort of a very opaque error, and in this case, double-check that you’re using a big enough SD card.  As it turns out, I accidentally picked up a 4 GB card, which is too small!  I think the specific cause of this error comes from the fact that the image in question won’t actually fit on a card smaller than 8 GB, and thus the Deployment Image Servicing Management tool craps out trying to write to that sector.

Solution

Buy a bigger SD Card!  Here’s one which will work perfectly!  When you’re buying a Micro SD card, don’t cheap out.  The quality matters and the class (the bin rate) of the card definitely matters.  Smaller cards are virtually identical to the larger capacity SD cards and the only difference is physical imperfections in the card, which can mean an earlier fail rate and other problems.

 

 

Set PowerShell as your CLI of choice in Windows 8. WITH POWERSHELL

In a conversation on Twitter, I lamented with some friends that Hitting Windows+X in Windows 8 and above opens up the admin window, but still–In 2014–lists Command Prompt as the CLI.

PowerShellWPowerShell
Maybe in Windows Vista this would have made sense…but PowerShell had already been out for SIX YEARS when Windows 8 shipped.

With one single line of PowerShell, we can right this grieveous wrong.

Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced `
-Name "DontUsePowerShellOnWinX" -Value 0

yoDawg

 

And to test it…

PowerShellWPowerShell1

 

aaawwwyeah