Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Access denied when running VB Script as a SYSTEM

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,38640
 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 when running VB Script as a SYSTEM
  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 when running VB Script as a SYSTEM - 10/12/2006 6:23:09 AM   
  jkrivoch

 

Posts: 1
Score: 0
Joined: 10/12/2006
Status: offline
    Hi guys, I'm desperate here, and have no idea how to fix this.
One a specific Windox XP box I can't run a script as a SYSTEM user.

This is how I test it.
I created a simple Hello World script.
I can run it as a user that's logged in, by just executing it or with wscript or with cscript.

then I open a system window by doing at [time] /interactive c:\windows\system32\cmd.exe

Once the command window opens I try to run the same script and get Access Denied

It only happens on one machine, and I can't replicate it on any other machines.  Do you know what it could be?
I tried disabling Symantec, I removed Windows Defender from the system, there are no other "spy sweepers" running, I disabled the firewall, I checked the NTFS permissions for the system user they are the same as everything else.  And nothing.

Does anyone know how to fix this?

Thank you

Jan
 
 
Post #: 1
 
 RE: Access denied when running VB Script as a SYSTEM - 10/22/2006 8:41:24 PM   
  jb_visualbasicscript


Posts: 13
Score: 0
Joined: 10/17/2006
From: Sweden
Status: offline
I have no idea, but since no one else replied to you I would sugest you check some things:

Open Local Computer Policy and check all the rights and compare them with a computer that works.
Could be that the right to run as a system user is disabled or alike.

If you really get Access Denied (and no hints that you miss a right) you must turn on audit on this machine and check where you get access denied.
If it is different ACL lists that causes this or rights.

_____________________________

Set JohnShell = CreateObject("WScript.Shell")

JohnShell.RegWrite "HKCU\Software\JohnWasHere", "1", "REG_DWORD"

(in reply to jkrivoch)
 
 
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 when running VB Script as a SYSTEM 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