/build/static/layout/Breadcrumb_cap_w.png

dsquery & dsrm scripted install

I was thinking of a quick way of using dsquery and dsrm in winpe.

First we query domain and out to log.

dsquery computer dc=test,dc=com -name %computername% > t:\dsrm.log

for /f %i in (t:\dsrm.log) do dsrm -s 192.168.1.1 -d test.com -subtree -noprompt %i -u U$er -p Pa$$wo$d 

Best of Luck! Laughing

 


Comments

  • Win PE boot env's are not even in a domain so why do you need to do domain level tasks? - SMal.tmcc 11 years ago
  • download here upload to your Kace 2000
    http://www.microsoft.com/en-us/download/details.aspx?id=16770
    I perfer to run it as a task with the microsoft tools. - mikesharp1 11 years ago
  • sorry didn't realize about the %computername% however you can ask for the computer name in batch file pulling from a file - mikesharp1 11 years ago
  • echo the command
    echo %computername% or hostname - mikesharp1 11 years ago
This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ