A couple of things here. Firstly, why do you want to do these tasks using piconfig rather than the PI-SMT application? Is there a specific reason why you can't do this with SMT? Secondly, why are you trying to map a Windows security principal to a PIUser instead of a PIIdentity?
1.We are trying some procedure for automate the access related tasks.
2.I have created the user in PI user and so we are using PI User.
can you let us know the any ideas?
Are you going to be using explicit logins using PI Users instead of using WIS with PI Mappings ? This isn't a good idea for security reasons. We strongly discourage the use of explicit login for security reasons.
It is possible to create a PI Mapping using piconfig. You need to specify the SID however. I agree with John Messinger, why not use PI SMT? What's your business case to automate mapping creation? I think we're missing something.