lancer powershell dans AutoIt

Aide et conseils concernant AutoIt et ses outils.
Règles du forum
.
Répondre
Ratoine
Niveau 1
Niveau 1
Messages : 1
Enregistré le : lun. 21 mars 2016 11:43
Status : Hors ligne

lancer powershell dans AutoIt

#1

Message par Ratoine »

est il possible d'integrer du PowerShell a AutoIt??
un truc du genre... je cherche mais je ne trouve rien, si quelqu'un pouvais m'aiguiller...

#domaine + admin du domaine
$username = "domaine\admin.domaine"

#instantiation d'un credential
$cred = new-object -typename System.Management.Automation.PSCredential `
         -argumentlist $username, $password

#Supprime le domaine
#Remove-Computer -credential domaine\admin.domaine -MotdePass -verbose;
Remove-Computer -credential $cred

#reintegration au domaine
#Add-Computer -DomainName domaine -Credential domaine\admin.domaine;
Add-Computer -DomainName domaine -Credential $cred
Modifié en dernier par orax le lun. 21 mars 2016 14:59, modifié 1 fois.
Raison : Remplacement des [color] par des balises [codebox].
Répondre