Prev Previous Post   Next Post Next

UAC Inconsistencies Among Vista Machines?

Posted: 09-14-2007, 03:50 AM
Hi -

I have to distribute a batch file to many Vista and XP users in our
organization, which will dump a 16 bit app onto the local hard drive and
create shortcuts to it on the Desktop and Start Menu. I would prefer that
the program folder be copied to Program Files and that a shortcut be copied
to the %AllUsersProfile% Desktop and Start Menu. All of the users will be
installing it on their personally owned laptops so they almost certainly will
have Admin rights.

The problem is that when I tried this on a couple of computers using an
account with Admin rights, it worked like a charm. But when I tried it on a
third, I found that it prompted for elevation. (All of these machines have
UAC turned on.) I don't think there is a way to elevate within a batch file,
so I tried right clicking the batch file and choosing "Run as Administrator".
Then because it was running under a different account, I lost my working
directory and the batch file was not able to find the files it needed to
copy. (I can't use an absolute path to the source files in the batch file,
since I can't assume the directory that users will be running this from.) I
ended up changing the batch file so that everything was copied to the user's
own profile, since I don't know how many other Vista machines will have this
same problem.

Can someone explain why I would be prompted to elevate when trying to copy
these files on some machine but not others? I'm not sure what I'm missing.

Thanks.
Reply With Quote

Responses to "UAC Inconsistencies Among Vista Machines?"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Vista & XP machines Martin Windows Vista Networking & Sharing 2 04-29-2007 08:02 PM
I can see my XP machines, and my XP machines can see my Vista Mach Kathi Johnston Windows Vista Networking & Sharing 6 04-09-2007 10:24 AM
Adding XP machines to a Vista network Damon Windows Vista Networking & Sharing 1 04-09-2007 07:46 AM
Why doesn't Vista see other machines? Brett Windows Vista Networking & Sharing 4 12-04-2006 01:39 AM
NTFS vs Scandisk & Minor Inconsistencies Usman Windows XP Hardware 5 07-13-2003 08:58 PM