Showing posts with label How-To: Windows. Show all posts
Showing posts with label How-To: Windows. Show all posts

Tuesday, March 5, 2013

Compress THIS!

Occasionally I like to free up hard drive space and who better to help than Windows itself? That's why I use the Disk Cleanup tool.

Unfortunately, one of the ways that the Disk Cleanup tool likes to "free up space" is to compress all of your "old" files. This, of course, is a terrible idea.

Fortunately there's a way to disable it!

Simply delete:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files

Thursday, December 15, 2011

Resynchronizing Windows Update

I had a problem with Windows Update not synchronizing correctly and leaving all of my WSUS managed clients sitting at 99% all of the time. I found this handy .vbs script to get me out of the jam:

Set fso = CreateObject("Scripting.FileSystemObject")
Set objAutomaticUpdates = CreateObject("Microsoft.Update.AutoUpdate")
objAutomaticUpdates.EnableService
objAutomaticUpdates.DetectNow

Set objSession = CreateObject("Microsoft.Update.Session")
Set objSearcher = objSession.CreateUpdateSearcher()
Set objResults = objSearcher.Search("IsInstalled=0 and Type='Software'")
Set colUpdates = objResults.Updates

Set objUpdatesToDownload = CreateObject("Microsoft.Update.UpdateColl")
intUpdateCount = 0
For i = 0 to colUpdates.Count - 1
intUpdateCount = intUpdateCount + 1
Set objUpdate = colUpdates.Item(i)
objUpdatesToDownload.Add(objUpdate)
Next

If intUpdateCount = 0 Then
WScript.Quit
Else
Set objDownloader = objSession.CreateUpdateDownloader()
objDownloader.Updates = objUpdatesToDownload
objDownloader.Download()

Set objInstaller = objSession.CreateUpdateInstaller()
objInstaller.Updates = objUpdatesToDownload
Set installationResult = objInstaller.Install()

Set objSysInfo = CreateObject("Microsoft.Update.SystemInfo")
If objSysInfo.RebootRequired Then
Set objWMIService = GetObject _
("winmgmts:{impersonationLevel=impersonate(Shutdown)}!\\localhost\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
objOperatingSystem.Reboot()
Next
End If
End If

Thursday, October 13, 2011

Windows Update Service Missing

Fix: Download the Windows Update Agent and force it to install.

Step 1. Download the Windows Update Agent:
WindowsUpdateAgent30-x86.exe
WindowsUpdateAgent30-x64.exe

Microsoft KB 949104


Step 2. Force the installation
If installing the agent fails because it is already installed, you can force the install:

WindowsUpdateAgnet30-(x86/x64).exe /wuforce


Finally, you probably want to run a spyware scan (eg. Spybot Search & Destroy or Malwarebytes) because chances are pretty good you've got something. I routinely disable System Restore in these scenarios because that garbage likes to hide in there.

Tuesday, November 3, 2009

Active Desktop of Slowness...or NOT!

I have always LOATHED Active Desktop in Windows. It always made the PCs so SLOOOOW!

But, I found another use for it today, and I have to say, I'm very impressed.

Check this out!

Monday, August 3, 2009

Remove Unhelpful Help

I hate that stupid "Help & Support" option on the Start Menu.


  • Click Start->Run and type 'Regedit.exe'

  • Navigate to the following location:

    HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Advanced


  • In the right-pane, create a new REG_DWORD value named 'NoStartMenuHelp'

  • Double-click 'NoStartMenuHelp' and set it's value to '1'

  • Close Regedit.


Thanks winxptutor.com for the help!

Wednesday, May 27, 2009

Command-line remote windows restart/shutdown

If you're running a windows machine and would like to restart (or shutdown) a remote windows machine, just type the following at your command line (Start-> Run -> "cmd" [enter]):
  • shutdown -r -m \\xxx.xxx.xxx.xxx
where '-r' reboots the machine (remove that to just shut down the machine) and replace the xxx.xxx.xxx.xxx with the remote machine's IP address.

Alternatively, you may connect to the machine through Remote Desktop Connection, and run the following from the command line:
  • shutdown -r -f
You can also obtain a list of commands by typing the following from any windows command line:
  • shutdown -?

Tuesday, May 5, 2009

Automated File Transfers

Here's one way (not my preferred way) for automating file transfers.

I prefer to use rsync over SSH.

What do you think?

3...2...1...Shutdown!

Looking for a way to run programs or perform other actions at specified times?

Here is your answer!

Monday, March 2, 2009

Delete Folder Contents with 2 Clicks

Here is a quick registry hack to add a "Delete Folder Contents" item to the context menu.

Enjoy, but click safe!

Wednesday, February 11, 2009

Create your own DVD

A friend of mine had a few videos and wanted to play them on a DVD player. The last time I researched how to do this, I was very disappointed to see that there were really no viable solutions (i.e. there were no solutions unless you wanted to drop $300 on software).

Well, now I have some good news. There is a FOSS application called DVD Flick that rocks.

This app will walk you through creating the menus and even does some more advanced stuff (like advanced video editing, subtitles, etc.)

It will also burn it to a disc for you, if you wish.

My favorite extra feature is that while it is encoding, it has three buttons: "Cancel", "Minimize", and "Entertain Me". The "Entertain Me" button launches a Tetris game that you can play while the DVD encodes. Why isn't this in Outlook?!

Friday, February 6, 2009

Who Crashed?

"This program has performed an illegal operation...here's a bunch of debugging data that only makes sense to the nerdiest of nerds: 0xBLAH 0xBLAH 0xBLAH"

Sound familiar? I thought so.

Well, now you can make sense of all of that debugging mumbo jumbo with "WhoCrashed".

Monday, February 2, 2009

Unix in Windows

I hate being in the "DOS" prompt and typing `ls` only to see:
"'ls' is not recognized as an internal or external command,
operable program or batch file."

Here's my answer: UnxUtils

(and yes, I did write batch files at one point, but this is much easier IMHO.)

Wednesday, January 28, 2009

Open With Notepad

I'm tired of having to select which program to open a file with in Windows. Also, I'm sick of accidentally associating '.yourmother' files with Notepad. I don't want a file association -- I want Notepad!

Thanks HowToGeek.com for this solution.

Thursday, November 13, 2008

Microsoft Word: Paste Unformatted Text

Here's the macro for pasting unformatted text in Word:

Sub PasteUnformatted()
'
' PasteUnformatted Macro
' Macro created 11/13/2008 by Peter Carney
'
Selection.PasteSpecial Link:=False, DataType:=wdPasteText
End Sub


Also, remember that you can map it to a keyboard command with "Tools->Customize->[Keyboard]".


http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=128

Friday, August 15, 2008

How do I change a MAC address?

Change those MAC addresses so you can do some real network manipulation!

How do I change a MAC address?

Thursday, August 14, 2008

Windows Batch File Argument Editing

Let's edit some of those %1's and %2's and make them a bit more useful!

InformIT: Windows Batch Files for Fun and Profit > Argument Editing

You can't talk about Windows Batch files and not talk about good ol' Rob Van der Woude!

Monday, March 31, 2008

Skip the Annoying "Use the Web service to find the correct program" Dialog

Tired of being asked if you want to look-up on the internet what program to use to open a certain "unknown" file type?
Here's a hack to disable that stupid box:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\
NoInternetOpenWith (32-bit DWORD) = 1


Skip the Annoying "Use the Web service to find the correct program" Dialog :: the How-To Geek

Wednesday, March 12, 2008

Change the Windows Explorer Icon to Open A Diffierent Folder

I don't know about you, but I don't really use the "My Documents" folder for a whole lot -- you know, because it has spaces and capital letters...booooo!

But, I use Windows Explorer all of the time.

So how do I get Windows Explorer to stop opening My Documents every time I click the icon?!

Easy: Change the "Target" in the shortcut to '%SystemRoot%\explorer.exe /e,c:\'

How To Change Windows Explorer Icon To Open A Diffierent Folder In Windows XP And Vista

Wednesday, January 30, 2008

No More "Unused Icons" Pop-up Balloons

Stop that annoying pop-up balloon.

Display Properties -> Desktop -> Customize Desktop -> Run Desktop Cleanup Wizard every 60 days

Stop the Annoying "There are unused icons on your desktop" Popup Balloon :: the How-To Geek

Wednesday, December 19, 2007

Force Windows Update

Force a refresh of Group Policy using secedit /refreshpolicy (on Windows 2000) or gpupdate /force (on Windows Server 2003 and Windows XP) so you can configure AU automatically on the machines.

WindowsDevCenter.com -- Tuning Automatic Updates