Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSO and Termial Service

Status
Not open for further replies.

KeithCE

Programmer
Sep 6, 2002
52
US
I have an app that logs errors and other stuff to a file, and I am using the filesystemobject. We just recently put this app on a terminal server, and now in order to use the program the user has to be in the local admin group. We do not want this and I have found out that the FSO object is causing this problem.
Does anyone know why, in order to use the FSO you have to be part of the local admin group. Is there a way around this, I would like to use the fso rather that change my code.

Thanks,
 
I expect it's because of where the FSO is writing the file. Try pointing it to different areas of the drive, such as:

C:\Documents and Settings\{user name}\Application Data\{app name}

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Sorry, but I am writing to a place on our network. If I use the openfile as input #1, it works just fine. But I don't want to go in and change all my code.
 
But I don't want to go in and change all my code.
Don't take this the wrong way, but if you've got a problem, yet don't want to make the code changes necessary to fix it, how is anyone going to help you?

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
The code works perfectly fine for the desktop users, the code works perfectly fine for our teminal server users who belong to the local admin group. The code does not work for the terminal server users who do not belong to the local admin group.

These users are not going to ever belong to the local admin group. The problem I found lies somewhere with the filesystemobject, I believe it is a rights thing but I can not figure it out. The error is "Library not Registered
 
What exactly is your error?

Do the remote users not have permission to even create an instance of the FileSystemObject? If so perhaps give them permissions on \system32\scrrun.dll
 
The aerror is "Library not Registered". From what our network person I am working with he tells me that everyone should have rights to use thr scrrun.dll.
 
Just a thought try to reregister scrrun.dll:

regsvr32 scrrun.dll

also

Check permissions on HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0D43FE01-F093-11CF-8940-00A0C9054228}\ProgID






Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
But then why could some use it and others not?

Maybe you could make a little .reg file for users to click on if they have problems.
 
Some are admins and other are not.



Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
How was the application installed?

i.e. Was it installed in multiuser mode?

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Accourding to the network guys, Terminal Server has an install mode which lets you install all the apps on the machine for everyone to use, then they put the machine in execute mode. So now users who are not admins should be able to run the programs.

But I will check the permission on Check permissions on HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0D43FE01-F093-11CF-8940-00A0C9054228}\ProgID

Thanks everyone for your help.
 
KeithCE did you try the link provided by dilettante?




Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top