Startup script for configuring a workstation

 

@echo off

ping -n 100 127.0.0.1>nul

if not exist H: net use H: \\Shared_Driver /Persistent:Yes

del "C:\ie\Favorites\Links\Web Slice Gallery.url" /q /f /a

rd "C:\ie\Favorites\Microsoft Websites" /s /q

rd "C:\ie\Favorites\Windows Live" /s /q

rd "C:\ie\Favorites\MSN Websites" /s /q

wmic process where name="someprocess.exe" call terminate

ping -n 50 127.0.0.1>nul

wmic process where name="someprocess.exe" call terminate

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" /v 2500 /t REG_DWORD /d 0 /f

 

@rem reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /d "C:\Documents and Settings\Kevin\Local Settings\Application Data\Microsoft\Wallpaper1.bmp" /f

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v  ProxyServer /t reg_sz /d proxy_url /f

@rem reg add "HKEY_CURRENT_USER\Keyboard Layout\Toggle" /v HotKey /t reg_sz /d 2 /f

gpupdate /force

RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters

 

 

set ws = WScript.CreateObject("WScript.Shell")

ws.Run ".\config.bat /start",0

ws.run "unpin.vbs C:\Users\Kevin\AppData\Roaming\Microsoft\Intern~1\QUICKL~1\USERPI~1\TaskBar\Intern~1.lnk",0

 

VB Script to unpin icon from Taskbar (copy below and name to unpin.vbs):

 

Set objShell = CreateObject("Shell.Application")

 

set filesystem = CreateObject("scripting.Filesystemobject")

 

Set objFolder = objShell.Namespace(filesystem.GetParentFolderName(Wscript.Arguments(0)))

 

Set objFolderItem = objFolder.ParseName(filesystem.GetFileName(WScript.Arguments(0)))

 

Set colVerbs = objFolderItem.Verbs

 

For Each objVerb in colVerbs

 

If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt

Next

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值