La Référence Absolue sur les Technologies Microsoft




Supprimer un compte Terminal Server

Accueil > Script > terminal_server > Supprimer un compte Terminal Server

Supprimer un compte Terminal Server

Par Vincent TROTTIER, Laboratoire Microsoft
Publiée le 26/08/2005 vers 16h.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery _
("Select * from Win32_TSAccount Where AccountName = 'FABRIKAM\\bob'")

For Each objItem in colItems
errResult = objItem.Delete()
Next


Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
1

Visites :
14765

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft