Skip to content
  • Home
  • About
  • Contact

RobPlatt.com

My name is Rob. Here are the things I find useful or amusing. Enjoy.

Error 0xc004d302 during Windows activation

Feb 23
Fixes

We had an install of Windows Server 2008. We were trialing some software, and weren’t sure if we were going to keep the OS or not. When the trial period expired, I ran slmgr -rearm. Success. We continued to run the server in trial mode.

Today I received my product keys from Microsoft, and when I tried to activate the OS I received the following error messages.

0xc004d302

and

The security processor reported that the trusted data store was rearmed.

Numerous Google searches resulted in either

  • Reboot to fix
  • Reboot and end up locked out permanently
  • Reinstall

None of these options were ones I was willing to take. Here are the steps to correct the above issue that worked for me.

  1. Stop the Software Protection service.
  2. Move C:\Windows\ServiceProfiles\NetworkService\AppData\ Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat to your desktop.
  3. Move two hidden files in C:\Windows\System32\ that have the extension .C7483456-A289-439d-8115-601632D005A0 to your desktop.
  4. Start the Software Protection service.
  5. Run slmgr /dlv
  6. Stop the Software Protection service.
  7. Place tokens.dat and two hidden files back to their original locations.
  8. Install your product key by running slmgr /ipk <product key you purchased>
  9. Start the Software Protection service.
  10. Activate Windows.
13 Comments none Read more

Multiple NetBIOS names

Dec 29
Uncategorized

We ran into an issue, where we migrated one of our servers. We gave it a new name, but most of our users still recognized it as the old server. To make it easy on everyone, a simple cname with the old name pointed to the new server solved most of the issue. However, browsing the network didn’t reveal the old network name. Just the new one. The solution is to add an alternative netbios name to the registry.

thelazyadmin.com/blogs/thelazyadmin/archive/2006/07/18/Configuring-Additional-NetBIOS-Names.aspx

Leave a Comment none Read more

Toshiba Satellite BIOS Password Reset

Sep 8
Tips

Heres a quick and dirty way to reset the password on the Toshiba Satellite A205 BIOS.

DO NOT DO THIS UNLESS YOU ARE THE OWNER OR YOU HAVE BEEN ASKED TO. Warn any clients that something could go wrong with this procedure. THIS IS A RISK!

(You do this at your own risk. You do this at your own liability. I will not be held responsible if something goes wrong.)

Now that I’ve said that, I will add that this method did work for me on an A205-S5814 and has been reported to work on (A205-S4707, A205-S4639, A215-S7425, A215-S7425, and a A205-s5804)

  • Power the laptop off, remove the battery and power cable.
  • On the bottom of the laptop, locate the memory bay, and remove the cover plate.
  • Peel back the black sticker on the motherboard (set that aside, and remember to return it when you’re finished)
  • Locate two solder joints labeled XXX in one of the corners. (we’ll return to those in a minute)
    spacer spacer
  • Set the laptop on its side, so the screen is open to prop it up, and the power jack is facing up.
  • Insert one of your ram modules.
  • Plug in the laptop and turn it on.
  • If it turns on and prompts for a password then continue, if it does not, then power it off, and move the ram module to the other slot and try again.
  • Turn the laptop off.
  • Hold a small flathead screwdriver onto those two soldier joints, shorting them.
  • Turn the laptop on while you’re shorting those two soldier joints.
  • It should boot. You can remove the screwdriver, power the laptop off, replace the other ram module (don’t forget that sticker), cover plate, and battery. Turn on the laptop, it should boot up!

TLDR: Short solder joints labeled XXX under memory bay to clear password.

Post your results in the comments below. Good luck!

Update: Head over to WhatsMyPass.com to see more information about BIOS password recovery.

19 Comments Bios, Password Read more

Dynamically compiled VNC binary with repeater #2

Jul 13
Utilities

Awhile back, we discussed generating UltraVNC viewer and single-click executables on the fly: www.robplatt.com/index.php/2010/03/02/dynamically-compiled-vnc-binary-repeater/

A missing feature that was requested, was the ability to add encryption to the connection. Sorry it took so long, but here you go!

Please note, all changes are in reference to my original post and those files.

  1. Download the latest MSRC4Plugin.dsm: home.comcast.net/~msrc4plugin/msrc4plugin.html
  2. Place MSRC4Plugin.dsm in \client
  3. Place a copy of MSRC4Plugin.dsm, renamed to MSRC4Plugin_NoReg.dsm in \host
  4. Download or generate rc4.key. Place in both \client and \host
  5. For the client exe, change line 6 in the helpdesk.txt file to “-id $ID -plugin -connect $IP::$PORT -noregistry”
  6. For the host exe, add MSRC4Plugin.dsm and rc4.key to vncviewer.7z
  7. For the host exe, change line 4 to “RunProgram=”vncviewer.exe -dsmplugin MSRC4Plugin_NoReg.dsm -autoreconnect 5 $RESTRICTED -noauto -64colors -encoding tight -proxy $IP::$PORT ID:$ID”"
  8. Edit support.aspx, change line 44 to “”..\7zr a sc.7z ..\winvnc.exe ..\schook.dll ..\vnchooks.dll helpdesk.txt ..\MSRC4Plugin.dsm ..\rc4.key ..\icon1.ico ..\icon2.ico” & vbcrlf & _”
  9. That should do it!

As always, I’ve included the changes for you. (You may want to generate a new rc4.key, this one is the one included from UltraVNC)

Download

5 Comments Software, Utilities, uvnc Read more

Android vs iPhone

Jun 29
Uncategorized

The guys over at Droid-Life have been a riot today. I had to post these…

“Steve… Can you hear me now?”

“No… You’re still holding it wrong.”

–EC8CH

There once was a man named Steve
“Magical” status his phone did achieve
Then a Droid set us free
Apps approved no Third Degree
On a network that’s NOT AT&T’s

–EC8CH

If your iPhone is letting you down
Dropped calls are making you frown
Then give Android a try
Get a deal at Wirefly
Their prices will truely astound

–EC8CH

There was an old man named Jobs
His shiny phones were perfect for snobs
Then a Droid came along
Mulitasking all day long
With a glowing eye that pulses and throbs

–EC8CH

There once was a phone from Cupertino
It’s screen a grid of blocks like in Keno
But then Android arrived
Running Widgets in stride
Now the Iphone looks dated as Devo

–EC8CH

In a black turtleneck & blue jeans
He says “check out the res of my screens”
But we are Droids & of course
We prefer opensource
And avoid his walled garden by all means

–EC8CH

I actually tried out an iphone 4 the other day while perusing things I won’t buy at the mall (well, I did end up getting a burger and fries). It was the first iphone I’ve ever used.

My impressions? Nice screen, but not any tangibly nicer than my Droid’s. The hardware itself looks nice enough; sleek, compact, and all that. But the real meat and taters was the UI. I have to say, it was, well . . . crap. Sure, it scrolls and such nicely, but it’s just a bunch of screens with apps! I asked my buddy who was with me (a devout Apple acolyte) how I could access the apps, and he was like, “you just scroll through the screens and they’re all there.”

For serious? This is the vaunted UI that all the Apple fanbois go ga-ga over? It’s a freakin’ app drawer! Here’s how to make your Android device an iphone: open the app drawer whenever you start up. Don’t use widgets, live wallpaper, shortcuts, etc. Do everything from your app drawer. Done. You’ll be all like, “OMG it’s so teh fastar! Scrolling is sooo smooth! Bestest UI EVAR!!!!1″

Sorry for the rant; I’m just a bit less than whelmed after hearing so much about how iphone’s UI is sooo much better than Android’s. Believe it or not, I entered into the demo with an open mind and the expectation to be truly impressed. All that was really impressed upon me, though, is that the blinders on Apple fanbois are more like eyepatches with pinholes. –Droidzilla

Thanks guys… That made my day =)

Source: Droid-Life

Leave a Comment android, iphone Read more

untrack files in git

Jun 28
Tips

I accidentally added files to a git project that I didn’t want to.

git rm –cached filename

or

git rm –cached directory -r

cleared me right up.

(please note, that is two dashes in front of cached)

Leave a Comment none Read more

Google Viewer

Jun 28
Fixes, Software

We used to use Adobe FlashPaper to embed pdfs into our site. This made viewing a pdf  easy, most people have flash installed, right?

No… and chances are, if they don’t have adobe reader, they probably don’t have flash.

A better/free solution would be Google Docs Viewer.

Use Google Docs to quickly view documents online without leaving your browser.

Embedding Docs Viewer into your page, gives you the same usability as FlashPaper, but without Flash needing to be installed. Now we can give our users the ability to view our pdfs, directly in our browser, without any third-party dependencies. (You may also provide a non-embedded url, to open in full screen)

We did run into one problem. We received this error on one of our pdfs:

Sorry we are unable to generate a view of the document at this time

Replacing the spaces in the filename with %2520 solved the issue. %20 and + did not.

Leave a Comment none Read more

ASP.Net SessionState in SQL

Jun 21
Tips

Using SQL Server to store ASP.Net session state has it’s advantages. It was time for us to switch from InProc to SQL, but we ran into some problems getting the configuration right.

The SELECT permission was denied on the object ‘sysobjects’, database ‘mssqlsystemresource’, schema ‘sys’.]

Unable to use SQL Server because ASP.NET version 2.0 Session State is not installed on the SQL server. Please install ASP.NET Session State SQL Server version 2.0 or above.

These two pages got me going in the end.

idunno.org/articles/277.aspx

cherupally.blogspot.com/2009/08/problems-in-configuring-sql-server-for.html

Now watch your session states survive an iisreset, or even server reboot! You can also load balance your requests over multiple web servers now too.

goo.gl/qiCr
Leave a Comment IIS, sql Read more

.Net Packer

Jun 18
Uncategorized

UPX does a fantastic job at compressing executables. However, it does not support .NET.

MPRESS does.

MPRESS makes programs and libraries smaller, and decrease start time when the application loaded from a slow removable media or from the network. It uses in-place decompression technique, which allows to decompress the executable without memory overhead or other drawbacks; it also protects programs against reverse engineering by non-professional hackers. Programs compressed with MPRESS run exactly as before, with no runtime performance penalties.
MPRESS is absolutely free of charge software.

I’ve been using this for awhile now, and have to say its great. Many of my .NET apps are cut down by 50% or more.

Check it out!

Leave a Comment none Read more

TAB Key In Command Prompt Doesn’t Auto Complete

Jun 18
Fixes

For some reason, I lost the ability to auto-complete in the command prompt, using the TAB key.

Setting the following registry key to 0×9 solved the problem. How it got changed in the first place is beyond me.

[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
“CompletionChar”=0×9

Leave a Comment none Read more
Follow me on Twitter, or subscribe to my blog by Email or RSS!
Copyright © 2013 RobPlatt.com Design by SRS Solutions top
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.