To print a login script from the Windows command line, use the NLIST command and redirect the output to a file or a printer. You must be in an object's parent container to see and print the login script of that object.
IMPORTANT:You must have a workstation running DOSĀ 3.30 or later and the Read and File Scan property rights to the object to be printed.
To print a user's login script, enter
NLIST user=username show "login script">LPT1
To print a container's login script, enter
NLIST organizational unit=ou name show login script>LPT1
IMPORTANT:Any option in the NLIST command that includes a space in its name must be enclosed in quotes.