@Hiba_B
hello
Can you help me please
I want to authenticate as admin on powershell when i run the script i get the following message but user and password are good. Do i need some conf before ? on my powershell i set some ExecutionPolicy like process and currentuser as Bypass.
the script :
$user=‘XXXXX’
$password=‘XXXXX’
$securePassword= ConvertTo-SecureString $password -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential $user,
$securePassword
Thank you
ce code me permet de me connecter en tant que admin sans utiliser le pop up window lorsque je lance powershell.
Lorsque je lance le code sur powershell j’ai le meme message. Je pensais que c’etait au niveau de mes droits admin mais non. Peut etre c’est le code qui n’est pas correct… ou il manque des choses