Category Archives: Microsoft

All Microsoft Products (Exchange, SQL, Windows, Server)

.Net 4.0 Server 2008 R2

I was having an issue installing .net 4.0 on my WSUS server. I was receiving an 8024800c error. Reboot solved nothing.

I ended up stopping the automatic updates, deleting the SoftwareDistribution folder, restarting the updates service, and then I was able to install.

Open a command prompt
net stop "Windows Update"
del C:\Windows\softwareDistribution
y
net start "windows update"
Re-run your installation

Systeminfo Error Provider Failure

I’m a huge fan of remotely diagnosing computer issues. If I tell a remote VPN user to bring in their equipment that means there is something terribly wrong with their system.

I was attempting to use systeminfo /s IPOFCOMPUTER to check the hotfixes that had been applied and verify the network wasn’t causing issues.

Loading Network Card Information …ERROR: Provider failure

Awesome.
Another site told me to delete the wbem/repository files as they were probably corrupt. WMI requires these files.
In order to delete them, you must turn off the WMI Service (Windows Management Instrumentation), but I was having difficulty stopping the service remotely via my services.msc connected to their system.

So I fired up psexec and ran the command lines:
psexec -s \\computerIP cmd.exe
net stop "windows management instrumentation"

I then deleted the files located in:
C:\windows\system32\wbem\Repository

Then start up the WMI:
net start "windows management instrumentation"

Now I could re-run the systeminfo /s systemnameorip and it worked like magic.

C$ From Domain Computer to Non-Domain Errors

I had a user with administrative permissions added onto a server 2008 system (on a workgroup) that could not map out the c$ admin share. I’m not sure of the exact error now since I’m writing this up about a month after the fact, but I found the fix.

Win7 client on domain connecting to win2k8 server on workgroup. Did the \username with password, still no dice. Registry fix fixed issue.

Download File
EnableCShare.reg

Install File

Wait about 30 seconds

Attempt C$ again

Obviously check ALL registry files BEFORE importing onto your system. Just in case someone tries to pull your leg.

USB Drive Missing Space

I had formatted a usb flash drive to be a linux boot disk. Then, when finished, I went to reformat the drive and was only prompted to format 168MB out of the 1GB it originally had.

Open up the command line and type in the following:
disk part
list disk
select disk YOURDISKNUMBER
clean

After cleaning, you should be able to right-click and format again with the full amount of space. You can also finish this up using command line:
create partition primary
select partition 1
active
format fs=fat32 quick
assign
exit

Admin Share Windows 7 Server 2008

If the Windows 7 or Server 2008 (even R2) is not in a domain but in a workgroup, you may have administrative issues trying to access C$ etc.

Google found me this:
http://blog.hansmelis.be/2009/09/06/administrative-shares-in-windows-7/

A simple registry change and away you go. You do not have to reboot, but after the change you might have to wait up to a few minutes for it to work.

Those who have experience with NT-based operating systems on a network will certainly be familiar with the concept of administrative shares. If that doesn’t ring a bell, you access them like \\computername\c$. With this intro and the title of this post, you might be alarmed or enter panick mode fearing they might be gone in Microsoft’s latest OS iteration. Well don’t go into cardiac arrest because they are still there… but of course not without the odd problem.

Windows 7 still creates the administrative shares on install, but you can’t use them out of the box. First of all, you need to have File and Printer Sharing enabled. And the way to do that has once again been changed:

Open the control panel.
Go to Network and Internet.
Go to Network and Sharing Center.
In the left column, click on Change advanced sharing settings.
There are two profiles. You probably don’t want this on when you’re on a public network so open Home or Work.
Under the header File and Printer sharing, select the Turn on… option.

And now your administrative shares still don’t work 😛 You’ve just completed step 1 which implies there’s at least a step 2 and here it is: you also need to change the registry.

Click on the orb (= the round button with the Windows logo in the taskbar) and type regedit in the search box.
Open the registry editor.
Navigate all the way to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
Right-click in the pane on the right side and add a new DWORD (32-bit).
Give the new setting the name LocalAccountTokenFilterPolicy.
Double click on that setting and give it a value of 1.

It’s probably wise to reboot after doing this, although it might not be needed. I’m not sure if it works straight away because I rebooted without trying.

Anyways, if you’re lucky you will be able to access administrative shares after performing these steps. If you’re unlucky, like me, doing all these things appears to have zero effect at all. Once again don’t panick, because there’s another hint/tip/solution coming your way.

Somewhere at some point during the installation or configuration of Windows 7, you will be asked to do something with a thing called Homegroup. It’s some weird new sharing tool that looks OK but isn’t quite what you’re used to. Once you have enabled that feature, you won’t be able to use the administrative shares. So the tip is: disable the homegroup feature.

Open the control panel.
Go to Network and Internet.
Go to HomeGroup.
Click on the blue link Leave the homegroup.

The popup dialog should point out itself, but I believe I picked to first option. Once I had left the homegroup, the administrative shares started working again.

I hope this post can help anyone who experiences the same problem.

Owncloud 4 and AD LDAP

I recently migrated from owncloud 3 to owncloud 4 for a few of the newest features (versioning, security, working ldap).

LDAP configuration
LDAP Basic
Host: IP or Resolvable DNS
Base: dc=DOMAIN,dc=TLD
Name: user@domain.tld
Password: password
User Login Filter: sAMAccountName=%uid
User List Filter: objectClass=user
Group Filter objectClass=group

Advanced
Port: 389
Case insensitive LDAP server checked
Display Name Field: sAMAccountName

NPS Radius 2008 Cisco ASA VPN

I had IAS working on a 2003 server as a RADIUS server for authentication to a Cisco ASA for VPN connectivity.

1                     Create a RADIUS Client on the NPS

2                     Create a network Policy as follows;

  1. Right click network policies and click new
  2. Type a policy name accept the defaults and click next
  3. Add a condition (I used a windows group with my users in it), click next
  4. Make sure the access granted radio button is selected and hit next
  5. Select the “Unencrypted authentication (PAP, SPAP)” and unselect the rest
  6. Select NO on the annoying help box
  7. Finally select next then next and finish to complete.

3                     Configure your Cisco device for RADIUS as you would have with 2k3.