I want to control thinreg.exe util via powershell script. This util is used for registering vmware thinapp packages on the system(it creates shorcuts and add registry entries under HKCU hive.) If I run my ps script as admin then also thinreg runs under admin account and register app to the admin. So it is possible to get user credentials from AD and use them to run PS script or just thinreg util ? I'm domain admin and other users are domain users. AD is win 2008r2 and client OSes are winXP sp3.
Than开发者_如何学Gok you very much.
EDIT
Is it possible to install windows service via login script so that would run under logged user account ? Via this service I could then control thinreg.exe util
I would try two ways.
- Add the powershell script run once during the logon script of the user
- If user are using roming profiles, try to modify their profiles when they are logged off.
If you want to be more "interactive", and do it as the user is log in, you can try to play with PSTOOLS you can have a look to this post to have an example how to call your powershell script from PSTOOLS.
精彩评论