|
|
Browse by Tags
All Tags » WMI (RSS)
-
Do you get the same results if you use WBEMTest and query remote machines? Can you remotely query:
HKLM\System\CurrentControlSet\Control\Sessionmanager\Environment
either with Regedit or REG.exe? Are there any ACL modifications on this key on the Win2K machines?
-
Because ICMP isn't always an option, I've used WMI to test connectivity. This also helps when the computer may still respond to a ping but the OS is hung. I have a blog entry and function at http://blog.sapien.com/current/2007/4/6/ismanageable.html that might help.
-
Can netdom be used remotely? It would be my preference to not rely on another tool, if I can accomplish the same thing with a few calls to WMI object methods.
As for the Rename() and JoinDomainOrWorkgroup() methods, I'm not familiar with setting up WbemLocator settings. First, I don't know whether to use SWbemLocator, or IWbemLocator, ...
-
I'm looking for a method for changing the name and description of remote computer. I've been looking at WMI and the win32_operatingsystem, uh, class (?) I'm not sure of the terminology there. Anyway, there appears to be everything I need in that class. I had been playing around with this:$c = get-wmi -class ...
-
I would recommend starting Wbemtest. Connect to \\servername\root\cimv2. Specify your credentials in domain\username format. If you can't get past this screen, try the same but for a different computer. Assuming you can get connected run a query like ''select * from win32_operatingsystem''. You still might try this on ...
-
I'm about day 5 into using Powershell...(and 25 years of writing code) and I'm trying to figure out how to use 'SWbemRefresher' to monitor local network traffic from within a Powershell script (which is scripting IE to click through a web application.)
The classic VBscript solution starts as follows...
******
strComputer = ''.''
Set ...
-
I can't think of a way you could get the return code of the script that is executed remotely. I think what I would do is modify the script to also write the result somewhere. It could be a file, an entry in the event log or in the registry. You could either keep a running log or delete the entry/file so that you always have the latest ...
-
I've been playing with this a bit, but have had only limited success. Let's say that I have a service ''example-svc'' which exists on multiple machines. I want to take the following actions on this service on all machines on which it exists:stop the servicechange the startname and password properties to ''mydomain\username'' and ...
-
Well i haven't read that book, but hear that it is popular and good for the beginner. Powershell In Action, is more my sort of book.
Anyhow if you are running scripts on a bunch of servers, then yes, powershell has to be installed on those machines
However, alot of what you want to do can be done through WMI.. and thus you can run the ...
-
looks like you are on the right track..
get-content is great like that , how an item on each line can be splitout and used in the pipeline like that.. also i look into import-csv as it can read in multicolumn excel sheets saved as csv so you could do (if the column name for the server is called server)
import-csv c:\myservers.csv | foreach ...
-
Do you know WMI (Windows Management Instrumentation)? It’s a service built into every Windows since Windows 2000, and you can even update Win 9x and NT 4.0 to use it. WMI is designed to locally and remotely manage systems, and many scripts take advantage of its rich capabilities. Time to look at WMI from a PowerShell perspective.
Getting ...
-
Today for the last time we'll talk about old scripting techniques and how to port them to PowerShell.
That's because today you will learn all you possibly need to reuse old script code including a cool VBScript integrator called new-vbscript that let's you merge arbitrary VBScript/JScript/PerlScript code into PowerShell.
Stop. What if I don't ...
|
|
|