Forum Discussion
NerradPB
Aug 27, 2020Copper Contributor
UPrint get ShareId in printer properties from Powershell
Hey there, I'm trying to apply permissions to 100 shared printers with Powershell but the none of the commands in the current module seem to have the ability to grab a shared printer's ShareId which ...
Saurabh_Bansal
Microsoft
Aug 27, 2020NerradPB Have you looked at the PowerShell documentation here - https://docs.microsoft.com/en-us/universal-print/fundamentals/universal-print-powershell?
You can get the same by trying the following sequence of commands:
> Connect-UPService
> $printers = Get-UPPrinter
> $printers[0].Share | Format-list
Hope this helps!
Thanks
Saurabh
NerradPB
Aug 28, 2020Copper Contributor
Hi thanks for the reply, yes I've read through the documentation several times. Unless I'm really blind today (and often I am), Get-UpPrinter does not reveal the ShareId anywhere near as I can tell. It tells you IF it's shared, and what the share name is, but that's all.
That command doesn't seem to do anything for me. Returned no results.