The attached document contains poweshell scripts to find perform search operations on computer objects
The below code will display the authentication type set in the active directory domain. I have seen requests from the application developers to induce SSL with active directory to protect their user credentials.
.Secure protects the credentials by using kerberos tickets. Infact .secure informs the ADSI to use SPNEGO. Below powershell code gives you the information about the Authentication Type
$ADVar = new-object system.directoryservices.directoryentry
$ADSearch = new-object system.directoryservices.directorysearcher
$ADVar = new-object system.directoryservices.directoryentry (“LDAP://OU=tes, DC=avanade, dc=local”)
I have written detailed document about pinning applications to start menu using grou policy preferences, hope the document will be of much use.