Author Archives: 1czfq

Convert MBR in GPT with “gdisk”

With “gdisk” (no, it is not Google Disk ;-)) – you can convert a MBR volume in GPT .

You can get “gdisk” from http://www.rodsbooks.com/gdisk/download.html.

Example:

C:\Windows\system32>gdisk
GPT fdisk (gdisk) version 0.8.5

Type device filename, or press <Enter> to exit: 1:
Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
you don't want to convert your MBR partitions to GPT format!
***************************************************************

************************************************************************
Most versions of Windows cannot boot from a GPT disk, and most varieties
prior to Vista cannot read GPT disks. Therefore, you should exit now
unless you understand the implications of converting MBR to GPT or creating
a new GPT disk layout!
************************************************************************

Are you SURE you want to continue? (Y/N): y

Command (? for help): ?
b       back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

Command (? for help): l
0700 Microsoft basic data  0c01 Microsoft reserved    2700 Windows RE
4200 Windows LDM data      4201 Windows LDM metadata  7501 IBM GPFS
7f00 ChromeOS kernel       7f01 ChromeOS root         7f02 ChromeOS reserved
8200 Linux swap            8300 Linux filesystem      8301 Linux reserved
8e00 Linux LVM             a500 FreeBSD disklabel     a501 FreeBSD boot
a502 FreeBSD swap          a503 FreeBSD UFS           a504 FreeBSD ZFS
a505 FreeBSD Vinum/RAID    a580 Midnight BSD data     a581 Midnight BSD boot
a582 Midnight BSD swap     a583 Midnight BSD UFS      a584 Midnight BSD ZFS
a585 Midnight BSD Vinum    a800 Apple UFS             a901 NetBSD swap
a902 NetBSD FFS            a903 NetBSD LFS            a904 NetBSD concatenated
a905 NetBSD encrypted      a906 NetBSD RAID           ab00 Apple boot
af00 Apple HFS/HFS+        af01 Apple RAID            af02 Apple RAID offline
af03 Apple label           af04 AppleTV recovery      af05 Apple Core Storage
be00 Solaris boot          bf00 Solaris root          bf01 Solaris /usr & Mac Z
bf02 Solaris swap          bf03 Solaris backup        bf04 Solaris /var
bf05 Solaris /home         bf06 Solaris alternate se  bf07 Solaris Reserved 1
bf08 Solaris Reserved 2    bf09 Solaris Reserved 3    bf0a Solaris Reserved 4
bf0b Solaris Reserved 5    c001 HP-UX data            c002 HP-UX service
ef00 EFI System            ef01 MBR partition scheme  ef02 BIOS boot partition
fd00 Linux RAID

Command (? for help): p
Disk 1:: 524288000 sectors, 250.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): CD93D98E-986C-4BE6-BBF8-CA21CFC15426
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 524287966
Partitions will be aligned on 2048-sector boundaries
Total free space is 314578877 sectors (150.0 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048       209711103   100.0 GiB   0700  Microsoft basic data

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to \\.\physicaldrive1.
Disk synchronization succeeded! The computer should now use the new
partition table.
The operation has completed successfully.

C:\Windows\system32>
Did you like the article? Then I'm happy if you like and share it.
Thank you!

The 5 most read articles in 2018 on windows-server-2012-r2.com

The year comes to an end. Although I don’t really maintain this site anymore, it still has some visitors. What were the top 5 articles in 2018?

1How to install Active Directory Users and Computers in Windows Server 2012
2Step by Step Guide: Configuring VPN under Windows Server 2012 with NPS
3Printer objects in Active Directory Users and Computers
4File and Storage
5DNS Zone Delegation
Did you like the article? Then I'm happy if you like and share it.
Thank you!

Do not display printers with the same IP address grouped any more

printerWe had many printers that we address with different printer settings (e.g. b/w, color, tray1…). Therefore we use the same windows driver with the same IP with the different settings set.  Since Window 7 / Server 2008, these are then grouped in one printer, which makes the search for the settings not really easy.

But the old printer view is still available by creating a folder with the name

Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}

to the bank.

Did you like the article? Then I'm happy if you like and share it.
Thank you!

WWW Publishing Service cannot be end – Error 1068: The dependency or group failed…

www-publishing-serviceIn inetmgr the application pool could not be selected, the applicationHost.config is not a valid XML file.

Under c:\Inetpub\History you can still find backups of the file. If this file is restored, everything works.

More information here:

http://serverfault.com/questions/47954/cant-open-iis7-manager-invalid-xml-in-applicationhost-config

Did you like the article? Then I'm happy if you like and share it.
Thank you!

Event ID 215 – Source AppReadiness

errorFor Windows 8.1 or Server 2012 R2, the following error may occur when using local users:

“‘ART:ResolveStoreCategories’ failed for Administrator. Error: ‘Class not registered”

Event ID 215 - Source AppReadiness

The AppReadiness Diest searches the Windows Store for category names that match the already installed apps when the user logs in for the first time. Since a local user is not known to the app store, the event entry is logged. The error can be ignored. See also http://support.microsoft.com/kb/2916750/en-us

Did you like the article? Then I'm happy if you like and share it.
Thank you!

Switch between minimal server interface, server core and GUI

GUIIn this article I show you how to switch between minimal server interface, server core and GUI.

In the graphical user interface you will find the setting options under…

  • Features
  • User Interface and Infrastructure

If you only have the shell, you start with

start powershell

the same.

With

Install Windows Feature Server Gui Mgmt Infra

you install the minimal server interface and with

Install Windows Feature Server Gui Shell

the full one.

The necessary restart can be done with

shutdown /r /t 1
Did you like the article? Then I'm happy if you like and share it.
Thank you!

How to find out the serial number of a proliant server

serverIn this article I show you how to find out the serial number of a HP Proliant server.

Unfortunately it is not so easy to get the serial number of an HP Proliant server. In the system management homepage it difficult to find.

HP has published a small script. It works quite well.

Simply save the following script as “serialnumber.vbs” and execute it.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colBIOS = objWMIService.ExecQuery _
    ("Select * from Win32_BIOS")
For each objBIOS in colBIOS
    Wscript.Echo "Manufacturer: " & objBIOS.Manufacturer
    Wscript.Echo "Serial Number: " & objBIOS.SerialNumber
Next

The script should also work with other manufacturers, since it uses standard functions.

Did you like the article? Then I'm happy if you like and share it.
Thank you!

Event ID 4202 – Source Iphlpsvc

The following error may occur:

Event ID 4202 - Quelle Iphlpsvc

The IP address for the Isatap interface istatap….. was not updated. Update type…

Resetting the TCP-IP stack helps here. Call CMD with adminsitrative rights and enter the following:

netsh winsock reset

After a restart everything should be OK again.

Did you like the article? Then I'm happy if you like and share it.
Thank you!