Attempting to display ADUsername based on hostname file

Hello fellow sysadmins, Trying to display an ADUsername tied to a hostname specified in a txt file. I get the following error shown in my CSV when running the script: System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter ‘ComputerName’. The argument is null or empty. Supply an argument that is not null or empty and then try […]