НАстройка win7 для работы с pGina + скрипты
Приступим :
Настройка PGINA
[[image:Pgina_settings.png|400px|]
Скрипт монтирования папок пользователей и настройка PROXY
Путь до файла : C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Сам скрипт : @if %username% == admin ( @exit ) @net use z: \\192.168.10.222\%username% @tskill explorer @REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Desktop /t REG_SZ /d "Z:\ђ Ў®зЁ© бв®«" /f @REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal /t REG_SZ /d "Z:\„®Єг¬Ґвл" /f @REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "Z:\ђ Ў®зЁ© бв®«" /f @REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_EXPAND_SZ /d "Z:\„®Єг¬Ґвл" /f @tskill explorer @start "sex" "c:\Windows\explorer.exe" @echo 1. Vklu4enie proxy @reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0x00000001 /f @echo 2. Ukazanie adresa i porta proxy @reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d proxy.nntc.nnov.ru:3128 /f
Скрипт удаления папок пользователей и файлов при выключении пк
Для запуска скрипта при загрузке системы запустить gpedit.msc Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown) Добавить скрипт : touch C:\WINDOWS\Temp\deletor1.tmp touch C:\WINDOWS\Temp\deletor2.tmp dir "C:\Users" /A:D /B > C:\WINDOWS\Temp\deletor1.tmp findstr /i /v "NetworkService" C:\WINDOWS\Temp\deletor1.tmp > C:\WINDOWS\Temp\deletor2.tmp findstr /i /v "Default User" C:\WINDOWS\Temp\deletor2.tmp > C:\WINDOWS\Temp\deletor1.tmp findstr /i /v "%username%" C:\WINDOWS\Temp\deletor1.tmp > C:\WINDOWS\Temp\deletor2.tmp findstr /i /v "LocalService" C:\WINDOWS\Temp\deletor2.tmp > C:\WINDOWS\Temp\deletor1.tmp findstr /i /v "All Users" C:\WINDOWS\Temp\deletor1.tmp > C:\WINDOWS\Temp\deletor2.tmp findstr /i /v "admin" C:\WINDOWS\Temp\deletor2.tmp > C:\WINDOWS\Temp\deletor1.tmp findstr /i /v "Default" C:\WINDOWS\Temp\deletor1.tmp > C:\WINDOWS\Temp\deletor2.tmp findstr /i /v "‚ᥠЇ®«м§®ў ⥫Ё" C:\WINDOWS\Temp\deletor2.tmp > C:\WINDOWS\Temp\deletor1.tmp findstr /i /v "Public" C:\WINDOWS\Temp\deletor1.tmp > C:\WINDOWS\Temp\deletor2.tmp findstr /i /v "student" C:\WINDOWS\Temp\deletor2.tmp > C:\WINDOWS\Temp\deletor1.tmp findstr /i /v "Desktop" C:\WINDOWS\Temp\deletor1.tmp > C:\WINDOWS\Temp\deletor2.tmp for /F "tokens=1 delims=" %%i in (C:\WINDOWS\Temp\deletor2.tmp) do RD "C:\Users\%%i" /S/Q for /F "tokens=1 delims=" %%i in (C:\WINDOWS\Temp\deletor2.tmp) do net user %%i /delete del C:\WINDOWS\Temp\deletor1.tmp C:\WINDOWS\Temp\deletor2.tmp