Command line to lock Windows 7 PC

For security reasons, I would like my PC to lock after I walk away from it.
I have a problem where on of Windows 7 PC’s doesn’t start the screensaver (which I have set to require me to log back in).

Yeah I can hit windows+L to lock my PC, but I forget sometimes (like when I go home for the weekend).

So I setup a schedule task to run the following command:

%windir%\System32\rundll32.exe user32.dll,LockWorkStation

The task runs every day after 5:30 PM, so my PC will always end up locked.

[tweetmeme only_single=”false”]
Advertisements

PerformancePoint Excel Add-in prerequisites

So if you want to make sure your clients can use the Excel add-in.
Here are the prerequisites for the add-in (from the Deploying PerformancePoint white paper).

All client computers require the following software before PerformancePoint Add-in for Excel can be installed:

· Windows Vista, Windows XP with Service Pack 2, or Windows Server 2003 with Service Pack 1

· Microsoft Office Excel 2003 Service Pack 1 or Office Excel 2007

· Office Excel 2003 Primary Interop Assembly (.NET Programmability Support)

· The Microsoft .NET Framework version 2.0.50727.42 or later.

Note:
To enable Export to Excel functionality or Export to PowerPoint functionality in Microsoft Office PerformancePoint Server 2007, you must install the Microsoft .NET Framework version 2.0 on the computer where these commands are executed.

· Microsoft Core XML Services (MSXML) 6.0

Note:
Be sure that you have Microsoft Core XML Services (MSXML) 6.0 installed before installing OLE DB Provider for OLAP Services 9.0.

· Microsoft OLE DB Provider for OLAP Services 9.0 Service Pack 2

· Microsoft ADOMD.NET 9.0 Service Pack 2

Show desktop icon missing from quick launch

Occasionally I end working on PC that is missing the show desktop icon.  I always end up looking for how to recreate it on Google.

In Windows XP, go the run command then type the following command:

regsvr32 /n /i:u shell32.dll

Then press enter.  A dialog will let you know it was successful.
The show desktop won’t be there until you reboot or type the following command:

%appdata%\microsoft\internet explorer\quick launch

This will open a folder.  Then you can drag the show desktop icon to your quick launch bar (it will create a short cut in the folder that just opened up).

In Vista, go to howtogeek.com and download the file labeled “ShowDesktop.zip”.  Open that file and drag the file it contains to the quick launch bar.