logon scripts

  • Thread starter Thread starter rusty
  • Start date Start date
R

rusty

can anyone tell me how to create a logon script for XP pro?

it was advised as a way of getting rid of system-locked "temp" files in the
windows directory with this scripted command:

del /q %SystemRoot%\System32\Perflib_Perfdata*.dat


i need to know this: can I create the file in notepad? save it where? with
what extension? link to it in the profile manager?

thanks a lot

rusty
 
jan, if you're still there, this concept does not work.

I created the batch file as suggested with a ".bat" ending, in c:\windows\
and inserted the filename and pathname as indicated in the user profile
manager under my login profile.

next time I booted, I got an error message, which said something about "not
enough space on the disk, we will now boot to a default identity instead"
which was strange because I lost my old desktop until I removed the
references to the bat file in my user profile and re-booted.

any suggestions?

rusty
 
Hello Rusty,

Sorry to hear that your problem was not resolved.
There seems to be more to this issue than meets the eye.

Unfortunately, this may be over my head.
I can only suggest you place the script in the folder
C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon
and insert the new pathname/filename in the user profile
manager under your login profile.

If that does not help, then I suggest
you start a new thread (using [New Post] if you are using
the web interface to access this newsgroup.)

List these ...

- Using XP Pro

- the original problem relating to getting rid of
system-locked "temp" files in the windows directory

- the source of information relating to the scripted
command:

del /q %SystemRoot%\System32\Perflib_Perfdata*.dat

- you created the "batch.bat" in
C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon

- inserted the pathname/filename in the user profile
manager under your login profile.

- "next time I booted, I got an error message, which
said something like "not enough space on the disk,
we will now boot to a default identity instead"
which was strange because I lost my old desktop
until I removed the references to the bat file
in my user profile and re-booted."

- any suggestions?

Sorry, and good luck!

Jan
 
Hello Rusty,

Before expert help arrives, you may want to do a
System File Check via

[Start]
| Run... |
SFC /SCANNOW [OK]

It will replace any system files that may be corrupt.
Have your XP CD handy. On my machine it took more than
ten minutes to complete its tests. Even if no faults
are found, running SFC will eliminate one potential
source of trouble, and no harm will have been done.
--
I have both a startup script and a logon script
on my XP Pro system and they work without problems.

They just append the current date and time to a
text file. Place both following lines into "Test.BAT"
and make this your logon script for testing purposes.

DATE /t >> C:\<folder-of-choice>\Test_Log.TXT
TIME /t >> C:\<folder-of-choice>\Test_Log.TXT

This will create the file "Test_Log.TXT" if it does
not already exist. In Notepad, you should see the
date and time of your next logon (you may need to
re-boot first, though).

In your new post, indicate whether or not this
"Test.BAT" works.
--
If "Test.BAT" works, you may want to add a "/f"
switch to the "del..." command to "force" a delete
operation in case the file has a "Read-Only"
attribute. It would read thus -

del /f /q %SystemRoot%\System32\Perflib_Perfdata*.dat
--
I have searched the web for "Perflib_Perfdata*.dat"
and found what appears to be the original source of
the logon script, namely
http://www.jsiinc.com/SUBG/TIP3300/rh3343.htm

Only one of the many posts on distant forums
actually gave credit to the author, even though the
original was quoted verbatim.
--
Once again, good luck!

Jan

-----Original Message-----
Hello Rusty,

Sorry to hear that your problem was not resolved.
There seems to be more to this issue than meets the eye.

Unfortunately, this may be over my head.
I can only suggest you place the script in the folder
C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon
and insert the new pathname/filename in the user profile
manager under your login profile.

If that does not help, then I suggest
you start a new thread (using [New Post] if you are using
the web interface to access this newsgroup.)

List these ...

- Using XP Pro

- the original problem relating to getting rid of
system-locked "temp" files in the windows directory

- the source of information relating to the scripted
command:

del /q %SystemRoot%\System32\Perflib_Perfdata*.dat

- you created the "batch.bat" in
C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon

- inserted the pathname/filename in the user profile
manager under your login profile.

- "next time I booted, I got an error message, which
said something like "not enough space on the disk,
we will now boot to a default identity instead"
which was strange because I lost my old desktop
until I removed the references to the bat file
in my user profile and re-booted."

- any suggestions?

Sorry, and good luck!

Jan

-----Original Message-----
jan, if you're still there, this concept does not work.

I created the batch file as suggested with a ".bat" ending, in c:\windows\
and inserted the filename and pathname as indicated in the user profile
manager under my login profile.

next time I booted, I got an error message, which said something about "not
enough space on the disk, we will now boot to a default identity instead"
which was strange because I lost my old desktop until I removed the
references to the bat file in my user profile and re- booted.

any suggestions? rusty
 
Hello Rusty,

Before expert help arrives, you may want to do a
System File Check via

[Start]
| Run... |
SFC /SCANNOW [OK]

It will replace any system files that may be corrupt.
Have your XP CD handy. On my machine it took more than
ten minutes to complete its tests. Even if no faults
are found, running SFC will eliminate one potential
source of trouble, and no harm will have been done.
--
I have both a startup script and a logon script
on my XP Pro system and they work without problems.

They just append the current date and time to a
text file. Place both following lines into "Test.BAT"
and make this your logon script for testing purposes.

DATE /t >> C:\<folder-of-choice>\Test_Log.TXT
TIME /t >> C:\<folder-of-choice>\Test_Log.TXT

This will create the file "Test_Log.TXT" if it does
not already exist. In Notepad, you should see the
date and time of your next logon (you may need to
re-boot first, though).

In your new post, indicate whether or not this
"Test.BAT" works.
--
If "Test.BAT" works, you may want to add a "/f"
switch to the "del..." command to "force" a delete
operation in case the file has a "Read-Only"
attribute. It would read thus -

del /f /q %SystemRoot%\System32\Perflib_Perfdata*.dat
--
I have searched the web for "Perflib_Perfdata*.dat"
and found what appears to be the original source of
the logon script, namely
http://www.jsiinc.com/SUBG/TIP3300/rh3343.htm

Only one of the many posts on distant forums
actually gave credit to the author, even though the
original was quoted verbatim.
--
Once again, good luck!

Jan

-----Original Message-----
Hello Rusty,

Sorry to hear that your problem was not resolved.
There seems to be more to this issue than meets the eye.

Unfortunately, this may be over my head.
I can only suggest you place the script in the folder
C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon
and insert the new pathname/filename in the user profile
manager under your login profile.

If that does not help, then I suggest
you start a new thread (using [New Post] if you are using
the web interface to access this newsgroup.)

List these ...

- Using XP Pro

- the original problem relating to getting rid of
system-locked "temp" files in the windows directory

- the source of information relating to the scripted
command:

del /q %SystemRoot%\System32\Perflib_Perfdata*.dat

- you created the "batch.bat" in
C:\WINDOWS\system32\GroupPolicy\User\Scripts\Logon

- inserted the pathname/filename in the user profile
manager under your login profile.

- "next time I booted, I got an error message, which
said something like "not enough space on the disk,
we will now boot to a default identity instead"
which was strange because I lost my old desktop
until I removed the references to the bat file
in my user profile and re-booted."

- any suggestions?

Sorry, and good luck!

Jan

-----Original Message-----
jan, if you're still there, this concept does not work.

I created the batch file as suggested with a ".bat" ending, in c:\windows\
and inserted the filename and pathname as indicated in the user profile
manager under my login profile.

next time I booted, I got an error message, which said something about "not
enough space on the disk, we will now boot to a default identity instead"
which was strange because I lost my old desktop until I removed the
references to the bat file in my user profile and re- booted.

any suggestions? rusty
..


-----Original Message-----
jan, if you're still there, this concept does not work.

I created the batch file as suggested with a ".bat" ending, in c:\windows\
and inserted the filename and pathname as indicated in the user profile
manager under my login profile.

next time I booted, I got an error message, which said something about "not
enough space on the disk, we will now boot to a default identity instead"
which was strange because I lost my old desktop until I removed the
references to the bat file in my user profile and re- booted.

any suggestions? rusty
 
Back
Top