Archived from groups: microsoft.public.win2000.group_policy,microsoft.public.windows.group_policy (
More info?)
Hi Chris-
Thanks for getting back to me. I'm experiencing 2 issues...1 is that I
tried running the script before modification (on my own by double clicking),
and it told me UNC paths were not supported.
'\\tr.LOCAL\SysVol\trc.LOCAL\Policies\{9B863144-1228-4710-8C99-5A3FDC655BF1}\Machine\Scripts\Startup'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
C:\WINNT>if not exist c:\access03\msaccess.exe
\\server\share\office2003\maintwiz.exe /c
\\server\share\office2003\addaccess.cmw /qb-
C:\WINNT>pause
Press any key to continue . . .
If I go with your suggestion of inserting net use, where should I place the
net use, password and /user:scriptuser in relation to the rest of the
command I want to run? It should go:
net use \\server\share\office2003\maintwiz.exe /c
\\server\share\office2003\addaccess.cmw /qb- password /user:scriptuser ?
The other issue is that on the share \\server\share, "Everyone" has Full
Control. I went into the Security tab of the Office2003 folder, clicked
Advanced and looked at the effective permissions for a user's computer, and
it came back with everything checked... so it should allow the computer in
there, no?
TIA
Ken
"Chris Priede" <priede@panix.com> wrote in message
news:Ovt3qDeoFHA.2472@TK2MSFTNGP15.phx.gbl...
> Ken B wrote:
>> I'm trying to run this BAT script:
>> if not exist c:\access03\msaccess.exe
>> \\server\share\office2003\maintwiz.exe /c
>> \\server\share\office2003\addaccess.cmw /qb-
>> via a computer startup script. So, cmd.exe doesn't accept UNC paths.
>
> Actually, it accepts them just fine. Your problem is that the script runs
> under the local machine account, which is unknown to the network, so
> access to network resources is denied.
>
> The workaround for this is to create an Active Directory user account for
> your scripts. Then, at the top of your script, add something along the
> lines of:
>
> net use \\server\share scriptuserpassword /user:scriptuser
>
> The price of this is having to include the password for the account in
> clear text, in your scripts. It would be a good idea to restrict this
> account as much as possible -- it only needs access to the one share you
> want to use for this purpose.
>
>
> --
> Chris Priede (priede@panix.com)
>