Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - script in logon with elevated privileges enables

Reply
 
Old 09-29-2008   #1 (permalink)
NT


 
 

script in logon with elevated privileges enables

hello

i put a script .ps1 in a GPO (USER/logon)
the script only map a network drive

after logon for my user,nothing appears

i test to lauch it manually in the session of the user, it doesn't work to,
but it does in my computer if i use elevated privileges

so my question is

how to do the same for all my user whith my script in my gpo

thanks


My System SpecsSystem Spec
Old 09-29-2008   #2 (permalink)
tojo2000


 
 

Re: script in logon with elevated privileges enables

On Sep 29, 5:44*am, "NT" <n...@xxxxxx> wrote:
Quote:

> hello
>
> i put a script .ps1 in a GPO (USER/logon)
> the script only map a network drive
>
> after logon for my user,nothing appears
>
> i test to lauch it manually in the session of the user, it doesn't work to,
> but it does in my computer if i use elevated privileges
>
> so my question is
>
> how to do the same for all my user whith my script in my gpo
>
> thanks
How are you mapping the drive?
My System SpecsSystem Spec
Old 09-30-2008   #3 (permalink)
NT


 
 

Re: script in logon with elevated privileges enables

hello
here it is

$Drive = "K:"
$UNC = "\\srv5\doc"
# Create the Com object with New-Object -com
$net = New-Object -com WScript.Network;
# $net.removenetworkdrive($Drive)
$net.mapnetworkdrive($Drive,$Unc)



"tojo2000" <tojo2000@xxxxxx> a écrit dans le message de
news:57cbb501-8f86-44c2-aad5-6661cf0bc40d@xxxxxx
On Sep 29, 5:44 am, "NT" <n...@xxxxxx> wrote:
Quote:

> hello
>
> i put a script .ps1 in a GPO (USER/logon)
> the script only map a network drive
>
> after logon for my user,nothing appears
>
> i test to lauch it manually in the session of the user, it doesn't work
> to,
> but it does in my computer if i use elevated privileges
>
> so my question is
>
> how to do the same for all my user whith my script in my gpo
>
> thanks
How are you mapping the drive?

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Installer: No elevated privileges on Vista during change? Vista security
Cant get elevated privileges General Discussion
Device Installation - Elevated Privileges Vista hardware & devices
Device Installation - Elevated Privileges Vista account administration
Elevated privileges for MSI Package in Vista. Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46