Overblog
Suivre ce blog Administration + Créer mon blog

VBS : XML WEBSERVICE: SOAP REQUEST

Publié le par damcuvelier

'usage: soap_request.vbs /usr: Dim colNamedArguments : Set colNamedArguments = WScript.Arguments.Named Const ForReading = 1, ForWriting = 2, ForAppending = 8 VbsPath = Left(WScript.ScriptFullName,InStrRev(WScript.ScriptFullName,"\")) UsrName...

Lire la suite

VBS: Get ID of user Active

Publié le par damcuvelier

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()...

Lire la suite

VBS: Read and Write in xml file

Publié le par damcuvelier

Public Const XML_FILE = "xmlconfigfile.xml" Public Const NODE_BIT = "/Config/Bitlocker" '-------------------------------------------------------------------- ' Function Name - ReadXML() '--------------------------------------------------------------------...

Lire la suite

VBS: Webservice script

Publié le par damcuvelier

public certificatesubject="AUTHENTIFICATION" public xmlnsvalue="http://webservice.groupdirectorycertificate.com" '========================================================================== ' Name: GetWebService ' Param: samaccountname: username User '==========================================================================...

Lire la suite

vbs: sccm 2007: Get argument if osd variable does not exist

Publié le par damcuvelier

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...

Lire la suite

VBS : Some Usefull, Local & AD, group functions

Publié le par damcuvelier

strComputer = "." ============================================================= Get the SMBIOS asset tag from the Win32_SystemEnclosure class ============================================================= Dim objWMI : Set objWMI = GetObject("winmgmts:")...

Lire la suite