Hi All :-)
I have just finished writing my first serious vbscript in about....god, 5 years.
I am stuck between:
[Option1]
intGReturn = 1
Call Task A
If Result from Task A is Good
Call Task B
If Result from Task B is Good
Call Task C
...and so on, we all all good...
Hi All, I think I am surpised to find that you cannot create an ODBC connection from a Linus system specifying AD account details in the connection string? that only a local SQL account being specified will work, that to use an AD account you need to choose one of the integrated options in the...
Hi All, I am showing my age here...
I am creating a number of instances of a class (from a different module). at the point of creating the new instance of the class i am passing the New() Sub for the class some information to use / assign to the new instance of the class. I am struggling because...
Am looking for examples of how to set / create / update document tags? Probably start off with word documents, need to handle .doc and .docx if there are any differences in tagging implementation i dont know.
have found things talking about ActiveWorkbook.ContentTypeProperties("Line of...
I am looking for a set of pre patching commands to issue on Cluster Nodes.
I roughly have:
+ Import-Module FailOverClusters
+ Test-IsRequired (Get-ClusterNode -Name $ENV.ComputerName).State.ToString() Up
+ Suspend-ClusterNode $ENV:ComputerName
+ Stop-ClusterNode $ENV:ComputerName
i need to add...
$xPathDoc = new-object -typename System.Xml.XPath.XPathDocument -ArgumentList "c:\programdata\gws\buildinfo.xml"
$nav = $xPathDoc.CreateNavigator()
$strXPath = "GWS/SETUP@version"
$result = $nav.GetAttribute($strXPath, "")
so, i am trying to grab the attribute of SETUP node which is part of the...
Being new to powershell this was doing me in.
I was using:
$strResult = $strResult -Replace($strX, $strY)
this was working most of the time, however if $strX started with a 'funny' char ^ or # (i think) this replace function was no longer working, i presume it was thinking $strX was a regexp...
Hi all,
just a little heads up. If you are installing .net 4 be careful with previous file rename / dllcache update operations, the .net 4 install seems to remove these.
e.g. you have:
installed WMI update, kb956523
installed MSXML3 update, kb973687
installed MSDTC update, kb979919
install...
Gents, i am trying to start a powershell script from a WshShell.Run command in vbscript.
the script I am trying to run has white space in the path to the where the powershell script is located.
i know i can just copy the powershell script locally to a folder with no white space but it doesnt...
Hi All.
I think I am stuck and will need to swap to powershell to achieve what i want(i hope this is not the case)?
I am trying to create a new instance of the SMS_AuthorizationList. It accepts a read/write 'updates' property which is a UInt32 array. My issue comes when i try to populate the...
Hi all,
i have seen a few examples of creating controls in a HTA by creating a text string then setting the .InnerHTML property to the text.
Does anyone have any samples of doing it through 'code', e.g.
Set newCheckBox = New Checkbox
hta.document.addcontrol(newCheckBox)
etc
Thanks,
I Hear, I...
Came across an issue with some old code that i have to support. It is making use of :
Set objInstaller = CreateObject("WindowsInstaller.Installer)
For Each aProduct In objInstaller.Products
'blaa
Next
The issue was that a runtime was generated by the For Each line, as objInstaller.Products...
I am trying to post to a webpage which has a number of forms on it. if you browse to the webpage normally it starts off the form name jump1x, which asks you for some info, then you go to jump2x when it asks for alittle more info, finally you get to jump3x which i want to post to. i believe i...
i have been pulling my hair out today. dont know why it took me so long to get to this stage but there you go, a bad workman blames his tools and the script was running from an SCCM task sequence using the SCCM task seq service as local system, no interact with desktop.
The machine has the...
i have a ps script which is running as a 64 bit process. this script needs to read some information from a 32 bit only COM object, Microsoft.SMS.Client.
At the momment i am shelling out to a vbscript launched from syswow64 which writes to the registry the information i wanted from...
we are seeing a few issues relating to SCCM SP0 client talking to SCCM SP2 backend.
These are related to running task sequences.
Two issues at the moment are:
+ 183 error when trying to start a task sequence on a 64 bit client. This seems to be related to having more than one TS advertised to...
Little tip, make use of the SMSTSLocalDataDrive taskseq variable and set it to %systemdrive% at the start of the Task Sequence, otherwise when one of the nodes bounces you will most likely find that the TS fails as it cant find its TaskSequence information as it has placed in the Quorom drive of...
I have been pulling my hair out over this and i am ready to burn my powershell books.
I simply want to pass a function a couple of variables ByRef. So, when the function has finished i have some System.Xml objects to use in the rest of the script. I have tried various variations, [ref] declared...
hope its ok to post this.
watch out for your use of the Win32_Product class from vbscript. under some circumstances it can cause any MSI application it comes across (say you are auditing installed apps) to check its integrity and can result in repairs etc being kicked off. (this can be painful...
Good morning All,
I hope it is ok to post an IIS related question regarding FTP.
I have been asked to implement a restricted MS FTP (passive mode) data port range using 'PassivePortRange' metadata property.
My question is perhaps a noddy one, I am interested in the relationship between...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.