wscript.echo "user active = " & getidusract() function getidusract() dim objExecObject,strLine,i For i=1 to 100000 Set objExecObject = WshShell.Exec("%comspec% /c qwinsta.exe " & i) Do Until objExecObject.StdOut.AtEndOfStream strLine = objExecObject.StdOut.ReadLine()...
Public Const XML_FILE = "xmlconfigfile.xml" Public Const NODE_BIT = "/Config/Bitlocker" '-------------------------------------------------------------------- ' Function Name - ReadXML() '--------------------------------------------------------------------...
public certificatesubject="AUTHENTIFICATION" public xmlnsvalue="http://webservice.groupdirectorycertificate.com" '========================================================================== ' Name: GetWebService ' Param: samaccountname: username User '==========================================================================...
Function GetTsVariable (ByVal strTsVariableName, ByRef strTsVariableValue) Dim objTSEnvironment On Error Resume Next Set objTSEnvironment = CreateObject("Microsoft.SMS.TSEnvironment") GetTsVariable = Err.number On Error GoTo 0 If GetTsVariable=0 Then...
strComputer = "." ============================================================= Get the SMBIOS asset tag from the Win32_SystemEnclosure class ============================================================= Dim objWMI : Set objWMI = GetObject("winmgmts:")...
' Ce script permet d'obtenir le DN et donc l'OU d'un utilisateur ' à partir de son username ' usage: cscript getuserDN.vbs /Usr:'SAMAccount' ' exemple: cscript getuserDN.vbs /Usr:%username% Dim colNamedArguments : Set colNamedArguments = WScript.Arguments.Named...
Fonctionnement: Script 1 (cmd.vbs) execute une commande ou une fonction ou whatever Scritp A (execcmd.vbs) lance script 1 dans une variable et “joue” avec la variable. Très utile si on a un script A chapeau et X scripts autour avec chacun une fonction...
SCCM troubleshooting log files ciamgr.log: Provides information about the addition, deletion, and modification of software update configuration items. distmgr.log : Provides information about the replication of software update deployment packages. objreplmgr.log...
(source: http://social.technet.microsoft.com/wiki/contents/articles/dsquery-commands.aspx) 1. How to find all members for a particular group. >dsget group "" –members 2. How to find all groups for a particular member (including nested...
Ceci est ma KB perso. Elle n'a pas but de formation. Je l'alimente au fil de mes pérégrinations. Si elle vous aide tant mieux, sinon rien ne vous empêche de m'interroger ;).
/
This is My Personal Knowledge Base. it is not trained. I nourish it in the course of my peregrinations. If it helps you so much better, if nothing prevents you from questioning me;). But I can not train U, i do not have the time to.
Enjoy!