Salut,
J'ai ce problème avec ça :
Pour ouvrir Powershell en mode administrateur dans le dossier parent avec le menu contextuel
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin] @="Ouvrir Windows PowerShell (Admin)" "Extended"=- "HasLUAShield"="" "Icon"="powershell.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin\command] @="Powershell.exe -noexit -Command Set-Location -literalPath '%V' \"& powershell Start-Process powershell -Verb runAs"
J'ai cette erreur quand je clique droit et que je fait "Ouvrir Windows PowerShell (Admin)"
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 Au caractère Ligne:1 : 50 + Set-Location -literalPath 'C:\Users\Nom d'utilisateur\Desktop' & powershell Start-P ... + ~ Le caractère perluète (&) n’est pas autorisé. L’opérateur & est réservé à une utilisation future. Placez un caractère perluète entre guillemets doubles ("&") pour que ce symbole soit considéré comme une chaîne. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : AmpersandNotAllowed
Celui là fonctionne, mais pas en mode administrateur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin] @="Ouvrir Windows PowerShell (Admin)" "Extended"=- "HasLUAShield"="" "Icon"="powershell.exe" [HKEY_CLASSES_ROOT\Directory\shell\Powershell\command] @="powershell.exe -noexit -command Set-Location -literalPath '%V'"
Si quelqu'un à une idée
Merci
@+
Partager