Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



ActiveX component can't create object: 'Scripting.FileSystemObject'

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-11-2005
Fred Jacobowitz
 
Posts: n/a
ActiveX component can't create object: 'Scripting.FileSystemObject'

I have this script - C:\tools\filesystemobjects.vbs
option explicit
dim objFSO, colDrives
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set colDrives = objFSO.Drives
For Each objDrive in colDrives
Wscript.Echo "Drive letter: " & objDrive.DriveLetter
Next


Results in
C:\tools\filesystemobjects.vbs(3, 1) Microsoft VBScript runtime error:
ActiveX component can't create object: 'Scripting.FileSystemObject'

What did I do. I get this error; "ActiveX component can't create object:
'Scripting.FileSystemObject' " when ever I am logged in as User fred (a
member of the Administrators group). Yet, when I log in as Administrator
the script works. It always worked in the past. What did I do? I am
running WINDOWS XP , Service Pack 2

Thank you,
Very desperate - Fred Jacobowitz,



Reply With Quote
  #2  
Old 10-11-2005
Dave Patrick
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

What happens if you create a new user as member of the Administrators group?


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Fred Jacobowitz" wrote:
|I have this script - C:\tools\filesystemobjects.vbs
| option explicit
| dim objFSO, colDrives
| Set objFSO = CreateObject("Scripting.FileSystemObject")
| Set colDrives = objFSO.Drives
| For Each objDrive in colDrives
| Wscript.Echo "Drive letter: " & objDrive.DriveLetter
| Next
|
|
| Results in
| C:\tools\filesystemobjects.vbs(3, 1) Microsoft VBScript runtime error:
| ActiveX component can't create object: 'Scripting.FileSystemObject'
|
| What did I do. I get this error; "ActiveX component can't create object:
| 'Scripting.FileSystemObject' " when ever I am logged in as User fred (a
| member of the Administrators group). Yet, when I log in as Administrator
| the script works. It always worked in the past. What did I do? I am
| running WINDOWS XP , Service Pack 2
|
| Thank you,
| Very desperate - Fred Jacobowitz,
|
|


Reply With Quote
  #3  
Old 11-11-2005
Fred Jacobowitz
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

It works when I create a new user. Did I do something to the registry?
"Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message
news:u1WYb4a5FHA.3484@TK2MSFTNGP10.phx.gbl...
> What happens if you create a new user as member of the Administrators
> group?
>
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Fred Jacobowitz" wrote:
> |I have this script - C:\tools\filesystemobjects.vbs
> | option explicit
> | dim objFSO, colDrives
> | Set objFSO = CreateObject("Scripting.FileSystemObject")
> | Set colDrives = objFSO.Drives
> | For Each objDrive in colDrives
> | Wscript.Echo "Drive letter: " & objDrive.DriveLetter
> | Next
> |
> |
> | Results in
> | C:\tools\filesystemobjects.vbs(3, 1) Microsoft VBScript runtime error:
> | ActiveX component can't create object: 'Scripting.FileSystemObject'
> |
> | What did I do. I get this error; "ActiveX component can't create
> object:
> | 'Scripting.FileSystemObject' " when ever I am logged in as User fred (a
> | member of the Administrators group). Yet, when I log in as
> Administrator
> | the script works. It always worked in the past. What did I do? I am
> | running WINDOWS XP , Service Pack 2
> |
> | Thank you,
> | Very desperate - Fred Jacobowitz,
> |
> |
>
>



Reply With Quote
  #4  
Old 12-11-2005
Dave Patrick
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

Seems the profile is somehow corrupt.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Fred Jacobowitz" wrote:
| It works when I create a new user. Did I do something to the registry?


Reply With Quote
  #5  
Old 13-11-2005
Fred Jacobowitz
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

How does the profile relate to the registry?
"Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message
news:eTwP2uz5FHA.1000@tk2msftngp13.phx.gbl...
> Seems the profile is somehow corrupt.
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Fred Jacobowitz" wrote:
> | It works when I create a new user. Did I do something to the registry?
>
>



Reply With Quote
  #6  
Old 13-11-2005
Dave Patrick
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

Almost everything in HKCU is loaded from ntuser.dat which is loaded when you
logon.

ntuser.dat is located in the root of the user's profile;
%USERPROFILE%\


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Fred Jacobowitz" wrote:
| How does the profile relate to the registry?


Reply With Quote
  #7  
Old 15-11-2005
Fred Jacobowitz
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

Yes, I understand. Do you know which files (dll's) may contain the calls to
the FileSystemObject. Perhaps I can dope out my authority to use those.
"Dave Patrick" <DSPatrick@nospam.gmail.com> wrote in message
news:eHna8E95FHA.3312@TK2MSFTNGP15.phx.gbl...
> Almost everything in HKCU is loaded from ntuser.dat which is loaded when
> you
> logon.
>
> ntuser.dat is located in the root of the user's profile;
> %USERPROFILE%\
>
>
> --
>
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Fred Jacobowitz" wrote:
> | How does the profile relate to the registry?
>
>



Reply With Quote
  #8  
Old 15-11-2005
Dave Patrick
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

Should be Scrrun.dll

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Fred Jacobowitz" wrote:
| Yes, I understand. Do you know which files (dll's) may contain the calls
to
| the FileSystemObject. Perhaps I can dope out my authority to use those.


Reply With Quote
  #9  
Old 16-11-2005
Fred Jacobowitz
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

Thank you for the link
http://www.microsoft.com/downloads/d...Lang=enWindows Script 5.6 for Windows XP and Windows 2000.That did the treat. I had to install it as the Administrator.Thank you,Fred Jacobowitz "Dave Patrick" <DSPatrick@nospam.gmail.com> wrote inmessage news:uiRZc3W6FHA.2176@TK2MSFTNGP14.phx.gbl...> Should be Scrrun.dll>> -->> Regards,>> Dave Patrick ....Please no email replies - reply in newsgroup.> Microsoft Certified Professional> Microsoft MVP [Windows]> http://www.microsoft.com/protect>> "Fred Jacobowitz" wrote:> | Yes, I understand. Do you know which files (dll's) may contain thecalls> to> | the FileSystemObject. Perhaps I can dope out my authority to use those.>>

Reply With Quote
  #10  
Old 16-11-2005
Dave Patrick
 
Posts: n/a
Re: ActiveX component can't create object: 'Scripting.FileSystemObject'

You're welcome.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Fred Jacobowitz" wrote:
| Thank you for the link
|
http://www.microsoft.com/downloads/d...Lang=enWindows
Script 5.6 for Windows XP and Windows 2000.That did the treat. I had to
install it as the Administrator.Thank you,Fred Jacobowitz


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "ActiveX component can't create object: 'Scripting.FileSystemObject'"
Thread Thread Starter Forum Replies Last Post
ActiveX Component Can't Create Object Scripting.FileSystemObject Robla68 Windows Server Help 3 19-10-2011 10:30 PM
ActiveX component can't create object error Abe Simpson Windows x64 Edition 8 14-06-2011 11:32 PM
Error 429 : ActiveX component can't create object GunTher Vista Help 8 30-01-2011 03:04 AM
Error=429 : ActiveX component can't create object SurnameS Vista Help 5 30-01-2011 02:30 AM
Error=429: ActiveX component can't create object vibhub Vista Help 2 23-12-2008 07:41 PM


All times are GMT +5.5. The time now is 11:02 PM.