Precedente :: Successivo |
Autore |
Messaggio |
er maximo Semidio


Registrato: 15/01/08 18:16 Messaggi: 268
|
Inviato: 21 Giu 2009 10:34 Oggetto: Avviare un programma come amministratore automaticamente |
|
|
Salve a tutti,
Sul portatile ho due account: quello per l'amministrazione, e quello Guest...
Nell'amministrazione il programma che mi serve per far funzionare la chiavetta internet funziona bene.
Nel guest, no!
Ma ho notato che se IO apro il programma eseguendolo come amministratore e mettendo la relativa password il programma funziona perfettamente.
Vi chiedo.. come è possibile fare per eseguire QUELLO SPECIFICO PROGRAMMA COME AMMINISTRATORE senza che debba mettere ogni volta la password??
Grazie in anticpio
Ps
Ho Windows XP SP2
[anche se non credo sia importante] il programma in questione questo |
|
Top |
|
 |
Luko Dio maturo


Registrato: 07/05/09 12:35 Messaggi: 1001
|
Inviato: 21 Giu 2009 10:49 Oggetto: |
|
|
Ciao
Non credo che si possa, l' account Geust (e gli account limitati) richiedono la password per tutti i programmi da eseguire, non credo si possano impostare eccezioni. |
|
Top |
|
 |
er maximo Semidio


Registrato: 15/01/08 18:16 Messaggi: 268
|
Inviato: 21 Giu 2009 11:23 Oggetto: |
|
|
Luko ha scritto: | Ciao
Non credo che si possa, l' account Geust (e gli account limitati) richiedono la password per tutti i programmi da eseguire, non credo si possano impostare eccezioni. |
Ho già provato a fare delle ricerche e ho trovato questi due siti:
1 e 2
Postreste dirmi se il numero 2 va bene per il mio problema?? Grazie ^^ |
|
Top |
|
 |
er maximo Semidio


Registrato: 15/01/08 18:16 Messaggi: 268
|
Inviato: 21 Giu 2009 12:06 Oggetto: |
|
|
Ragazzi credo di stare per risolvere ma...ma povreste darmi una mano....?
A VB script for the specific case of PrintArtist 15 is given below. For other programs substitute the appropriate executable program file. Since many anti-virus programs block VB scripts, you may need to mark this script as safe according to whatever procedure your particular anti-virus program uses. Also, the dummy password will need to be changed to the Administrator password on your system. Include the tilde at the end. Note that this password must be the one for THE administrator account. To use the script, copy and paste the text into Notepad and save with a VBS extension. The script has been used succesfully in a SeniorNet class at the Ewing, NJ Learning Center.
Codice: | 'This script allows limited accounts to use PrintArtist (PA)
'as the Administrator. It must be placed in the same
'folder with the executable program file for PA. A shortcut
'to this script file can then be put on the student Desktop.
'Your antivirus program may need to be set to allow scripts.
'Written by Vic Laurie, May, 2004
'Not responsible for any problems arising from use of the script
'-------------------------------------------------------
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""PrintArt.exe"""
WScript.Sleep 100
'Replace the string yourpassword~ below with
'the password used on your system. Include tilde
oShell.Sendkeys "yourpassword~"
Wscript.Quit |
Ho capito cosa fare di tutto quello che sta scritto in "Codice" ma per il resto non ho capito nulla.. quindi nemmeno che programma usare per scrivere lo "script" o quello che è...
^^ Scusate lo sfruttamento XD
Ps
Quello in grassetto è parte dell'ultimo pezzo del sito numero 2 di cui prima
Grazie ancora |
|
Top |
|
 |
|