WDS startup troubleshooting

 

WDS: Event ID 257 – 258 – 266 – 513 Troubleshooting:

Author: Vaibhav Nanoti (SunGard)

Windows Deployment Services depends and works directly with Active Directory and DHCP, meaning that if any of those two servers are significantly modified, then probably you will not be able to start the WDS service and get the events ID:

Event Viewer from WDS Server

wds6

Event 257: An error occurred trying to start the Windows Deployment Services server.

Event 258: An error occurred trying to start the Windows Deployment Services image server.

Event 266: An error occurred while to refreshing settings.

Event 513: An error occurred trying to initialize provider WDSImgSrv from C:\Windows\system32\WdsImgSrv.dll. Windows Deployment Services server will be shutdown.

Disclaimer
Please note that the following possible reasons, are related when all those events appear simultaneously and with the same descriptions.

Event ID 513 can also appear regarding to a PXE provider error: “An error occurred while trying to initialize provider WDSPXE from C:\Windows\system32\wdspxe.dll. Windows Deployment Services server will be shutdown”. This particular error could happen for several reasons, like installing on the same server a System Center Configuration Manager PXE provider that replaces the WDS.

Possible Reasons

Those particular errors appeared when there were changes on Active Directory that did not were performed smoothly:

– Changing a Global Catalog from Domain Controller.
– Shutting down an active Domain Controller.

Solution

To solve this, you need to insert manually the FQDN of the domain controller working as a Global Catalog.

1 – Open the WDS snap-in and access server properties.

2 – Click on “Advanced“.  And you should see the following:

wds3

3 – Insert the FQDN of a Domain Controller and the Global Catalog nearest to WDS and currently active (preferred in same site). Most likely will be the same DC on both options.

wds1

4 – Start the WDS Server.

wds4

More Background about WDS and Active Directory Integration

The PXE provider delivered with Windows Deployment Services is called BINL (implemented in Binlsvc.dll) and has a direct integration with Active Directory services in many ways:

  • BINL prefers to use domain controllers and global catalogs that are available within the same Active Directory site as the PXE server (local).
  • A writeable domain controller for the domain where the Windows Deployment Services PXE server resides will be leveraged when querying for selected attributes.
  • The WDS PXE provider uses the DSGetDcName() API. It passes the DS_GC_SERVER_REQUIRED flag whenever it needs to locate a global catalog.
  • When attempting to locate computer account objects, the default search order is for BINL to search global catalogs before searching domain controllers.
  • And of course, BINL connects directly with AD when trying to create Computer objects within the domain; or querying for other attributes.

Example of BINL handling PXE requests and integrating with AD

wds5

 

For more info, check “Deploying and Managing the Windows Deployment Services Update”.

Hope it helps!

Cheers!

To access by command:As a System Administrator I should know it.

To access by command:

As a System Administrator I should know it.

To Access… Run Command
Accessibility Controls access.cpl
Accessibility Wizard accwiz
Add Hardware Wizard hdwwiz.cpl
Add/Remove Programs appwiz.cpl
Administrative Tools control admintools
Adobe Acrobat (if installed) acrobat
Adobe Designer (if installed) formdesigner
Adobe Distiller (if installed) acrodist
Adobe ImageReady (if installed) imageready
Adobe Photoshop (if installed) photoshop
Automatic Updates wuaucpl.cpl
Bluetooth Transfer Wizard fsquirt
Calculator calc
Certificate Manager certmgr.msc
Character Map charmap
Check Disk Utility chkdsk
Clipboard Viewer clipbrd
Command Prompt cmd
Component Services dcomcnfg
Computer Management compmgmt.msc
Control Panel control
Date and Time Properties timedate.cpl
DDE Shares ddeshare
Device Manager devmgmt.msc
Direct X Control Panel (if installed)* directx.cpl
Direct X Troubleshooter dxdiag
Disk Cleanup Utility cleanmgr
Disk Defragment dfrg.msc
Disk Management diskmgmt.msc
Disk Partition Manager diskpart
Display Properties control desktop
Display Properties desk.cpl
Display Properties (w/Appearance Tab Preselected) control color
Dr. Watson System Troubleshooting Utility drwtsn32
Driver Verifier Utility verifier
Event Viewer eventvwr.msc
Files and Settings Transfer Tool migwiz
File Signature Verification Tool sigverif
Findfast findfast.cpl
Firefox (if installed) firefox
Folders Properties folders
Fonts control fonts
Fonts Folder fonts
Free Cell Card Game freecell
Game Controllers joy.cpl
Group Policy Editor (XP Prof) gpedit.msc
Hearts Card Game mshearts
Help and Support helpctr
HyperTerminal hypertrm
Iexpress Wizard iexpress
Indexing Service ciadv.msc
Internet Connection Wizard icwconn1
Internet Explorer iexplore
Internet Properties inetcpl.cpl
Internet Setup Wizard inetwiz
IP Configuration (Display Connection Configuration) ipconfig /all
IP Configuration (Display DNS Cache Contents) ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents) ipconfig /flushdns
IP Configuration (Release All Connections) ipconfig /release
IP Configuration (Renew All Connections) ipconfig /renew
IP Configuration (Refreshes DHCP & Re-Registers DNS) ipconfig /registerdns
IP Configuration (Display DHCP Class ID) ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID) ipconfig /setclassid
Java Control Panel (if installed) jpicpl32.cpl
Java Control Panel (if installed) javaws
Keyboard Properties control keyboard
Local Security Settings secpol.msc
Local Users and Groups lusrmgr.msc
Logs You Out Of Windows logoff
Malicious Software Removal Tool mrt
Microsoft Access (if installed) msaccess
Microsoft Chat winchat
Microsoft Excel (if installed) excel
Microsoft Frontpage (if installed) frontpg
Microsoft Movie Maker moviemk
Microsoft Paint mspaint
Microsoft Powerpoint (if installed) powerpnt
Microsoft Word (if installed) winword
Microsoft Syncronization Tool mobsync
Minesweeper Game winmine
Mouse Properties control mouse
Mouse Properties main.cpl
Nero (if installed) nero
Netmeeting conf
Network Connections control netconnections
Network Connections ncpa.cpl
Network Setup Wizard netsetup.cpl
Notepad notepad
Nview Desktop Manager (if installed) nvtuicpl.cpl
Object Packager packager
ODBC Data Source Administrator odbccp32.cpl
On Screen Keyboard osk
Opens AC3 Filter (if installed) ac3filter.cpl
Outlook Express msimn
Paint pbrush
Password Properties password.cpl
Performance Monitor perfmon.msc
Performance Monitor perfmon
Phone and Modem Options telephon.cpl
Phone Dialer dialer
Pinball Game pinball
Power Configuration powercfg.cpl
Printers and Faxes control printers
Printers Folder printers
Private Character Editor eudcedit
Quicktime (If Installed) QuickTime.cpl
Quicktime Player (if installed) quicktimeplayer
Real Player (if installed) realplay
Regional Settings intl.cpl
Registry Editor regedit
Registry Editor regedit32
Remote Access Phonebook rasphone
Remote Desktop mstsc
Removable Storage ntmsmgr.msc
Removable Storage Operator Requests ntmsoprq.msc
Resultant Set of Policy (XP Prof) rsop.msc
Scanners and Cameras sticpl.cpl
Scheduled Tasks control schedtasks
Security Center wscui.cpl
Services services.msc
Shared Folders fsmgmt.msc
Shuts Down Windows shutdown
Sounds and Audio mmsys.cpl
Spider Solitare Card Game spider
SQL Client Configuration cliconfg
System Configuration Editor sysedit
System Configuration Utility msconfig
System File Checker Utility (Scan Immediately) sfc /scannow
System File Checker Utility (Scan Once At The Next Boot) sfc /scanonce
System File Checker Utility (Scan On Every Boot) sfc /scanboot
System File Checker Utility (Return Scan Setting To Default) sfc /revert
System File Checker Utility (Purge File Cache) sfc /purgecache
System File Checker Utility (Sets Cache Size to size x) sfc /cachesize=x
System Information msinfo32
System Properties sysdm.cpl
Task Manager taskmgr
TCP Tester tcptest
Telnet Client telnet
Tweak UI (if installed) tweakui
User Account Management nusrmgr.cpl
Utility Manager utilman
Windows Address Book wab
Windows Address Book Import Utility wabmig
Windows Backup Utility (if installed) ntbackup
Windows Explorer explorer
Windows Firewall firewall.cpl
Windows Magnifier magnify
Windows Management Infrastructure wmimgmt.msc
Windows Media Player wmplayer
Windows Messenger msmsgs
Windows Picture Import Wizard (need camera connected) wiaacmgr
Windows System Security Tool syskey
Windows Update Launches wupdmgr
Windows Version (to show which version of windows) winver
Windows XP Tour Wizard tourstart
Wordpad write

Patching / Updating Linux Environment by Network repository or Local repository.

1)      By Network repository :

 Register my system with RHN

# rhn_register

Display list of updated software (security fix)

# yum list updates

Patch up system by applying all updates

# yum update

List all installed packages

# rpm -qa

# yum list installed

Find out if httpd package installed or not, enter:

# rpm -qa | grep httpd*

# yum list installed httpd

Check for and update specified packages

# yum update {package-name-1}

To check for and update httpd package, enter:

# yum update httpd

Search for packages by name

Search httpd and all matching perl packages, enter:

# yum list {package-name}

# yum list {regex}

# yum list httpd

# yum list perl*

Sample output: as an example

Loading “installonlyn” plugin

Loading “security” plugin

Setting up repositories

Reading repository metadata in from local files

Installed Packages

perl.i386                                4:5.8.8-10.el5_0.2     installed

perl-Archive-Tar.noarch                  1.30-1.fc6             installed

perl-BSD-Resource.i386                   1.28-1.fc6.1           installed

perl-Compress-Zlib.i386                  1.42-1.fc6             installed

perl-DBD-MySQL.i386                      3.0007-1.fc6           installed

perl-DBI.i386                            1.52-1.fc6             installed

perl-Digest-HMAC.noarch                  1.01-15                installed

perl-Digest-SHA1.i386                    2.11-1.2.1             installed

perl-HTML-Parser.i386                    3.55-1.fc6             installed

…..

…….

..

perl-libxml-perl.noarch                  0.08-1.2.1             base

perl-suidperl.i386                       4:5.8.8-10.el5_0.2     updates

Install the specified packages [RPM(s) ]

Install package called httpd:

# yum install {package-name-1} {package-name-2}

# yum install httpd

Remove / Uninstall the specified packages [RPM(s) ]

Remove package called httpd, enter:

# yum remove {package-name-1} {package-name-2}

# yum remove httpd

Display the list of available packages

# yum list all

Display list of group software

Type the following command:

# yum grouplist

Output: as an example

Installed Groups:

Engineering and Scientific

MySQL Database

Editors

System Tools

Text-based Internet

Legacy Network Server

DNS Name Server

Dialup Networking Support

FTP Server

Network Servers

Legacy Software Development

Legacy Software Support

Development Libraries

Graphics

Web Server

Ruby

Printing Support

Mail Server

Server Configuration Tools

PostgreSQL Database

Available Groups:

Office/Productivity

Administration Tools

Beagle

Development Tools

GNOME Software Development

X Software Development

Virtualization

GNOME Desktop Environment

Authoring and Publishing

Mono

Games and Entertainment

XFCE-4.4

Tomboy

Java

Java Development

Emacs

X Window System

Windows File Server

KDE Software Development

KDE (K Desktop Environment)

Horde

Sound and Video

FreeNX and NX

News Server

Yum Utilities

Graphical Internet

Done

 

Install all the default packages by group

Install all ‘Development Tools’ group packages, enter:

# yum groupinstall “Development Tools”

Update all the default packages by group

Update all ‘Development Tools’ group packages, enter:

# yum groupupdate “Development Tools”

Remove all packages in a group

Remove all ‘Development Tools’ group packages, enter:

# yum groupremove “Development Tools”

Install particular architecture package

If you are using 64 bit RHEL version it is possible to install 32 packages:

# yum install {package-name}.{architecture}

# yum install mysql.i386

Display packages not installed via official RHN subscribed repos

 Show all packages not available via subscribed channels or repositories i.e show packages installed via other repos:

# yum list extras

Sample output:

Loading “installonlyn” plugin

Loading “security” plugin

Setting up repositories

Reading repository metadata in from local files

Extra Packages

DenyHosts.noarch                         2.6-python2.4          installed

VMwareTools.i386                         6532-44356             installed

john.i386                                1.7.0.2-3.el5.rf       installed

kernel.i686                              2.6.18-8.1.15.el5      installed

kernel-devel.i686                        2.6.18-8.1.15.el5      installed

lighttpd.i386                            1.4.18-1.el5.rf        installed

lighttpd-fastcgi.i386                    1.4.18-1.el5.rf        installed

psad.i386                                2.1-1                  installed

rssh.i386                                2.3.2-1.2.el5.rf       installed

Display what package provides the file

You can easily find out what RPM package provides the file. For example find out what provides the /etc/passwd file:

# yum whatprovides /etc/passwd

Sample output:

Loading “installonlyn” plugin

Loading “security” plugin

Setting up repositories

Reading repository metadata in from local files

setup.noarch                             2.5.58-1.el5           base

Matched from:

/etc/passwd

setup.noarch                             2.5.58-1.el5           installed

Matched from:

/etc/passwd

You can use same command to list packages that satisfy dependencies:

# yum whatprovides {dependency-1} {dependency-2}

Refer yum command man page for more information:

# man yum

 

2)      By Local (patch server) repository:

 

Pre requirement for server: Apache web server, rsync and createrepo packages must be installed in the server before starting the whole process.

Server-Side Settings:

Login to the console as root and type the following commands

$ mkdir -p /var/www/html/rhel5/OS

$ mkdir -p /var/www/html/rhel5/updates

Then copy the whole contents of DVD in OS directory, the createrepo.rpm must be installed in the system.

$ createrepo /var/www/html/rhel5/OS

$ cp -r /var/www/html/rhel5/OS/* /var/www/html/rhel5/updates

Now the rsync should be run in a daily cron as

$ rsync -avrt rsync://rhel5.arcticnetwork.ca/rhel5/updates/  \ –exclude=debug/ /var/www/html/rhel5/updates

This will create a complete update repository at /var/www/html/rhel5/updates. The repodata directory will be created with all of the headers. Next I would advise to setup a cron job to run the rsync (above). In this manner your repository keeps updated and only new updates and headers will be downloaded to your repository.

$ /sbin/service httpd start // to start the apache web-server

to check whether the repository is working or not…..first make sure that iptables(firewall) has a rule allowing port 80 (default apache web-server port) to be accessible, if yes, open the web-browser and type

http://server ip-address/rhel5/

 

Client-Side Settings:

On client side, rename the files present in /etc/yum.repos.d which are Base.repo and Media.repo

to *.old and create a new file named localrhel-Base.repo and copy the following in that

# vi /etc/yum.repos.d/localehel-Base.repo

[base]

name=rhel-$releasever – Base

baseurl=http://ReposerverIP/rhel5/$releasever/OS/$basearch/

gpgcheck=0

 

[update]

name=rhel-$releasever – Updates

baseurl=http://ReposerverIP/rhel5/$releasever/updates/$basearch/

gpgcheck=0

enabled=0

Use the Active Directory Topology Diagrammer (ADTD) to make a Visio diagram of your AD.

Quickly create diagrams of your Active Directory structure and to automate the process of creating a diagram of Active Directory OU, USERS, GPO, DNS & more:

The Microsoft Active Directory Topology Diagrammer reads an Active Directory configuration using LDAP, and then automatically generates a Visio diagram of your Active Directory and /or your Exchange Server topology. The diagramms may include domains, sites, servers, organizational units, DFS-R, administrative groups, routing groups and connectors and can be changed manually in Visio if needed.

Procedure as follows:

Download: http://www.microsoft.com/en-us/download/details.aspx?id=13380  tool & refer the system requirement on same.

Installation:

Run the MSI,

 

To create your Active Directory diagrams, start the AD Topology Diagrammer and provide it with the domain name in the Global Catalog Server / DNS Domain Name section of the main window.

For OU:

For Site:

For Exchange:

 

For Applications Structure:

For DFS-R:

For Servers:

Output:

Note: – the Active Directory Topology Diagrammer is available for download completely free.

After creating output files of each sections we can combine as well as  customize  it