Subject: | |
From: | |
Reply To: | |
Date: | Mon, 9 Jun 2014 11:18:19 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
You need to give thought to the context within which the script will run. Is
it running as the SYSTEM account? You could add a line like
@echo Running as %username% > c:\temp\script.log
To see what it's trying to do. (Make sure the destination directory exists).
IS there any reason you aren't using Domain Group Policy and GP Preferences
for this?
--Geoff
> -----Original Message-----
> From: Technology Discussion at UVM [mailto:[log in to unmask]] On
Behalf
> Of Helen Read
> Sent: Monday, June 9, 2014 10:49 AM
> To: [log in to unmask]
> Subject: Re: Group policy
>
> We used to do this to map the public_html drive in the 102/205. We had a
> .cmd file to map the drive, and put the path to the file in the
> Registry. I think it was
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
>
> There are probably other ways to do it, but that worked for us before.
>
>
> On 6/9/2014 8:48 AM, Larry Kost wrote:
> > I tried this. Created a .bat file to map the drive, added to Local
> > Group Policy as suggested, but can't get it to work. Am not sure
> > where the .bat file should be placed and wonder if it matters. I
> > tried several different locations, but none worked. I know the .bat
> > file works because I can run it once the user is logged on and it's
> > fine. What am I missing?
> >
> > LLK
> >
> > On 6/6/2014 10:58 AM, J. Greg Mackinnon wrote:
> >> Right... "local group policy" (a misnomer perpetuated by Microsoft)
> >> is not Group Policy. Local Group Policy is actually local machine
> >> policy, and it has only a small subset of full Group Policy
> >> functionality.
> >>
> >> Probably the quickest way to accomplish what you want is to use a
> >> logon script. This option is found under:
> >> User Configuration -> Windows Settings -> Scripts (Logon/Logoff)
> >>
> >> You could add a one liner script here such as:
> >> net use k: \\KostServer\KostShare
> >>
> >> -J. Greg Mackinnon | ETS Systems Architecture and Administration |
> >> x68251
> >>
> >> On 6/6/2014 10:38 AM, Larry Kost wrote:
> >>> I have a domain joined laptop and wanted to use the local group
> >>> policy to map drives, but the Preferences option (where I would do
> >>> this) doesn't show up when I run the group policy editor. This
> >>> laptop is shared by my department. Is there some way to map drives?
> >>>
> >>> LLK
|
|
|