SCVMM: Unspecified error (0x80004005)

Today, when attempting to perform a Physical to Virtual conversion of a Windows Server 2008 R2 server, I would receive the following error upon running the system scan step:

An internal error has occurred trying to contact the SERVERNAME server: : .


Check that WS-Management service is installed and running on server SERVERNAME. For more information use the command "winrm helpmsg hresult". If SERVERNAME is a host/library/update server or a PXE server role then ensure that VMM agent is installed and running.

ID: 2912
Details: Unspecified error (0x80004005)

After looking all over the Internet, I was unable to find much to help me determine the cause. WinRM was running and configured. WMI services were running. I finally did come across a trend over several forums that discussed the network adapters. That led me to my solution.


Check out all the network adapters. If there are any that are unnecessary or uncommon, remove them. In our case, Cisco AnyConnect Secure Mobility Client was installed during a support call. A disabled Cisco Network adapter existed that would not allow WMI to query the data correctly on the network adapters, resulting in the failed P2V system scan.

Posted in SCVMM, System Center, System Center Virtual Machine Manager | Leave a comment

SharePoint 2010 calculated column and hyperlink (no workflows or scripts needed)

If you need to calculate hyperlinks in SharePoint 2010 based off of other fields in a list, check this out. It definitely came in handy with a recent project I was working on.


Often you will get a requirement like this:

Create a calculated column which concatenate the url text with an existing column value.

This seems to be an easy task, except one thing: SharePoint doest not render hyperlink in calculated column by default.

For example, I have a list with 2 columns: Search term and Google Search. Google Search is a calculated column with this formula

Now, this is what I will get by default:

There are a few ways to fix this problem. Usually people will recommend you to create a Hyperlink column instead and create a workflow to update the Hyperlink value ( . Or, you can place a script on the page that loop through the HTML nodes and replace the unfriendly html tags with a hyperlink as described here

But today, I’m going to show you how to trick SharePoint into displaying the…

View original post 58 more words

Posted in SharePoint 2010 | Leave a comment

Time Flies!

It is hard to believe my last post was back in August!  I am going to try my best to get back on here.  A lot has been going on for me and I know I will have a lot of content to post with our Server Virtualization project getting underway over the next couple of weeks.

We will be introducing Hyper-V into our server environment.  I have a lot to learn and post about regarding System Center 2012 and Windows Server 2012.

Posted in Random | Leave a comment

PowerShell: Scanning Domain Computers for Logged on Users

I have been using PSLoggedOn for a while now to determine who is logged on to our Domain Computers.  However, with Windows 7, this has become a harder task to accomplish.  This is because Windows 7 disables the Remote Registry service by default as a security measure.  Rather than enable it I decided to check into what PowerShell could do.  And my script below is what I came up with.  But keep in mind that it appears this will only capture users that are logged on locally (or onto the console session).  Users logged in through Remote Desktop are not captured.

The script also captures some inventory information, just for fun. You can also modify this script to remove the Export-CSV aspect to have the information displayed to the PowerShell window if you choose.


# Only the modify these parameters in the file

$reportpath = "C:\Scripts\WhoIsLoggedOn_Results.csv"
$domainname = 'dc=domain,dc=com'

# Do not modify below this line

Import-Module ActiveDirectory

$computers=@(Get-ADComputer -SearchBase $domainname -Filter '*' | Select-Object -ExpandProperty Name)
$array = @()

foreach ($computername in $computers) {

Trap {
write-warning "Error Trapped for $computername"
write-warning $_.Exception.Message

if (Test-Connection $computername -erroraction silentlyContinue ) {
$array += get-wmiobject Win32_ComputerSystem -computername $computername |
select -property Name,Username,Manufacturer,Model,SystemType
else {
"***** " + $computername + " is down. *****"


$array | Export-CSV "$reportpath"

Download My Script (Right Click and choose Save Link As…)

Posted in Active Directory, PowerShell | Tagged , , | Leave a comment

Windows XP: Drives Mapped by Group Policy Preferences are not Mapping

I finally got around to converting my Login Script, written in VB, converted to use Group Policy Preferences. The conversion went quite well, however a few cases did show up where some Windows XP computers were not mapping the drives.

After some investigation, I was able to determine that this was caused by a missing Windows Update. A few of my computers that were not imaged correctly had the same SusClientID used by my Windows Update Server which prevented them from downloading updates and reporting status.


To fix the drive mapping issue, I simply downloaded and installed Group Policy Preference Client Side Extensions for Windows XP (KB943729).  After rebooting the users were able to map drives without a problem.

I then went on to resolve the matching SusClientId issue.

Posted in Group Policy, Windows Server Update Service, Windows XP | Tagged , , , , | 2 Comments

WSUS: Workstations are not Reporting To or Receiving Windows Updates from Windows Server Update Service

If you discover that Workstations are not reporting to or receiving Windows Updates from your Windows Server Update Service, this is most likely caused by:

A) Corrupt SoftwareDistribution folder
B) Another Workstation having a matching SusClientId.


To fix either of these scenarios:

1) Go into services.msc
2) Stop the Automatic Updates service
3) Navigate to C:\Windows
4) Delete the SoftwareDistribution folder and WindowsUpdate.log
5) Open the Registry
6) Go to:


7) Delete SusClientId & SusClientIdValidation
8) Start the Automatic Update service
9) From the run command, run the following command:

wuauclt.exe /resetauthorization /detectnow

Posted in Windows Server Update Service | Tagged , , , , , | 2 Comments

SQL Server 2008 R2: Move Database Files to a New Location

I am in the process of decommissioning an old server. This server performed several roles, but was primarily our SQL Server. In moving a couple of the databases, they did not end up exactly where I wanted due to the process used to move them to the new server. I did some quick research and came up with this method to move the databases into their final location.


1)  Look at the Database Properties => Files

2)  Note the Logical Name & File Name

3)  Take Database Offline

4)  Move the MDF & LDF files to the new location

5)  Make sure permissions and ownership are configured correctly



SERVERNAME\Administrators = Full Control




6)  Run the following SQL Script:

NAME ='logicalname'
,FILENAME = 'E:\MDF\dbname\filename.mdf'

NAME ='dbname_log'
,FILENAME = 'F:\LDF\dbname\filename_log.ldf'

7) Bring the database back online.

Download My Script (Right Click and choose Save Link As…)

Posted in SQL Server 2008 R2 | Tagged , | Leave a comment