Hi everyone,
I'm in a bit of a bind... I have some batch scripting ability but next
to no skill in VBS. I had a set of scripts that would:
Query the registry key
HKLM\SOFTWARE\M icrosoft\SMS\Cl ient\Configurat ion\Client Application
Launchers\Hardw are Inventory Agent
If the value returned is 0x79726f74 then it would stop the SMS Client
Service (clisvc), wait for this to complete, and then delete two
registry keys:
HKLM\SOFTWARE\M icrosoft\SMS\Cl ient\Configurat ion\Client Application
Launchers\Hardw are Inventory Agent
HKLM\SOFTWARE\M icrosoft\SMS\Cl ient\Client Components\Hard ware
Inventory Agent
5. Report back to a file on \\hostserver\MS KB\28552\
We also had a VBS that ran great, but required WMI 1.5. Thus comes the
caveat... the targets are our legacy desktops running NT4 Workstation,
WMI v1, and IE5. The script needs to run at logon (we use psexec to
get elevated rights), and definately has to report back for auditing
purposes.
Does anyone know how to do this? I am completely tapped.
TIA!
Joe Foran 1 2462
You don't need WMI to read a key/value and/or delete
a key/value. You can use WScript.Shell object's RegRead
and RegDelete.
If you want sample code:
WScript.Shell samples: http://www.jsware.net/jsware/scripts.html#shell
A package of VBS classes, one of which is for Registry functions: http://www.jsware.net/jsware/scripts.html#classpk
I don't know about "reporting back" to a remote file.
If you mean write to a file you can use the FileSystemObjec t's
Textstream object, but I don't know the syntax for that in
dealing with a remote file.
This is a VB group, though, not VBS. You might try
microsoft.publi c.scripting.vbs cript
microsoft.publi c.scripting.wsh
if you need more help.
-- I'm in a bit of a bind... I have some batch scripting ability but next to no skill in VBS. I had a set of scripts that would:
Query the registry key HKLM\SOFTWARE\M icrosoft\SMS\Cl ient\Configurat ion\Client Application Launchers\Hardw are Inventory Agent
If the value returned is 0x79726f74 then it would stop the SMS Client Service (clisvc), wait for this to complete, and then delete two registry keys:
HKLM\SOFTWARE\M icrosoft\SMS\Cl ient\Configurat ion\Client Application Launchers\Hardw are Inventory Agent
HKLM\SOFTWARE\M icrosoft\SMS\Cl ient\Client Components\Hard ware Inventory Agent
5. Report back to a file on \\hostserver\MS KB\28552\
We also had a VBS that ran great, but required WMI 1.5. Thus comes the caveat... the targets are our legacy desktops running NT4 Workstation, WMI v1, and IE5. The script needs to run at logon (we use psexec to get elevated rights), and definately has to report back for auditing purposes.
Does anyone know how to do this? I am completely tapped.
TIA!
Joe Foran
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Erich Trowbridge |
last post by:
Has anybody seen this tool? It is awesome. check out
http://vw.vermeer.org/ . It's a php front end for large-scale syslog
deployments. It makes managing syslog in large networks a snap.
The idea is to fifo pipe network syslog into a MySQL database backend.
The php scripts reference the database, and print stuff to the screen.
My Info -> RH9.0 , MySQL 4.0.14, apache1.3.28
I have successfully gotten everything installed, compiled, etc....
|
by: Joe Foran |
last post by:
Hi everyone,
I'm in a bit of a bind... I have some batch scripting ability but next
to no skill in Perl. I had a set of scripts that would:
Query the registry key
HKLM\SOFTWARE\Microsoft\SMS\Client\Configuration\Client Application
Launchers\Hardware Inventory Agent
If the value returned is 0x79726f74 then it would stop the SMS Client
|
by: EkteGjetost |
last post by:
This is definitely not the smart thing to do as far as my learning goes,
but desperate situations call for desperate measures.
The final lab for my introduction to C programming class is due tomorrow.
I was on vacation when we went over how to read files, so basically my
only resources are the book, the course notes, and the examples.
Unfortunately for me, none of them are usefull at all, so pretty much i
don't have a clue as to what i...
|
by: Joe Rigley |
last post by:
Help Please!
I've been tasked with converting a portion of the corporate web site that
currently utilizes local user accounts and NTFS via Basic Authentication to
access certain files on the web site to an ASP .NET Forms Authentication
approach with SQL Server. I'm just getting comfortable with ASP .Net, but
strong in Classic ASP.
|
by: John Salerno |
last post by:
I contacted my domain host about how Python is implemented on their
server, and got this response:
-------------------
Hello John,
Please be informed that the implementation of python in our server is
through mod_python integration with the apache.
These are the steps needed for you to be able to run .py script directly
| |
by: kaosyeti |
last post by:
hey... i know NOTHING about sql server, .net framework or probably anything
else on sql monster. i am a novice access user, self-taught for about 9
months now and have only a basic understanding of vba. that being said, i
need some help...8)
i have a web site that i used to routinely visit for my job that performs
calculations for monthly car payments based on about 20 user-entered fields.
the problem is that about 3 months ago, it...
|
by: Artemio |
last post by:
Dear folks,
I need some help with using the sscanf() function. I need to parse a
string which has several parameters given in a "A=... B=... C=..." way,
and each has a different type (one is a text string, another is a
decimal, next one is float, etc.).
I have GCC 4.0.1 on Mac OS X Tiger.
Here is an example of what I am trying to do.
|
by: i |
last post by:
what is scripting language?We can create websites by using HTML. But
we are using scripting language with HTML to create forms and
websites.Advantage of using scripting language instead of HTML?
|
by: souporpower |
last post by:
Hello All
I am trying to activate a link using Jquery. Here is my code;
<html>
<head>
<script type="text/javascript" src="../../resources/js/
jquery-1.2.6.js"</script>
<script language="javascript" type="text/javascript">
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |