X-Spam-Check-By: sourceware.org Message-ID: <440796F9.3050307@cygwin.com> Date: Thu, 02 Mar 2006 20:08:09 -0500 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [Newbie] Trying to run MSWord from Cygwin References: <4406EBCE DOT 3030304 AT bangor DOT ac DOT uk> In-Reply-To: <4406EBCE.3030304@bangor.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com P.P.Hughes wrote: > Hello, > > This is probably a silly question to most you, but here goes: > > I'm opening a ssh connection from a Linux box to our Windows Server 2003 > which then initiates a Cygwin terminal. I then try and run a vbs script > that opens Word to convert documents from Word to PostScript. > > In my vbs script, as soon as it reaches the following line: > > Set objWord = CreateObject("Word.Application") > > I receive the following error: > > C:\cygwin\home\iss05e\autoprint.vbs(6, 1) Microsoft VBScript runtime > error: Permission denied: 'CreateObject' > > The user 'iss05e' has Administrative privileges on the Windows machine. > > The script works fine if I log into the machine direct and run it > through the command prompt using "cscript autoprint.vbs". > > Is there some permissions setting I need to change to allow Cygwin to > run GUI applications? If you need to interact with the desktop, you need to enable the option on the service to allow this. Either do so from the Windows Control Panel->Administrator Tools->Services->RMB->Properties->Log On facility or uninstall the service and reinstall it with cygrunsrv and add the "-i" flag (or add this to the appropriate line in /bin/ssh-host-config and rerun this script). Also, be sure you log in with password authentication. Pub-key may also cause the permission denied message you got. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/