![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | WScript.Shell -> Terminal Server 2008... Hi guys! OS: MS terminal server 2008 user rights: remote desktop user / domain user I have a question, which is related to the command "Set wshShell = CreateObject("WScript.Shell")". It stops with the error "800A0046 access denied". If the user has administrative rights, everything works well. but I don't want to grant these rights to this type of user. The WMI-command "Set oReg = GetObject("winMgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")" works fine. It seems that the scripting works, but the command "CreateObject" doesn't. The file "vbscript.dll" is on it's place, is registered and the read permissions are correct, also for the "wscript.exe". Furthermore the command "Set wshShell = CreateObject("WScript.Shell")" doesn't work, if I try to use it in a script, which is started via the group policy setting "computer/windows settings/scripts/startup". It seems that it only works with administrative rights, although the system should even have the required rights during the boot process, but it doesn't work. The script should update a registry entry. The permissions are granted correctly. If you try to do this with a WMI-"GetObject"-access (SetDWORDValue), everything is running without any problem. Is here anybody out there, who can kindly help me to resolve this problem? Thank you for your help in advance. Greetings, M. Bernau. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: WScript.Shell -> Terminal Server 2008... There should be policy to allow you to run this script under user rights - maybe GPO hasn't have correct settings ? If group policy doesn't work have you tried "runas" ? |
My System Specs![]() |
| | #3 (permalink) |
| | Re: WScript.Shell -> Terminal Server 2008... BTW. I'm not sure if W2K8 has this option runas to run scripts under user rights... try to check policy. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| WScript.Shell echo command? | VB Script | |||
| Windows 2008 print server at terminal services - printer driver problem | Vista print fax & scan | |||
| CAL for Windows Server 2008 in a Terminal Server environment | .NET General | |||
| Powershell starts but never exits when invoked from Wscript shell | PowerShell | |||
| Terminal service on Windows Server 2008 (Longhorn) | Vista General | |||