Posts Tagged ‘Windows 7 Beta’

Run only scripts that you trust. Disable Powershell Message

Monday, October 26th, 2009

If you are like me you have probably run into the following error when trying to run powershell scripts. This becomes very annoying and tedious if you are running different scripts on a regular basis.

“Security Warning – Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your computer. Do you want to run –.ps1? [D] Do not run [R] Run once [S] Suspend [?] Help (default is “D”):

Step #1

The first thing you need to do is launch Windows Powershell.

Step #2

Then enter the following commands:

get-executionpolicy

set-executionpolicy bypass

Powershell Trust Scripts

Powershell Trust Scripts

Now launch your script and enjoy not seeing that annoying message come up.

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

Completely removing Windows Vista/Windows 7 Printer Driver

Sunday, October 25th, 2009

If you right click on a printer and delete it, this doesn’t remove the printer driver from the machine. Sometimes when working with print servers and testing multiple drivers there will be times when you need to completely remove a driver package from the machine so you can install a new or different one.

Windows Vista and Windows 7 has a tool called the Microsoft Management Console (MMC) built into windows which you will use to remove the drivers.

Step #1

Reboot the machine and login as “Administrator”.

Step #2

Go to the start menu and start typing MMC, you will see the Microsoft Management Console shortcut appear in the start menu; click on it.

MMC - Remove Print Driver

MMC - Remove Print Driver


MMC

MMC

Step #3

Go up to the file menu and select Add/Remove Snap-in…

MMC - Add/Remove Snap-in...

MMC - Add/Remove Snap-in...

Step #4

Then scroll down in the list and select the “Print Management” snap-in and then hit “Add”.

MMC - Print Management

MMC - Print Management

Step #5

At this screen you are going to want to select “Add the Local Server”, hit Finish, and then hit ok.

MMC - Add the Local Server

MMC - Add the Local Server

Step #6

Then you can scroll down to your computer name, select the drivers tree and then right click on the driver you want to remove and select “Remove Driver Package”.

MMC - Remove Driver Package

MMC - Remove Driver Package

Step #7

Make sure you reboot your machine before trying to add new or different print drivers.

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

UVNC SC working slow in Windows 7 Environment

Saturday, September 26th, 2009

Some of you may have noticed the UVNC SC working slow between windows 7 machines. To fix this, you simply need to recompile your HelpDesk.exe and download the latest version of UVNC client.

Rudi De Vos over in the UltraVNC forums posted a fix for this problem.

Also, here is the link for the newest version of UVNC.

I have tested Rudi’s fix in test environment and we are now using this in production environment within Windows 7 environment and it is working great. Thanks Rudi!

UVNC Listener

UVNC Listener

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

How to Fix Corrupt Windows 7 Profile – Logged in as Temp

Friday, August 21st, 2009

While working with Microsoft’s Windows 7 operating system over the past few months I have noticed that sometimes when working with multiple profiles that they can sometimes get corrupted. The error I would receive says that “You are logged into a Temporary Profile.” This means that anything that user would do under that profile would get wiped immediately upon logging off. This problem seems to happen more frequently when it is a member of a domain. This will show you how to fix the profile error in Windows 7 without having to simply wipe the profile. This can come in very handy sometimes and has saved me hours of backing up and transferring profile data.

Windows 7 Logo

Windows 7 Logo

Step #1

Restart your PC to release the locks on your profiles.

Step #2

Log on with another administrative account.

Step #3

Delete C:\Users\%username%

Step #4

Delete C:\Users\TEMP

Step #5

Delete the registry key matching your SID from

“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList”.

Check the value “ProfileImagePath” to make sure you pick your own profile.

Step #6

Restart once again and then you’re done!

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

How to Capture and Deploy Image (.wim) Without Sysprep

Saturday, August 8th, 2009

If you are using WinPE 2.0 or WinPE 3.0 to capture your PC images (.wim files) and deploy them you have probably run into a little problem when trying to deploy an image of Vista or Windows 7 when not first running sysprep. The problem is that if you try to re-deploy an image of a nonsysprepped image of Vista or 7 that the BootMGR will be broken. Follow the steps below to fix this problem.

Microsoft Windows 7 Icon

Microsoft Windows 7 Icon

Step #1

I am assuming you have captured your image already and are ready for deployment. Go ahead and boot up your image deployment software (WinPE 2.0 or WinPE 3.0).

Step #2

In my other articles I describe how to use DiskPart and also avoiding the hidden partition before deploying a new image. I suggest reading them.

Step #3

After you have deployed your non-sysprepped image you need to run the following commands: (I have a batch file I use to do this).

bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c:

Step #4

This will fix the BOOTMGR problem when deploying a non-syprepped image in Vista or 7. Enjoy!

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

How to Install Windows 7 From a Flash Drive / USB Stick

Friday, July 31st, 2009

This is a short guide on how to install Windows 7 onto a computer from a USB Flash Drive / USB Stick or Portable Hard Drive. Since read speeds are faster from USB drive than your CD-ROM drive, this actually decreases the install time for Windows 7.

OCZ Flash Drive - Install Windows 7

OCZ Flash Drive - Install Windows 7

Step #1

The first thing you will need to do is format your USB Flash Drive or Portable Hard Drive so that your computer will read it as a bootable drive. So plug your flash drive into a workstation.

Step #2

Open up Command Prompt / CMD (located in Program Files->Accessories) and type the following commands:

DiskPart
List Disk (this will list the disks currently plugged into your computer. Most likely, the C: drive on that computer will be listed as disk 0, and you will have to look down the list to see which disk your flash drive is. Look at the corresponding disk sizes to easily figure it out.)
Select Disk 3 (I am using 3 as example for assigned flash drive)
Clean
Create Partition Primary
Select Partition 1
Active
Format FS=NTFS Quick
Assign (you can assign a particular drive letter if you want, example: assign=E:)
Exit (this will exit DiskPart)
Exit (this will exit CMD)

Step #3

Next you will need to either insert your Windows 7 CD and browse to the CD or open up your Windows 7 ISO and browse to the folders within it. (If you are using ISO, I would suggest extracting the contents to a new folder)

Step #4

Next you will need to spoof your flash stick so that the computer will think it is an install CD. From within the root of the Windows 7 CD or ISO contents, right click while holding shift key and select “Open Command Windows Here”. This will open up a Command Prompt window within that directory. Then input the following commands:

cd Boot
bootsect /nt60 E: (I am using drive letter E: as my flash drive)
exit (exits command prompt)

Step #5

Next simply copy over the entire contents of your windows 7 CD or ISO to your flash drive.

Step #6

Reboot the computer your are wanting to install Windows 7 on with the flash drive plugged in, hit the boot key (normally F12, DEL, or ESC) to select the boot device, boot to your flash drive, and it will go immediately to the Windows 7 Setup screen.

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

How to Avoid Reserved or Hidden Partition in Windows 7

Tuesday, July 28th, 2009

There is a hidden partition created by default in Windows 7. This can be very frustrating, especially for IT administrators who are working with capturing and deploying images with Sysprep and ImageX. The boot files needed for Windows 7 to boot correctly are stored on this 2nd hidden partition. This will show you how to install Windows 7 on one partition.

Step #1

First, there is no way to simply delete this hidden 100MB partition in Windows 7; you simply have to reformat. So the first step is to backup your data and boot to the Windows 7 Install CD. (To boot to CD, restart your computer and normally it will be either DEL, F12, or ESC key to select CD-ROM drive, and boot to it)

Step #2

Once you are up to the Windows 7 screen, you will need to select “Repair Your Computer” option.

Windows 7 Startup Repair - Picture provided by About.com

Windows 7 Startup Repair - Picture provided by About.com

Step #3

Next you will need to select “Command Prompt”.

Windows 7 Command Prompt - Picture provided by About.com

Windows 7 Command Prompt - Picture provided by About.com

Step #4

In Command Prompt we are going to reformat your hard drive in a certain way so the 2nd partition doesn’t automatically get created when you install Windows 7. Here are the comands:

Diskpart
List Disk (You might have more than one hard drive)
Select Disk 0 (By default your main boot drive will be disk 0, check it)
Clean
Create Partition Primary
Select Partition 1
Active
Format FS=NTFS Quick
Exit

Step #5

Then simply walk through installing Windows 7 as you would normally. This time the setup will not create the 100MB hidden reserved partition.

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks

Windows 7 Tip – Get the QuickLaunch toolbar back

Wednesday, January 14th, 2009

I am not a big fan of having the “show desktop” button on the bottom right hand side of the screen.  When does anyone ever have their cursor down there?  On bigger LCD’s that can be a hassle.

This will show you how to re-add the quick launch toolbar on the bottom left hand side of the screen.

1. Right-click the taskbar, choose Toolbars / New Toolbar
2. In the folder selection dialog, enter the following string and hit OK:
%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch
3. Turn off the “lock the taskbar” setting, and right-click on the divider. Make sure that “Show text” and “Show title” are disabled and the view is set to “small icons”.
4. Use the dividers to rearrange the toolbar ordering to choice, and then lock the taskbar again.

Quicklaunch on Windows 7 Beta Taskbar

Quicklaunch on Windows 7 Beta Taskbar

Share and Enjoy:
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks