Saturday, August 30, 2014

Recovering Laptop Harddrive with Sync Toy and USB Dock Master

Needed to recover data off of a laptop and moving the files just wasn't working...
 
 
Decided to try Microsoft's SyncToy. We use it on some of our laptops to backup data from the laptop user's documents folder to a server which has it's own backup.
 
Created folder pairs for syncing between the failed harddrive and new folder on my desktop.
Since the harddrive was failing (faint click sound), paging errors and the odd bad block error showed up in the event log and SyncToy would stall, but not stop responding.  (Unlike Windows explorer)
 
To get it to start copying again, simply unplugged the USB cable from my desktop and plug it in again.
 
Now most copy jobs would stop completely when you do this, but not SyncToy. It moved on to the next file and try to copy that one.  
 
Granted there would be some files that would be missed based on how long Windows took to re connect the drive however, that is better than no files at all or manually copying over file by file and trying to find out which one was failing.
 
Once that was done, reran the Windows Chkdsk program on the drive and then ran the SyncToy folder pairs again to recover more files. 
 
Since SyncToy catalogs and compares file changes, this time the Sync took less time.  The harddrive still had that faint click of death and still required unplugging and plugging the USB cable.  When SyncToy stalled on a bad file, wrote down the file name(s) and then went back into the Folder pair settings and excluded the file(s).  This helped recover as much as 90% of the folders contents in some cases.
 
 
 

Friday, August 8, 2014

SCCM 2012 Clients with Random Software Update Install Failures

Yesterday (Aug. 7, 2014) our SCCM clients started randomly failing to install locally published software updates.  Then even the new RDS servers started failing to install Windows updates via SCCM.  Yet for some reason other clients would install updates

First thought was WSUS certificate issues or Group Policy settings...  Strike one and two.

Try again in the morning...

Of course they didn't magically fix themselves over night (when does that ever happen).

This morning no clients would install any updates.

Looking at the windows update logs on the client machines found error about communication with the endpoint at http .... /clientwebservice/client.asmx.

So the WSUS server was the problem...

Sure enough Windows Update Server Service errors - Event ID in the Application log 12002,12012,12032,12042,12052,12072.

Started with restarting the WSUS service and Window Internal database service... Strike three.

Still not out... maybe I'll just stop using baseball references...

Started looking at the System event log and found that WAS or WsusPool had failed, so onto an IIS investigation. 

Restarting the WSUSPool, it look promising... Wsus was starting... no errors, but then failed after maxing out the CPU for about 5 minutes.

Found one website that said there was no solution, had to rebuild the server from scratch.  That would be bad... very bad... At that point I thought of restoring the system from the day before it failed.

Kept searching the internet for nearly 2 hours and then finally came up with this process...

1) IIsreset /noforce

2) Restarted the Windows Internal database service

3) Deleted the preferences in %appdata%\Microsoft\MMC for WSUS

4) Opened WSUS management console and waited...

Everything was back to normal and actually the final solution is not that complicated.

As with all solutions... there is no guarantee.  It worked for me, it may not work for you.


More SCCM related posts

Thursday, May 1, 2014

Custom Lync Room System Startup

Keep update on this project by following this link... http://bit.ly/netadmlr


To create the Domain joined custom Lync Room System...
  1. Group Policy to change these Registry Entries using Preferences
    1. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon (Applied to Computer Settings)
      1. DefaultUserName - LyncRoomAccount
      2. DefaultPassword - LyncRoomAccount Password
      3. DefaultDomainName - Domain.ca
      4. AutoLogonCount - Deleted
      5. AutoLogonChecked - Deleted
    2. HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell to wscript.exe //NoLogo /I "C:\Program Files\Lync Room System\Lync Room Computer Startup.vbs"  (Applied to Lync Room User Account Preferences)
    3. By using Preferences you can apply the settings based on Computer Name or Account name.  This allows the computer to still be used as a regular Windows system when logged off.
  2. Lync Room Computer Startup.vbs 
    1. Uses these Sysinternals programs BGInfo, PSKill
      1. Copy the BGinfo program over to "Program Files\Background"
      2. Edit LRS.bgi to change the desktop text and jpg images.
    2. Starts Rainmeter program with "Lync Room System" skin
      1. Once you install the program and installed Lync Room Skin, you must copy the "Lync Room System" folder from your documents\Rainmeter folder to the "Lync Room System" folder.
    3. Runs Office 2013 Lync
The Source files can be found here.  Copy them over to "C:\Program Files\Lync Room System" once the programs have been installed.  Includes a MS Word document with Group Policy information for creating your own GPO.

Monday, April 28, 2014

Rainmeter Custom Desktop Skin

Keep update on this project by following this link... http://bit.ly/netadmlr


April 30, 2014
Changed from Images to Buttons (Changes Icon based on mouse action - hover/click)
 - Includes Paint.Net PDN files for you to change
Battery Skin
 - Changed "Charging" to "AC Power"

Future versions will include the option to disable Right mouse button by adding
RightMouseUpAction=[] at the top of each skin in the [Rainmeter] section.

April 29, 2014

Shutdown/Restart/Log Off Bug - You will have to change the Logoff.cmd and Restart.cmd commands to say shutdown.exe other wise it will run the shutdown.cmd file before the shutdown.exe file. 

April 28, 2014
Uploaded the Rainmeter skin for the Custom Lync Room system to DeviantArt

Requires Rainmeter 3.1 - http://rainmeter.net/

Latest version of the Lync Room System Rainmeter Skin
http://gmpentaxfan.deviantart.com/art/Lync-Room-System-Custom-Desktop-Rainmeter-Skin-450762970

This allows for desktop icons, date, time, battery level, speaker levels and custom application launching without "explorer.exe" running.

Added the Rainmeter.exe with custom rainmeter.ini to load this skin via the computer startup script.

See previous article... http://gmnetadmin.blogspot.ca/2014/04/custom-lync-room-system.html

Tuesday, April 15, 2014

Custom Lync Room System

Keep update on this project by following this link... http://bit.ly/netadmlr

This past month (April 2014) has been spent working on a custom Lync Room System solution that doesn't involve purchasing a Lync Room System.

Followed the Lync Room System deployment guide for the LRS account setup, but instead of the LRS special software/hardware...
It uses the Lync 2013 client and can be deployed to any Windows 7 computer.

Update - April 30, 2014 - Now using Rainmeter software to add Desktop icons, clock, volume control and battery level. http://gmnetadmin.blogspot.com/2014/04/rainmeter-custom-desktop-skin.html

Setting up the computer to Autologin with LRS account.


Custom Lync Room Startup Video

Detailed Setup for the Custom Lync Room System

Resource Links
Lync LRS Deployment guide - http://www.microsoft.com/en-us/download/details.aspx?id=39274

Automatic Login Windows 7 - http://superuser.com/questions/28647/how-do-i-enable-automatic-logon-in-windows-7-when-im-on-a-domain

Sysinternals - BGInfo program for custom wallpaper background - http://technet.microsoft.com/en-us/sysinternals/bb897557

Sysinternals - Suite - Used PSkill and PSExec programs - http://technet.microsoft.com/en-us/sysinternals/bb842062

Encode a Script - http://gallery.technet.microsoft.com/scriptcenter/16439c02-3296-4ec8-9134-6eb6fb599880/view/Reviews

Lync Custom Commands - http://msdn.microsoft.com/en-us/library/office/jj945535(v=office.15).aspx