Hi,
this command write all servers name into TXT file, the problem that after every name the command add blank spaces, how can I remove them?
Get-ADComputer -Filter {OperatingSystem -Like "Windows *Server*"} -Property * | Format-Table Name -Wrap -Auto| out-file c:\servers.txt
Thanks
Lior