mrfite
asked on
Clean WDS Prestaged Computers
Good Day,
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.
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.
ASKER
Sorry for any confusion,
All the computers were approved through an Active Directory script. None were rejected.
When I ran the script you provided it returned no matching devices.
All the computers were approved through an Active Directory script. None were rejected.
When I ran the script you provided it returned no matching devices.
Oh ok no problem, have you perhaps had a look at the link provided ?
You are probably going to need to either remove these devices from AD or perhaps flush the entire WDS database and re-auth all PC's again. But i would be careful in doing that first.
I have never needed to try remove machines that had no server defined
You are probably going to need to either remove these devices from AD or perhaps flush the entire WDS database and re-auth all PC's again. But i would be careful in doing that first.
I have never needed to try remove machines that had no server defined
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This solution does exactly what it should do.
Are these ones without the "referralServer" perhaps rejected ones ?
Maybe have a look at this
Purging WDS database and clearing prestaging values from AD computers
Do you get anything when using this command
Open in new window