Dark Developments Where Knowledge Meets Power

28Sep/110

RECOVERY – Offline Registry Viewer

Posted by Dark#Basics

When installing a computer that needs to replace another one it is handy to know the old PC name, background, licence keys, etc. All these things and more can be found in the registry even when you use the hard drive as slave to copy some personal data. The registry files of the old host can be opened with an Offline Registry Viewer.

A free tool that I found was Windows Registry Analyzer

In addition some information about the local of the different registry files.

Windows NT-based systems store the registry in a binary hive format which can be exported, loaded and unloaded by the Registry Editor in these operating systems. The following system Registry files are stored in %SystemRoot%\System32\Config\:

- SAM - HKEY_LOCAL_MACHINE\SAM
- Security – HKEY_LOCAL_MACHINE\SECURITY
- Software – HKEY_LOCAL_MACHINE\SOFTWARE
- System – HKEY_LOCAL_MACHINE\SYSTEM
- Default – HKEY_USERS\.DEFAULT
- %UserProfile%\NTuser.dat - HKEY_USERS\<User SID> (HKEY_CURRENT_USER)
- %UserProfile%\Local Settings\Application Data\Microsoft\Windows\Usrclass.dat or (Vista+) %UserProfile%\AppData\Local\Microsoft\Windows\Usrclass.dat  – HKEY_USERS\<User SID>_Classes (HKEY_CURRENT_USER\Software\Classes)

Filed under: Recovery No Comments
28Sep/110

PS – PowerShell Service Check

Posted by Dark#Basics

Because of some recent issues regarding automatic services not starting up after a reboot, I wrote a small PowerShell script that checks a service if it's running.

Select All Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function CheckService{ param($ServiceName)
    $srvServiceDetails = Get-Service -Name $ServiceName
 
    if ($srvServiceDetails.Status -ne "Running"){
        SendMail -ServiceDetails $srvServiceDetails
    }
}
 
function SendMail{ param($ServiceDetails)
    $smtpServer = "out.darkdevelopments.com"
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $msg = new-object Net.Mail.MailMessage
    $strComputer = gc env:computername
    $smtpSubject = "[SYSMON] SERVICE ALERT @ " + $strComputer
    $msg.From = "sysmon@darkdevelopments.com"
    $msg.To.Add("darkbasics@darkdevelopments.com")
    $msg.Subject = $smtpSubject
    $msg.Body = "Hostname: " + $strComputer + "`nDisplayName: " + $ServiceDetails.displayname + "`nName: " + $ServiceDetails.name + "`nStatus: " + $ServiceDetails.status
    $smtp.Send($msg)
}
 
CheckService -ServiceName "TheServiceNameHere"
19Sep/110

VMware – vCenter Converter

Posted by Dark#Basics

VMware - vCenter Converter
Taking physical machines and making them virtual can be a long and complex process.  With vCenter Converter it is possible to automate and simplify physical to virtual (P2V) as well as converting virtual machine formats for example VMDX-files from exported VM's in VMWare Workstation. It is possible to convert Microsoft Windows and Linux-based physical machines and third-party formats to VMWare virtual machines.

When running vCenter Converter the first option you will need to chose is a source type. There are five available options in the current version:

  • Powered-on machine - Convert any powered-on physical or virtual machine (local or remote).
  • VMware Infrastructure virtual machine - Convert a virtual machine from VMware VirtualCenter or VMware ESX Server.
  • VMware Workstation or other VMware virtual machine - Convert a virtual machine from VMware Workstation, VMware Player, VMware Fusion or other VMware product.
  • Backup image or third-party virtual machine - Convert a backup image or a third-party virtual machine. For example Microsoft Virtual PC, Parallels,  VMware Consolidated Backup, Symantec LiveState Recovery Image, StorageCraft ShadowStor Image, Acronix True Image Backup.
  • Hyper-V Server - Convert a virtual machine from Microsoft Hyper-V Server.

After selecting the desired option and selecting/adding the necessary information you will be able to configure the VM's settings. For example CPU, memory, hard disk,... Based on previous selection you will be able to create (a) virtual machine(s) to a vSphere host, VMware Workstation, VMware GSX Server, VMware Player, VMware Server or VMware Fusion.

You can get a free copy of vCenter Converter here at www.vmware.com/products/converter/

15Sep/110

SQL – Enable Remote Access for SQL Express and SQL Server Developer Edition

Posted by Dark#Basics

SQL - Enable Remote Access for SQL Express and SQL Server Developer Edition

By default, SQL Server 2005 Express Edition and SQL Server 2005 Developer Edition do not allow remote connections. To configure SQL Server 2005 to allow remote connections, complete all the following steps:

* Enable remote connections on the instance of SQL Server that you want to connect to from a remote computer.
* Turn on the SQL Server Browser service.
* Configure the firewall to allow network traffic that is related to SQL Server and to the SQL Server Browser service.