Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
313 B
1
Indexable
Never
Get-ADObject -LDAPFilter "(objectCategory=printQueue)" -Properties cn, drivername, location, printername, portname, servername | select portname, cn, drivername, location, printername, servername | Format-Table -Property * -AutoSize | Out-String -Width 4096 | Out-File C:\Users\james.flood\Desktop\printerlist.txt