יום חמישי, 27 בנובמבר 2014

סקריפטים

סקריפט זה נועד לסגור למשתמש את שולחן העבודה לקבוע את דף הבית ולפתוח את דף הבית

TASKKILL /F /IM EXPLORER.exe

Reg.exe add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d "http://the-saudi-hacker.blogspot.co.il/" /f

start iexplore.exe

Exit



סקריפט ליצירת קובצי קיצור דרך url בשולחן העבודה

echo [InternetShortcut] >"%userprofile%\desktop\loogle.url"
echo URL=http://www.loogle.com/ >>"%userprofile%\desktop\loogle.url"
echo IconFile="F:\Icons\loogle.ico"  >>"%userprofile%\desktop\loogle.url"
echo IconIndex=0 >>"%userprofile%\desktop\loogle.url"

סקריפט למחיקת תוכן שולחן עבודה
סקריפט למחיקת כל תוכן שולן העבודה חוץ מקיצורי דרך *.ink באמצעות כתיבת תנאי

@Echo OFF
For %%# in (
    "%USERPROFILE%\Desktop\*"
) Do (
    If /I not "%%~x#" EQU ".lnk" (
     Del /Q "%%#"
    )
)
Pause&Exit

סקריפט לחיבור כוננים משותפים בביצוע Login

cd\
net use * /delete /y
net use z: "\\sano\Settings$"
net use Y: "\\server1\Documents$"
Label z: "soft"
Label Y: "doc"
exit

או

cd\
net use * /delete /y
net use z: "\\sano\Settings$"
net use Y: "\\server1\Documents$"
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##sano#Settings$" /t REG_SZ /v "_LabelFromDesktopINI" /d "soft" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##sano#Documents$" /t REG_SZ /v "_LabelFromDesktopINI" /d "doct" /f
exit

סקריפט לכיבוי המחשב באמצעות מתזמן משימות

cd\
Shutdown /s /t 60 /f /c "Goodnight... Go to bed !!!!!!"

cd\
schtasks /Create /tn shotdown /sc daily  /st 23:00 /tr "%windir%\system32\Shutdown /s /f"
exit

@echo off
 :W
if %time%==00:00:00.00 goto :X
goto :W
 :X
shutdown.exe /s /f /t 60 /c "Go to bed!!!!!!"


אין תגובות:

הוסף רשומת תגובה