Announcement

Collapse
No announcement yet.

Set Security Settings for Printer @ RemoteSever

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Set Security Settings for Printer @ RemoteSever

    Hi everybody!

    I want to add security settings to some printers @ a remote Server...

    i figured out to handle this with the psexec command...everything works nearly fine except one thing...

    psexec.exe %C4% cmd /C net user USERNAME PASSWORD /add|net localgroup USERGROUP USERNAME /add|subinacl /printer * /grant=USERNAME=M

    first step: adding the user >ok
    second step: add the new user to an existing group >ok
    third step: ad the new user to all printers and allow him to manage documents > not ok

    it seems that in the moment the user should be added to the printerobjects the new user isnt completly "build"

    is there a possibilty to set some kind of "Wait/Sleep"-function to this whole thing between the localgroup and the subinacl command?

  • #2
    Re: Set Security Settings for Printer @ RemoteSever

    There is a utility called wait.exe that you can try using. You might need to create a batch file to get it working, but it should allow you to pause execution for a number of seconds to see if that helps.

    Comment


    • #3
      Re: Set Security Settings for Printer @ RemoteSever

      Is thia wait tool part of the os or something i have to add to the system?

      Comment


      • #4
        Re: Set Security Settings for Printer @ RemoteSever

        It's a command line executable. It's in the Windows Resource Kit, but you might be able to search the Net and find a copy of it.

        Comment


        • #5
          Re: Set Security Settings for Printer @ RemoteSever

          Ah ok....i allready found something wich is nearly the same like wait....the sleep.exe...

          but i wanted to avoid this because of thefact that i have to copy this file to every server...lot of servers

          Comment

          Working...
          X