Koozali.org: home of the SME Server

desktop ini. anyone?

Offline brentonv

  • ****
  • 71
  • +0/-0
desktop ini. anyone?
« on: June 29, 2007, 04:26:26 AM »
can anyone help with this? please

when i set users accounts to roaming profiles the user profile is then stored onto SME when the user logs off from windows. however when the user profile is loaded back from SME to windows when the user logs back on it shows up desktop.ini files all over the place. i mean heaps of them.

does anyone know how to prevent this from happening, other than setting "show hidden files and folders" in windows?

-brentonv
sme 7.1.3

Offline shell

  • ****
  • 117
  • +0/-0
desktop ini. anyone?
« Reply #1 on: June 29, 2007, 07:14:32 AM »
for what its worth...

these files are created by windows and windows does not generally show them - ie they are hidden system files.  When the roaming profile copies the files to the sme the system marking of the files appears to be lost, and so when they are copied back to the machine they are no longer hidden from the user.

i believe they are always there in windows - just not easily seen.  removing them wouldn't be a simple process as you mention they are in a number of places.  perhaps they are created when changing the view to thumbnail in windows or some other trigger that you could stop the clients from performing.  ??  or some check thru user profile folders in the middle of the night to delete only the desktop.ini files to try to stop the symptoms?

i sympathise - they are most annoying when they appear in the start-up folder!!  but like i say i haven't found a definitive method to not create or to remove them.

good luck! :)

Offline Brave Dave

  • *
  • 185
  • +0/-0
desktop ini. anyone?
« Reply #2 on: July 03, 2007, 01:31:56 PM »
I run this as part of my netlogon

as in;
cscript \\<server>\netlogon\<scriptname>.vbs


Code: [Select]
dim wshShell, fso
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set WshShell = WScript.CreateObject("WScript.Shell")

DeleteDesktopIniFiles

Sub DeleteDesktopIniFiles

Dim strStartUp, strStartMenu, fldr
strStartUp = wshShell.SpecialFolders("startup")
strStartMenu = wshShell.SpecialFolders("StartMenu")

if fso.fileexists( strStartUp & "\desktop.ini" ) then fso.deletefile strStartUp & "\desktop.ini"
if fso.fileexists( strStartMenu & "\desktop.ini" ) then fso.deletefile strStartMenu & "\desktop.ini"

For Each fldr in fso.getFolder( strStartMenu ).subFolders
DeleteDesktopIniFilesInSubFolder fldr.ShortPath
Next
End Sub

Sub DeleteDesktopIniFilesInSubFolder( strPath )

Dim fldr, f
For Each fldr in fso.getFolder( strPath ).subFolders
DeleteDesktopIniFilesInSubFolder fldr.ShortPath
Next

For Each f in fso.getFolder( strPath ).Files
if lcase( f.name ) = "desktop.ini" then f.delete
Next
End Sub
.:DB:.

Offline wj

  • *
  • 6
  • +0/-0
desktop ini. anyone?
« Reply #3 on: July 03, 2007, 08:41:32 PM »
btw,

are you sure your profiles are being saved ?
I found out that the roaming profiles on my server were not being saved (although windows tells you it is saving the profiles on log-off).
This problem occurs when using graphic cards with nvidia drivers. See this link http://support.microsoft.com/kb/897101. I used method 2 for solving this problem in XP-pro sp2.

kind regards

cattledog

fix ini problem
« Reply #4 on: July 22, 2007, 11:45:41 PM »
desktop.ini is a configuration file. I've got several hundred on just my root drive. If the wrong ones are deleted, strange and wacky things can happen.

Right click on your root drive (assuming it is "C"). Select "open command window here":
(NOTE: If you don't have that right click option, then click on
Start/All Programs/Accessories/command prompt. Then enter cd c:\ and hit enter key.

Then type:
attrib -h -s desktop.ini /s and hit enter key

then enter attrib +h +s desktop.ini /s and hit enter.

Type exit and hit enter.