I have a simple script that retrieves user attributes. Our service desk uses it but I would still like to make it a bit more simple for them.
Script goes:
get-qaduser "administrator" -includeallproperties | fl createTimeStamp,pwdLastSet,badPwdCount,logonCount,whenChanged,mail,whenCreated,distinguishedName, badPasswordTime,cn,Email,FirstName,LastName,LogonName,HomeDirectory,HomeDrive,UserPrincipalName, AccountExpires,PasswordLastSet,PasswordAge,PasswordExpires,LastLogonTimestamp,LastLogon,LastLogoff, AccountIsDisabled,A,ccountIsLockedOut,PasswordNeverExpires,UserMustChangePassword,AccountIsExpired, PasswordIsExpired,AccountExpirationStatus,PasswordStatus,NTAccountName,SamAccountName, CanonicalName,CreationDate,ModificationDate,ParentContainer,ParentContainerDN,Name,Guid,Sid,DisplayName
..collecting the required attribs for users.
Now SD needs to edit the script to set the specific user each time. Is there a way to get the script prompt for the username?
And what i'd also like to know is how can I make this an executable file to the windows desktop that they could just click and type in the username? |