Jump to content

How to improve the logon.bat


Guest Franklin hong

Recommended Posts

Guest Franklin hong

Dear guys,

Working problem, below is the logon.bat in for a domain user when he or she log on XP:

-------------------------------------------------------------------------------------------------------------------------

@echo off

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Favorites /t reg_sz /d "d:\%username%\my documents\favorites" /f >nul

md "d:\my documents\%username%\favorites"

xcopy "C:\Documents and Settings\Default User\Favorites" "d:\%username%\my documents\favorites" /s/e /y >nul

Cacls "%userprofile%\Desktop" /t /c /p everyone:r <"C:\WINDOWS\Options\y"

del "%userprofile%\start menu\programs\startup\setup.cmd" /q

net share D$ /delete

---------------------------------------------------------------------------------------------

The purpose of the script is to unify everyone's Favorites and make everyone has their own Favorites, but almost every frist time logging on, there will pop up a dead doc window but IT has to log on XP again.

So how to improve the logon.bat?

Thank you in advance.

Franklin hong

 

Continue reading...

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...