I need a script to clean my WDS server prestage device information. We have over 600 computers that have no Referral server listed. I would like to remove all the prestaging information from them.
I am a novice at scripting.
When I run the following command:
WDSUTIL / Verbose /Get-ALLDevices /Forest:Yes
It displays all the information for all the prestaged machines.
When I run this command:
WDSUTIL / Verbose /Get-ALLDevices /Forest:Yes /ReferralServer:
(we have multiple referral servers and this displays all systems with the referral server defined)
It displays all the information for computers that have any referral server defined.
I would like to only keep the prestaging information for computers that have a referralserver defined.
Any help is appreciated.