This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Computer Name Generation

I am trying to generate a simple computer name policy. When i create a new computer object via AR, i want AR to generate PC-0001 and the next computer object PC-0002  and so on. I used the following policysamAccountName =  PC-{@counter(4)}cn = %<samAccountName>Every time i create a computer object,  the samaccountname and cn are pre populated with PC-0001, but when i click next, i get a corporate policy violation. This is the only policy i have in the OU.

Help Please
Parents
  • What is the best method to import the script to AR. Each time i try to import it, i get

    Adminitrative policy retured an error PCNameScript (49, 63)"          If (InStr(strSAMName, Mid(strSAMNameProhibited,i,1))  0) Then" script compilation error: expected')'
Reply
  • What is the best method to import the script to AR. Each time i try to import it, i get

    Adminitrative policy retured an error PCNameScript (49, 63)"          If (InStr(strSAMName, Mid(strSAMNameProhibited,i,1))  0) Then" script compilation error: expected')'
Children
No Data