|
runnas help
|
|
Ok I don' know if I am making this to hard or not. I am trying to run a script that needs AD administration rights at logon (doing away with roaming profiles) I am trying to use runnas but in my script I am calling @userid. Which turns out to be administrator (after runnas). How do I get the currently logged on user?
Thanks Mike
|
Shawn
|
(KiX Supporter)
|
2007-12-14 06:30 PM
|
|
|
|
|
Re: runnas help
|
|
You running a Kix script under runnas ? Could you not just pass @USERID to the runnas command line that calls the script ? ex,
runnas ... script.kix $$userid=@userid ...
|
Björn
|
(Korg Regular)
|
2007-12-15 02:06 AM
|
|
|
|
|
Re: runnas help
|
|
I agree with Shawn. Since you're parsing the username after running @userid - you need to capture the 'current' before that.
|