...objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery ("Select * from Win32_Service Where Name ='" & ServiceName & "'")
For Each objService in colListOfServices
wscript.echo "Service Name: " &...
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.
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...
...Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colAdapters = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled=True")
For Each objAdapter in colAdapters
For Each strAddress in objAdapter.IPAddress
arrOctets =...
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.