After doing dsome more investigation on this site i sound a nice little bit of code that did this for me. I also used the netdom.exe to get a listing of the workstations. used excel the edit the txt file to just the pc name. i used netdom > wksta.txt. imported it into excel as a space seperated file. cleared out the info that i dod not need. the txt file only needs the pc name \\wksta. copied into the root of c
and copied ntrights in to %compsec% ran the script from my workstation with admin rights and done. Whoever wrote this little bit of code..Thank YOU
code:
Break ON CLS
$FL = "c:\wksta.txt"
If Open(1,$FL,2) <> 0
? '@SERROR opening $FL'
? 'You must provide a list of target computers for this script to work.'
EndIf
$PC = ReadLine(1)
Do
? "[ Adding right to $PC ]"
Shell '%COMSPEC% /C ntrights -u "Domain Users" -m $PC +r SeSystemTimePrivilege >> C:\log.txt'
$PC = ReadLine(1)
Until @ERROR <> 0
$RC = Close(1)
? 'Check [ C:\log.txt ] for errors.'
Get $X
Quit