TomW7654 <
thomas....@boeing.com> wrote in news:a439344d-51f4-4f30-
a914-17a...@r8g2000pbs.googlegroups.com:
> ... This only happens when the
> script is run via IIS. If I run it from a command line it works
> fine. When running via IIS the PowerPoint process runs under my ID.
> At first I thought it was some kind of permission problem so I opened
> up permissions wide on all related folders but no joy. Any ideas ?
> Thanks.
>
Hello,
As you stated the program worked without problem on Windows XP but
doesn't work on Windows 7.
So it's probably a UAC problem which might be in two places:
(1) Writing to folders specially protected by Windows 7.
Windows 7 protects some folders (and probably user profiles). When
writing to such folders like "\program files" or "\windows" using
Windows explorer the UAC dialog box is shown even if the user has
the required permissions. Non-GUI programs like xcopy or scripts which
do not show the UAC fail to do the write operations.
(2) User context switching from IIS to your account when starting
PowerPoint. Probably Windows 7 wants to show UAC or a confirmation dialog
box for user switching but fails to do so for a service like IIS.
In your situation I'd attempt the following:
(1) Let IIS run PowerPoint as the same user which is running the IIS,
that means do not specify a special user account to run PP.
(2) Create a directory in the root directory of C:, i.e. "C:\testdir".
The owner should be the same account as the account used to run IIS.
If this succeeds you can attempt to place the directory somewhere else.
Unfortunately I'm not an IIS or PowerPoint expert, so this is just what
I have guessed.
Hope this helps.
Regards
Dirk