How to force close an application that is not responding in Windows.

If you see this, it means the application you’re working in has crashed. Sometimes you can try the “Wait for the program to respond” button and it may come back. Clicking on “Close the program” often doesn’t do much.

To fix this, right-click anywhere on the taskbar along the bottom and then click “Task Manager”

Highlight the problem application and click “End Task” in the bottom right-hand corner of the Task Manager.

Alternatively, you can right-click on the problem application and choose “End task”

How to fix “You’ve been logged in with a temporary profile” error.

This can sometimes be caused by an improper shutdown or Windows updates that didn’t install properly.

Click Start and type in regedit. Choose “Run as administrator” either by clicking it on the right hand side or by simple right-clicking the icon and choosing it.

Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

Each one of these keys represents a Windows profile. Find yours by clicking through and paying attention to the ProfileImagePath value. Look for your username.

When one becomes corrupted, Windows adds .bak to the corrupted registry key and creates a duplicate registry key that points to C:\Users\Temp.

First delete the temporary key (without .bak) and then rename the original one by removing .bak at the end.

Reboot the computer and it should be back to normal when you log back in. (I’ve attempted just signing out and signing back in but the problem persisted. I believe the reboot is necessary.)

Printer settings could not be saved. This operation is not supported. Server 2012 R2

How to fix “Printer settings could not be saved. This operation is not supported.” (Server 2012R2)

So here’s a really annoying one and it has to do with printers. Of course right? It always printers or DNS. ALWAYS.

Anyway I wanted to change the driver on one of my deployed printers when I ran into this message:
“Printer settings could not be saved. This operation is not supported.”
After some digging around, I was able to find the culprit. It’s because there is little box that’s ticked called “Share This Printer” under the Sharing tab.
Untick that box, click apply, install your new driver, then go back and tick that box again.
Also make sure you tick the box to List in the directory again if you had that on too because it gets turned off by default when you un-share it.

How to schedule a restart in Windows using Task Scheduler.

Here’s one that I like to use from time to time to schedule a restart for updates.

Open Task Scheduler and click Create Basic Task… and give it a name.
Click Next >. I’ll be running this task just once so I’ll click One time.
Click Next >. Schedule it
Click Next >.  We’re going to be starting a program so click the radio button next to Start a program.
Click Next >. The name of the program is shutdown and in order for it to restart properly, we need to add some arguments. For a list of those arguments, click here
I will be using /r /f /t 0. /r to restart, /f to force any running applications to close and /t 0 so it waits for 0 seconds.
Click Next >. Verify your settings. This task requires some extra settings to guarantee that it runs properly so check the box next to Open the Properties dialog for this task when I click Finish and click Finish.

I may or may not be logged in at the time this task is going to run so I clicked the radio button next to Run whether user is logged on or not. Click OK.

Enter your password and click OK.
Now you should be all set.
If you would like to use Powershell instead, there is also a method for that. Instead of typing shutdown with the arguments /r /f /t 0, you can type powershell with the arguments restart-computer -force. Here is some more information about it.

How to find out which process is listening on a port in Windows.

Symantec on one of my servers keeps logging a port scan attack coming from my laptop and I can’t figure out which process is causing it. Hopefully this will help.

ex. netstat -a -b

-a Displays all connections and listening ports.

-b Displays the executable involved in creating each connection or listening port. In some cases well-known executables host multiple independent components, and in these cases the sequence of components involved in creating the connection or listening port is displayed. In this case the executable name is in [] at the bottom, on top is the component it called, and so forth until TCP/IP was reached. Note that this option can be time-consuming and will fail unless you have sufficient permissions.

-n Displays addresses and port numbers in numerical form.

-o Displays the owning process ID associated with each connection.

For more information, click here.

P.S. This may create a lot of data to try and sift through in the command prompt so instead you can output everything to a text file by entering > filename.txt afterwards.

ex. netstat -a -b >netstat.txt

This will create a text file in the system32 folder or whatever directory you happen to be running command prompt from.

How to restart Windows from the command line.

This has become especially helpful for me since Windows Server 2012 (not R2) does not come with an easy option to do this. In fact I’ve become quicker doing it this way anyway so it’s a win-win.
Open up your handy dandy command prompt. This can be done in a few ways. 
I usually need to run as Administrator so I’ve made a habit of hitting the Windows key on the computer to bring up the Start menu, typing CMD and then hitting Ctrl+Shift+Enter. 
Otherwise, click Start, type CMD, right-click on it and click ‘Run As Administrator’. 
(You can also hit Windows+R for the Run menu, then type in CMD but this won’t run as administrator by default.)
Now type in shutdown.exe /r /t 0 and hit Enter. The /r switch means restart and the /t 0 means the time in seconds until it happens.
Now I don’t think this can be done without the /t 0 and frankly I’m too lazy to test it right now but if you want some help on some of the other switches, here is the Microsoft article.

Scroll to top