7of9121098
asked on
How can I Print a PDF that is on a server in PowerShell?
I would like to know if I can print a pdf file that exists on a remote server? I would also like to append the user's credentials so I won't get a login prompt from the server.
Thanks.
Thanks.
ASKER
Hi pspgib, I used your example that suggested, but I still get prompted for a userId and password, I'm I missing something? I don't want to get a login window, just display the printer listing. thanks.
$username = "myusername"
$password = Get-Content c:\Temp\mypassword.txt | ConvertTo-SecureString
$cred = New-Object -TypeName System.Management.Automati
$server= "ServerName"
Get-WMIObject Win32_Printer -ComputerName $server -credential $cred
(Get-Credential) | foreach-object{$_.Name}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
Thanks for the grade.
https://www.experts-exchange.com/questions/26990381/Printing-PDF-in-PowerShell.html