wshshell.run

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Paul Bergson (pbergson_at_mnpower.com)
Date: 02/07/05


Date: Mon, 7 Feb 2005 12:03:29 -0600

I'm trying to start up a command from inside my asp code to modify
permissions on folders. When I do I get the error

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/newuser.asp, line 120

Line 120 is the WshShell.Run strWShell This works fine in vb script.
I'm not very savvy with asp so I'm unclear as to why I'm getting this error?

'Create Folder Skeleton
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''
''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''
Set FS = CreateObject("Scripting.FileSystemObject")
Set WSHNetwork = CreateObject("WScript.Network")

Set WshShell = WScript.CreateObject("WScript.Shell")

FS.CreateFolder(ParentDir & strName)
'Build Domain Admins

On Error Goto 0

strWShell = "\\admin04\bin\xcacls " & ParentDir & strName & " /G " &
txtQuote & "GOB\Domain Admins" & txtQuote & ":F /Y"
WshShell.Run strWShell

Any help is appreciated.

-- 
Paul Bergson


Relevant Pages

  • Re: NTFS Security Question.
    ... A subordinate object DOES not inherit the PARENT perms (in ... will assume "Nebulous" permissions that refer to the LINK ... The trick is to PROPOGATE to all FILES (not Folders and Files - that would ... Since Windows 2000 deny NTFS permission does not work ...
    (microsoft.public.windowsxp.security_admin)
  • RE: ISA 2004 REPORT FAILURE
    ... Did as you suggested and turned auditing on for the system and folders ... that is setting the wrong permissions of the folders ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: ISA 2004 REPORT FAILURE
    ... the ISA Reports still fail because ... I can change the permissions manually ... on the ISALogs and ISASummaries folders ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Personal Media Drive
    ... > much more knowledgeable about Windows than I am. ... You restrict access by assigning permissions to drives, folders and files. ...
    (microsoft.public.windows.mediacenter)
  • Re: Administrator/User security issues
    ... i have setup all the accounts, ... folders for testing the security. ... permissions but the admin. ...
    (microsoft.public.windowsxp.security_admin)