We have created a custom property to capture the User name for the Windows 7 asset. But we need to restrict the user letters to 7 character for display. Could someone help us on this.
The custom property we have created is the below.
user windows
(following text of last “|” of concatenation “|” of ( tuple string items 1 of ( ( ( concatenation “,” of substrings separated by “,” of ( it as string ) ) of ( unique values of ( ( ( ( year of it as string & month of it as two digits & day_of_month of it as two digits ) of dates ( local time zone ) of modification time of it,name of parent folder of it ) of files “NTUSER.DAT” of folders whose ( name of it as lowercase is not contained by ( “networkservice|localservice|default|public|mssql$sqlexpr2012|srv0458|srv0572|srv0383|srv0510|adm5574|db2admin” ) ) of folder “c:\users” ) as string ) ) ) ) ) ) | ( concatenation of ( tuple string items 1 of ( ( ( concatenation “,” of substrings separated by “,” of ( it as string ) ) of ( unique values of ( ( ( ( year of it as string & month of it as two digits & day_of_month of it as two digits ) of dates ( local time zone ) of modification time of it,name of parent folder of it ) of files “NTUSER.DAT” of folders whose ( name of it as lowercase is not contained by ( “networkservice|localservice|default|public|mssql$sqlexpr2012|srv0458|srv0572|srv0383|srv0510|adm5574|db2admin” ) ) of folder “c:\users” ) as string ) ) ) ) ) ) | ( following text of last “|” of concatenation “|” of ( tuple string items 1 of ( ( ( concatenation “,” of substrings separated by “,” of ( it as string ) ) of ( unique values of ( ( ( ( year of it as string & month of it as two digits & day_of_month of it as two digits ) of dates ( local time zone ) of modification time of it,name of parent folder of it ) of files “NTUSER.DAT” of folders whose ( name of it as lowercase is not contained by ( “networkservice|localservice|default|public|srv0191|mssql$sqlexpr2012|srv0458|srv0572|srv0383|srv0510|adm5574|db2admin” ) ) of folder “c:\Documents and Settings” ) as string ) ) ) ) ) ) | ( concatenation of ( tuple string items 1 of ( ( ( concatenation “,” of substrings separated by “,” of ( it as string ) ) of ( unique values of ( ( ( ( year of it as string & month of it as two digits & day_of_month of it as two digits ) of dates ( local time zone ) of modification time of it,name of parent folder of it ) of files “NTUSER.DAT” of folders whose ( name of it as lowercase is not contained by ( “networkservice|localservice|default|public|srmssql$sqlexpr2012|srv0458|srv0572|srv0383|srv0510|adm5574|db2admin” ) ) of folder “c:\Documents and Settings” ) as string ) ) ) ) ) ) | (“None”)