Bize Ulaşın / Contact Us

Create list of all WDS devices with a VBScript

I was trying to write a script/web based console to manage WDS (Windows Deployment Server) Approved, Pending and Rejected devices more user friendly. And I’d like to share first part of it, actually it is just preparation phase, but I thought it may give ideas.
The script exports all devices to text files by using wdsutil then parse the text files to create more usable semi column seperated files. PS: It is my draft version.

Screen_05 21-Jan-09 16.19

Example
When we run wdsutil /get-AutoAddDevices /DeviceType:RejectedDevices command and export the result to a text file it produces the format below.

Screen_06 21-Jan-09 16.20

The script parses and re-writes the text file and make it more readable.
Screen_07 21-Jan-09 16.20

Script : ListWDSAll Devices.vbs
Author : Osman Shener

4 comments on “Create list of all WDS devices with a VBScript

  1. on August 28, 2015
    Al says:

    Hey!

    thanks for the script, but i’m getting an error on line 26 with a message (Expected ‘Then’) error code (800A03F9).

    Best Regards

    • on August 28, 2015
      Osman Shener says:

      Hi I’ve just fixed the chars, problem was the code viewer plug-in settings. So copy the whole script again.
      Thanks for visiting.

  2. on August 28, 2015
    Al says:

    Hello again!
    I’m grateful for your fast response, i wounder if it’s possible to export the “prestaged devices” also.

    what i want is to export all my prestaged devices and import it to a new wds server.

    Best regards.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*

Kontrol / Control * Time limit is exhausted. Please reload CAPTCHA.