Active Directory Objects Attributes

Listing all attributes of a computer object: C:>AdFind.exe -default -f name=”Test-PC1″ | cut -f2 -d”>” | cut -f1 -d”:” | uniq | sort AdFind V01.42.00cpp Joe Richards ([email protected]) April 2010 1 Objects returned accountExpires badPasswordTime badPwdCount cn codePage countryCode dNSHostName dSCorePropagationData distinguishedName dn instanceType isCriticalSystemObject lastLogoff lastLogon lastLogonTimestamp localPolicyFlags logonCount msDS-SupportedEncryptionTypes name objectCategory objectClass objectGUID objectSid operatingSystem operatingSystemVersion primaryGroupID pwdLastSet sAMAccountName sAMAccountType servicePrincipalName uSNChanged uSNCreated userAccountControl whenChanged whenCreated C:> Listing all attributes of a user object: C:>adfind -default -f “(&(objectcategory=user)(name=*test-user1))” | cut -f2 -d”>” | cut -f1 -d”:” | uniq | sort AdFind V01.42.00cpp Joe Richards ([email protected]) April 2010 1 […]

Read more

XenApp: Application launch fails via Citrix client/web interface

Error: ————————— Farming MIS APP ————————— Run-time error ‘372’: Failed to load control ‘ucFldCostTab’ from .  Your version of  may be outdated.  Make sure you are using the version of the control that was provided with your application. ————————— OK —————————   Symptoms: Application launches fine for the administrative user accounts both locally and via Citrix client/web interface Application Launch via Citrix web interface  results in the above shown Run-time error ‘372’ for any other accounts Works fine when you add the failing account to administrators group   Troubleshooting: Run Procmon on the XenApp server Launch the application as non-admin […]

Read more

Windows Remote Administration Tools and Commands

Check RDP enable status remotely via command line C:>reg query “HKLMSYSTEMCurrentControlSetControlTerminal Server” /v fDenyTSConnections HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server fDenyTSConnections    REG_DWORD    0x0 C:> Enable RDP enable status remotely via command line C:>reg add “HKLMSYSTEMCurrentControlSetControlTerminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 The operation completed successfully. C:> Adding users to Remote Desktop Users group via WMI in Powershell Command line: PS: ([ADSI]”WinNT:///Remote Desktop Users,group”).add(“WINNT:///,user”)

Read more