Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Access Denied / Error code: 800a0046

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,34679
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Access Denied / Error code: 800a0046
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Access Denied / Error code: 800a0046 - 5/18/2006 7:01:01 AM   
  cmoon

 

Posts: 1
Score: 0
Joined: 5/18/2006
Status: offline
I'm new to scripting hope someone can assist ...

I have a script that has been running successfully since March 2006 without any change.  Yesterday it started bombing @ line 184 with error code 800a0046 stating access denied ... VBScript runtime error.  The person that wrote this script is no longer working for us.  I get this same error even logged on as myself (with Admin rights) or as the user.  Any thoughts would be appreciated.

Code:
   ' set environmental variables
   dim WshSystemEnv
   Set WshSystemEnv = objShell.Environment("SYSTEM")
   WshSystemEnv("W10") = W10               --- This is line 184 where the failure begins
    WshSystemEnv("GTM_SERV") = GTM_server
   WshSystemEnv("GTMLaser") = laser_printer_name
   set WshSystemEnv = nothing
   ' get environmental variable
   Set WshSystemEnv = objShell.Environment("VOLATILE")
   appPath = WshSystemEnv.Item("APPDATA")
   if verbose then WScript.Echo "AppPath = " & appPath   
   set WshSystemEnv = nothing
 
 
Post #: 1
 
 RE: Access Denied / Error code: 800a0046 - 5/18/2006 11:55:05 PM   
  DiGiTAL.SkReAM


Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
Please post the rest of your code (use xxxxx in place of passwords, etc.).


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to cmoon)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Access Denied / Error code: 800a0046 Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts