You are here

Change Windows File Associations via the Command Prompt

Submitted by PhilEddies on Tue, 02/07/2012 - 12:34
administrator | 4351 points

The blow shows how to reset file associations via the command prompt.

File associations are per user

Commands

asscoc .<filetype>     Gets the system name for the file type

Windows 7: Do you trust this printer?

Submitted by PhilEddies on Fri, 10/07/2011 - 15:58
administrator | 4351 points

Problem:

On my Windows 7 devices my users have been receiving the below message when tring to attach to a new printer

do_you_trust_printer_error.png

Cause:

A security feature that was added in Vista and Windows 7 called “Point and Print Restrictions”

Internet Explorer has modified this page to help prevent cross-site scripting

Submitted by PhilEddies on Thu, 10/06/2011 - 11:18
administrator | 4351 points

Problem:

Recently I upgraded Internet Explorer on our Citrix farm from IE7 to IE8, everything went fine except for a very important site used for entering customer orders! When users tried to use this site they received the below message with IE.

xss_filter_error.png

Casue:

Internet Explorer 8 has a new security feature call “XSS Filter”, more details on what the “XSS filter” does can be found here;

Sysprep: Error with unattend answer file during setup

Submitted by PhilEddies on Wed, 09/28/2011 - 14:04
administrator | 4351 points

Problem:

Recently after running sysprep on a Windows 7 I was greeted with the message “Windows could not parse or process the unattend answer file for pass….”

sysprep_unattend_error_1.JPG

I was not tring to use an unattended answer file at the time so a bit of a strange messge.

PowerShell script to show the state of your laptop battery

Submitted by PhilEddies on Fri, 07/08/2011 - 23:11
administrator | 4351 points

Windows holds so much great information in the WMI including information on the battery.

The below is a little PowerShell function that will show you what state your laptop battery is in full, charging etc.

WSUS how to remove an update from computers

Submitted by PhilEddies on Mon, 04/18/2011 - 10:38
administrator | 4351 points

If you have every wondered how to remove a update from computers using WSUS then the below should help.

 

  1. Open the WSUS MMC console and connect to your server
  2. Expand Update Services => Server Name => Updates
  3. Right-click All Updates and select Search

    wsus_removal_1.png

VBS Script: Migrate granularly users from one printer server to another

Submitted by PhilEddies on Tue, 04/05/2011 - 11:29
administrator | 4351 points

The below script is an example of how you can migrate users from one printer server to another based on the printer model or name.

Sometimes doing a big bang migratiion from an old print server to a new one is not the best idea so this script allows you to provide a list of printer models to migrate rather than doing them all at once. When I use this script I call it from a logn script and add a model or two a day until the migration is complete.

VBS Script to list the network printers a user is connected to

Submitted by PhilEddies on Mon, 04/04/2011 - 18:20
administrator | 4351 points

The below little VBS script is an example of how to pull back a list of network printers a users is connected to.

This script is only pulling back the server and share names but you could retrieve other properties in the same way

http://msdn.microsoft.com/en-us/library/aa394363%28v=vs.85%29.aspx

How to Restore the Show Desktop icon on the Quick Launch toolbar

Submitted by PhilEddies on Tue, 02/01/2011 - 18:06
administrator | 4351 points

The below steps show how to restore the Show Desktop shortcut if it has gone missing;

1) Open Notepad and paste in the below;

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

2) Save the file as "Show Desktop.scf" - remember to use the quotes else notepad may save it with a .txt extension.

3) If you want the shortcut back on the quick launch bar either drag it there.

VBS Script to report the properties of all files in a folder and its sub folders

Submitted by PhilEddies on Thu, 11/25/2010 - 22:29
administrator | 4351 points

I recently had a need to list the  properties of all files in a folder and its sub folders to find files that had not been used in a long time, or files where the owner had left. In my case I needed to run a report on approx 250,000 files which this script managed.

The script will get the following properties;

Pages