Forum Discussion

NerradPB's avatar
NerradPB
Copper Contributor
Aug 27, 2020
Solved

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's avatar
    Sep 08, 2020

    NerradPB 

     

    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

     

Resources