i wan to run the dsa.msc from the command line using the credentials the user puts in and that the AD manager should connect automaticly to a domain not where i am connected now /
$user = read-host " enter username$passwd = read-host " enter password "$domain = "internet.com"runas /user:$user@domain /netonly "mmc dsa.msc /domain:$domain"
it connects to the domain which my computer is logged in and not to what is configured in the $ DOMAIN parameter
please help me
Hi,
Hope this would help
$sh = new-object -com 'Shell.Application' $sh.ShellExecute('dsa.msc', '','' , 'runas',1)
thanks alot i will try it when i will Be at Work tommorow, can but help me uderstand what you did here in 2 line instead in 10 of mine ?
thanks
Sure, let me know
Regards,Krishnahttp://smtpport25.wordpress.com