Commit ab6b2e9d authored by Michael Koch's avatar Michael Koch
Browse files

Not only create spool dir, give "Users" full access to that folder

parent 67580955
......@@ -26,7 +26,10 @@ cd /d %~dp0
:: Creating printer folder
echo Erstelle Spoolverzeichnis, wenn noch nicht vorhanden
if not exist "%systemdrive%\astaprint" mkdir "%systemdrive%\astaprint"
if not exist "%systemdrive%\astaprint" (
mkdir "%systemdrive%\astaprint"
icacls "%systemdrive%\astaprint" /grant *S-1-5-32-545:(OI)(CI)F /T
:: Installing printer port and driver (PDF on W10, XPS else)
for /f "tokens=2 delims=," %%i in ('wmic os get caption^,version /format:csv') do set OS=%%i
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment