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 ...
KurtJc
Sep 08, 2020Brass Contributor
I can get the shareID like this:
Get-UPPrinter | select -ExpandProperty share | select sharename,shareid
Then I can share like this:
Grant-UPAccess -GroupId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx-ShareID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx