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
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