Wednesday, March 26, 2014

BITS service is missing

The other night I encountered something I've never seen before, the Background Intelligent Transfer Service(BITS) was completely missing from a Windows 2003 Server.. yup, gone, non-existent. This was most likely due to the fact that someone pushed a WSUS update out that disabled and or stopped the BITS and wuauserv service on all the servers in the domain.

If the Automatic Updates service is missing:
      1. Open an Elavated PowerShell prompt
      2. Type the following command:
%windir%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\inf\au.inf

If Background Intelligent Transfer Service is missing:
     1. Open an Elavated PowerShell prompt
     2 . Type the following command:
%windir%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %windir%\inf\qmgr.inf

If you are prompted to insert your operating system CD, type the following path in the Copy files from box as this is where the most recently updated service pack files are stored.:
%windir%\ServicePackFiles\i386


Take a look at services.msc and you should now have all services. At this time I ran the following command:

wuauclt /detectnow /register /reportnow

 This will make the server you are logged onto check into WSUS. All done, onto the next server.... 

Another thing that could help -- re-registering the various dll files that Windows Update requires to run.

regsvr32 wuapi.dll
regsvr32 wups.dll
regsvr32 wuaueng.dll
regsvr32 wucltui.dll
regsvr32 atl.dll
regsvr32 msxml3.dll

Wednesday, March 19, 2014

Expand a Basic Drive with Dell ExtPart

Last night I was assigned the task of expanding the C: drive on a Windows Server 2003 virtual machine. But wait, when I right click on the C: drive within Disk Management I'm not seeing the option 'Expand Drive'....


What to do now...


First we must Increase the virtual machines c: drive space from within VMware.

Right click the VM > Click 'Edit Settings' > Increase the size to the size you would like to expand the drive to.
From the computer you are expanding the drive on you can open a PowerShell prompt and type:
"rescan" | diskpart 
which will in turn pipe the Diskpart command(rescan) into Diskpart. Pretty neat huh?

 Now you should be able to see the unallocated space that you just assigned to this computer in VMware. 

Now for the really fun part..

Since this C: drive is a basic disk we won't be able to expand this drive via the GUI or with Diskpart(Diskpart cannot expand C: drives)
Download and save the Dell Extpart utiltiy to a location of your choosing (I always choose C:\Dell\ExtPart\).
1. Open an elevated command prompt > browse to the extpart.exe location . In my case C:\Dell\ExtPart by typing "cd c:\dell\extpart\". Now hit 'Enter' and type "extpart.exe".


2. Type the Drive letter which you want to extend and then the number of MB's you would like to add
C: <MB to expand drive by>
which will expand the drive specified by 60 GB.



3. Now specify how many MB you would like to expand your C: drive by. We have 60 GB of unallocated space so I specified  61440 MB which will hopefully consume all of the unallocated space..
The drive has now been extended and is showing a new volume size of 81981 MB! 








Looks like we have 16 MB hanging around yet...
That's easy, follow the same steps as above only this time there shouldn't be much math involved, just run the command:

extpart.exe c: 16


Boom, our C: drive has been successfully expanded!!

SystemName Drive Size (GB) FreeSpace (GB) PercentFree
---------- ----- --------- -------------- -----------
COMPUTERNAME C:    80.0      61.6           77.06 %