Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DOS batch to copy files (update) to a program folder at login to which a normal user does not hve priveleges

1 view
Skip to first unread message

shash_bro

unread,
Oct 15, 2009, 3:22:38 AM10/15/09
to
It's a Windows 2003 domain, and regular users don't have write
permissions to program folders. We have certain batch files on the
server used to map network drives which run when user logs in. In
active directory these batch files are specified on User->properties-
>profile tab. I have this included this 'xcopy s:\xyz\*.nfo files c:
\program files\xyz /D /Y', where S: is the network drive, latest fiels
are copied from S: to C:, and this command fails when normal users
login because they don't have write permissions to the c:\program files
\xyz folder.

Can we switch user just to run that copy command ... something like
runas or switch user cmd. I tried runas but it prompts for password
which obviously a normal user cannot know and doesn't have to enter.
Is there any other way to do this ... I'm sure there is? Please help.

Auric__

unread,
Oct 19, 2009, 12:08:16 PM10/19/09
to

Ask in alt.msdos.batch.nt.

--
Is that what kids are calling it nowadays?

0 new messages