Showing posts with label One-Liners. Show all posts
Showing posts with label One-Liners. Show all posts

Wednesday, February 20, 2013

Allowing Non-Admin users to add printers OS X clients

Problem: I need to allow non-administrator users add printers to Mac OS X.

Solution:

Add the GeneratedUID from the everyone group (ABCDEFAB-CDEF-ABCD-EFAB-CDEF0000000C) to the NestedGroups attribute of the _lpadmin group.

dscl . -append /Groups/_lpadmin NestedGroups ABCDEFAB-CDEF-ABCD-EFAB-CDEF0000000C 
References:

Set Windows Compatibility Mode from the Command Line

Problem: I need to set an executable to compatibility mode to Windows XP SP3.

Soltuion:
reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Path\To\Executable.exe" /d "WINXPSP3" /f