Yearly Archives: 2012

There is not enough space available on the disk(s) to complete this operation

When you want to resize the disk in Windows 7, server 2008 or server 2008 R2, you might get this warning:

Error: there is not enough space available on the disk(s) to complete this operation

This could be fixed by the following guides:

  1. Right click on my computer
  2. Click on Manage
  3. Goto storage
  4. Click on Disk management
  5. Right click on disk management and click on rescan disks
  6. Try to resize the disk again

Change SQL Collation

Steps for chaning Collation:

  1. Take backup of Databases and logins.
  2. Detach all databases execpt system databases. (All users databases)
  3. Find the SQL server installation path (Root of the CD)
  4. Run this command:
    Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLServer /SAPWD=Qwerty123 /SQLSYSADMINACCOUNTS=”administrator” /SQLCollation=SQL_Scandinavian_Cp850_CS_AS

/QUIET – Run it as a sillent installation

/action – We are running rebuilddatabase to change the server collation

/Instancename – withs instance do you want to change collation on.

/SAPPW -SA password for this instance

/SQLSYSADMINACCOUNTS – An administration account, normally the run you are running this from. The user should be administrator of the SQL Server

/SQLCollation – withs collation should you change to.

 

Problems with GPO and mapped network drive and shortcut

Today i have to create a GPO with a shortcut to an already mapped network drive.

Both the Shortcut and the mapped Network drive is created by GPO.

The mapped network drive mapped fine, but the shortcut wasen’t created at all. The Event viewer toll me that that the shortcut could not be created because the file was not found.

Instead of using File System object, i created a URL Shortcut, still to the exe file. This works, but now the icon was a Internet Explorer Icon.

In GPO you can customize the icon, under icon file path

.

 

Terminal server, Redirected folders and PDF Creator problems

Today i have installed the programs PDF Creator on a Terminal servers, Windows 2008 R2. But it will only run under the administrators account.

Some search for errors lead me to that it could be that PDF Creator creates is temp files under <temp>\PDFCreator, but my user have redirected folders, so it was under a network shares. It seams that PDFCreator have some troubles with this, so I change the temp location in the registry database, and its now working for my users.

You need to change:

KEY_CURRENT_USER\Software\PDFCreator\Program\PrinterTemppath
“PrinterTemppath”=”<temp>PDFCreator\”

Changed the value to “C:\PDFCreator\”

Change also:
HKEY_USERS\.DEFAULT\Software\PDFCreator\Program\
“PrinterTemppath”=”<temp>PDFCreator\

Changed the value to “C:\PDFCreator\”

Then create a folder on c:\ with the name of PDFCreator, and set security so that all yours terminal servers users have modify access to this folders.

 

 

Windows 7 / Office 2010 get serial key from registry

For personale use only, use this programs:

http://kennethdalbjerg.dk/wp-content/uploads/2012/02/siw-setup.exe

With this programs you can get the Serial key from you installed Windows 7 or Office 2010:

http://kennethdalbjerg.dk/wp-content/uploads/2012/02/produkey.zip

The product is code by:

ProduKey v1.53
Copyright (c) 2005 – 2011 Nir Sofer
Web Site: http://www.nirsoft.net/utils/product_cd_key_viewer.html

It can get the serial for this products:

* Microsoft Windows 98/ME
* Microsoft Windows 2000
* Microsoft Windows NT
* Microsoft Windows XP
* Microsoft Windows Vista
* Microsoft Windows Server 2003
* Microsoft Windows 7 (Works only for some of the Windows 7 versions,
see the known problems section)
* Microsoft Office 2000 (Only ProductID is displayed)
* Microsoft Office 2003
* Microsoft Office 2007
* Microsoft Office 2010
* Microsoft SQL Server 2000
* Microsoft SQL Server 2005
* Microsoft Exchange Server 2000
* Microsoft Exchange Server 2003

 

Known Problems
==============

* When running produkey.exe, Some Antivirus programs displays an alert
and/or block you from running it. Click here to read more about false
alerts in Antivirus programs
* For some Windows 7/2008 licenses, the product key is not stored in
the Registry, and thus ProduKey cannot retrieve them. In these cases,
ProduKey will display ‘Product key was not found’ in the product key
column.
* If you bought your computer with installed operating system, you may
find the Windows product key appeared in ProduKey utility is different
from the product key on your Windows CD. This problem is mostly
reported with Dell computers.
* From unknown reason, the product key of Visual Stuido .NET is written
in the Registry as Office XP product…
* In old versions of Office (Office 2000 and below), the ‘Product Key’
value is not available.