Back in 2018 I wrote a vbscript to start a service if the service was stopped. Back then I had this run as a scheduled task at specific time but decided to remove if from scheduler and run it manually if I ever needed it. I'm switching computers and tried this script out on my old Windows 10...
Well,
Let's see if we can't get you at least started in the right direction.
First off let me suggest that if you place your data in a text file for easy editing and the fact that text files are easy to deal with in VBScript.
Since your data fields are all related to each other I would...
Here's something to take a look at: http://blogs.technet.com/b/heyscriptingguy/archive/2006/03/29/how-can-i-change-the-ip-address-assigned-to-a-computer.aspx
There's a link in this article that takes you to another page that covers some more stuff.
Like VulcanJedi I'm not sure what your wanting. With HTA's subroutines provide the control you're wanting automatically. If your just imputing data and you're not validating the data then you tab to the next field and the HTA will simply for you to input data. Using specific subroutines you...
Well, it's a bit hard to tell you the best way to do this without seeing the hta but.....
HTA's can include vbscript code inside the HTA itself as you're probably aware. Since you cannot use an onchange event because you have to wait until multiple boxes are checked you need to have a button...
The first question that should be answered is why are you messing with a CMD file and executing it from a vbscript? PKGMGR is a command line utility that can be directly invoked using the wshShell.Run command directly within your script. Using the parameters of the wshShell.run command you can...
Here's some code to look at. We had a situation where we wanted drives to be persistent as long as they met certain criteria but as soon as the criteria changed, we needed to change the mapping to a different persistent path. We first used some code to fetch the persistent network drives that...
Granted you can invoke a batch program from a VBScript but why? Seems to me that you would be better off to re-write the batch program in VBScript and that way the batch program will not open a window.
Your first question dealt with determining which OS is running on the PC but the code you have in your subsequent thread was specific to Windows 7. Is this really the case that only Windows 7 machines have PowerPoint or can PowerPoint exist on an XP machine? If PowerPoint is only on Windows 7...
There's a lot that I can recommend to you as far as "better coding" goes. Here are a few pointers:
Use an Option Explicit statement in your code. By specifying an option Explicit your program will automatically error out if a variable used in the program is not defined or is misspelled.
Use...
Since your need is limited to Windows XP and Win7 this should do the trick. The thing you are wanting to do is determine, when the program is executed, which OS is running. Fortunately, Windows plugs an OS value into the registry at run time so all you really need to read the value that's...
Linney.
To make a long story short I tried drilling down into the CSC folder and in the only subfolder in CSC I was denied access but when I looked at the security it said that there wasn't even an owner of the folder so I took ownership. I then drilled down into that folder and found 2 more...
I'm still a bit perplexed by the event and perhaps someone can shed more light on this. From what I gather if you do want to work on off-line files then a copy of the file would be stored somewhere on my PC which I assume to be the C:\Windows\CSC folder and the way I had it set up before the...
Linney,
Thanks for the reply. The link to the article you send me was not exactly my problem but I'm making a bit of headway. on another post I have out there someone indicated that the CSC in content source line means "client side cache" and that if I were to disable indexing of the offline...
My Windows 7-64-bit machine is reporting an event 3036 warning each time the WSearch service is started. Although benign, I would like to be able to fix this issue. I have searched the internet for a solution and have come up empty handed Here are the details:
Event type: Application...
Can anyone share any VBScript code that would allow you go do group nesting in a cross-domain environment?
We want to take some global groups in our production environment and nest them inside "domain local" groups in our deveopment domain. A one way trust already exists between the two...
Got an answer from another site so I'm posting the solution here too.
To delete existing WINS records use:
dnscmd servername /recorddelete zonename @ WINS /f
You can leave /f switch out and you will be prompted to delete each record separately.
To create WINS records use:
dnscmd servername...
We have a primary zone setup in our Microsoft Windows 2003 DNS that is is configured to use WINS to resolve names not found by querying the DNS namespace. To configure this with the MMC we select the zone properties, select the WINS tab and check the "Use WINS forward lookup", ckeck the "do not...
We do not have any servers running version of Windows Server 2008. Can anyone tell me the high level version (IE7 or IE8) that is the default version of IE that gets installed in the various flavors of Windows Server 2008? Thanks.
We have not installed Windows server 2008 in our environment yet but someone in our organizaiton has asked us what version of IE is installed with Server 2008? Can someone out there please provide me with the infor or 2008 and 2008 R2. Thanks.
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.