Brian Madden Logo
Your independent source for application and desktop virtualization.
advertisement

TS Initial Program - Script, in the Scripting / Automation forum on BrianMadden.com

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Points 20
rbailey66 Posted: Thu, Jun 4 2009 1:27 PM

All, trying to extract out of AD whether or not the "Start the following program at logon" is check-marked, as it can be activated without filling in an actual program file name and/or the start in.

Every script I've come across addresses the latter two fields, but not whether the "Start .." is check-marked.

Any ideas?

Regards, Rob

  • | Post Points: 20
Top 10 Contributor
Points 24,510

I'm no expert with ADSI scripting, but I believe you would use the WTSSetUserConfig function to set the value of WTSUserConfigfInheritInitialProgram to 0 to disable (clear) the "Start the following program at logon" checkbox.

Alan Osborne

President (MCSE, CCNA, VCP, CCA)

VCIT Consulting - Citrix/Terminal Services Remote Desktop Solutions for SMB

VCIT website My Blog

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS