Re: Mapping network devices



david carvalho wrote:

> Hi !
> I'm writing a startup script to map network drive and execute a file
> there,
> on the Group Policy refering to machines.
> First, I've tried everything to avoid using a username and password on the
> script,
> but without this I can't access. It's not a permissions issue. I've tried
> "everyone" with full control, on the same folder wich I use for software
> instalation via software policy (wich works fine by the way). I gave
> domain
> computers access to this folder, but no result. What's the difference
> between
> the account used by software policy and for startup scripts ? Can I avoid
> this ?
> The other problem, is that I teste in a domain workstation with local
> administrator login. I run the vbs with no problem, but when I reboot the
> machine for testing the appliance of the policy, I get the 80070520
> error,
> because I don't have a session initiated yet (of course not ! I want to
> run
> this before any logon?
> Can anyone help me out ?
> Thanks
> David Carvalho

Hi,

Startup scripts run with System permissions on the local computer, and the
permissions of the computer object in the domain. I grant the group "Domain
Computers" permission to read/write in a shared folder and this allows my
StartUp script to write to a log file in the shared folder. You would need
to grant Read & Execute to allow a Startup script to run a program in the
share. I don't know why this doesn't work for you.

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net


.



Relevant Pages

  • RE: very odd problem
    ... Domain GPO Policy issue? ... Run> gpupdate /v and check startup script, ... of the 10 computers would not log in the the domain properly. ... laptop into the network cables and had no problem with anything. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Modem on notebooks with Windows 2000 Prof
    ... I can imagine a startup script based solution, ... > Hi Roger. ... > If you can't think of a technical solution then I believe there is not ... >>> I don't know of a way to do such with Group Policy. ...
    (microsoft.public.win2000.security)
  • Re: EventID 1054 from Userenv for startup script
    ... startup script policy. ... I see a problem with the order in which the policies are applied. ... Those two contain the requirement to "Wait for network before logging ... Often, the startup script won't run, but if I run it manually, than ...
    (microsoft.public.windows.group_policy)
  • Re: Group Policy Script error
    ... doing a backgroup application of computer policy ... but you are only guessing as to what file. ... > must therefore be a Startup script issue. ... > "Mark" wrote: ...
    (microsoft.public.windows.group_policy)
  • Re: PushPrinterConnection
    ... rsop.msc confirms that the GPO is a startup script with the correct GPO name ... If the policy is linked correctly and rsop.msc shows on a "problematic" machine that everything is okay, I'd check the eventlog and probably the userenv.log file to see what they come up with. ... I keep recommending leaving that alone and deploying the printers with good-old scripts that "map" the printers. ...
    (microsoft.public.windows.group_policy)