wntShare UAC Problem
Keywords: wntShareAdd wntShare Win32 Network Extender UAC Win7 7 folder share
Question:
Hi,
I am trying to use a script that run fine on XP but now seems to have some problems due to UAC :-( I am trying to share a folder
via script. However, it seems that this only possible if you are an admin. I am but still it does not work. Anyway, I tried the
runlogon command with the "net share..." command. Still I am not able to share via script.
Any ideas here on how to make this happen?
Answer:
Even if you are an admin, if UAC is enabled, by default, your script is going to run under a restricted token. You will need
to change your project settings for WinBatch+Compiler to compile your script with Manifest settings telling UAC your script
needs to run elevated as an administrator, or perhaps just as highest available privs. Then, when your script is launched,
you will have to acknowledge the UAC elevation prompt to allow the script to actually run elevated.
Article ID: W18331
Filename: wntShare UAC Problem.txt
File Created: 2010:09:29:07:58:20
Last Updated: 2010:09:29:07:58:20