-1
votes
1answer
43 views

How to loop specific powershell script

I need to uninstall Java from several computers in my network. After almost all day of Googling it seems the best way to do this is with a Powershell script. I found one that I have tested on a few ...
1
vote
1answer
450 views

Obtain device driver version and associated GUID using PowerShell?

Right now, I am getting two separate objects A Win32_NetworkAdapter WMI object A Win32_PnpSignedDriver WMI object In my previous scripts, I've made sure I was calling separate objects, and ...
2
votes
2answers
2k views

Powershell or WMI to pull Printer Properties and Additional Drivers?

What I am trying to accomplish: Use a powershell script (WMI or cmdlets directly, or a combination) to query a 2003 or 2008 server with the PrintServer role, enumerate the printers shared, then list ...
2
votes
2answers
1k views

Timestamp of Last Definition Update for Microsoft Security Essentials via Script

Is there any way to check this via VBScript or Powershell? I have briefly looked at the SecurityCenter and SecurityCenter2 WMI classes, but neither of them look especially useful. It appears the ...
0
votes
1answer
450 views

How to script GPO in Windows computers without Active Directory?

Does anyone know how to script GPO for users in a Windows computer that is not on any Active Directory network? I can't use GPMC because it doesn't work without a domain. I have been searching the ...
2
votes
1answer
595 views

Setting WMI permissions remotely

I've developed a tool that does a simple retrieval of registered services and installed applications from remote Windows Server 2003 servers via WMI. My problem is, the tool needs to be run on an ad ...
2
votes
1answer
7k views

Scripting inventory of machine name, current username, Operating System using WMIC or powershell

I have a text file of every machine in our Windows Active Directory domain, and I would like to determine the currently logged in user (if any) and operating system of each machine using WMIC: WMIC ...
3
votes
4answers
3k views

Disable a specific ethernet card via batch commands on Windows

What I would like to do is disable a NIC based on the connection name (aka: what you see in the "network connections" window, or what you would use with netsh commands). I know enabling/disabling can ...
2
votes
5answers
1k views

Powershell recursive WMI query

I'd like to start at the top of a WMI namespace, recurse through all the objects, then recurse through each object's property list, filtering out and returning to console only those properties that ...
4
votes
6answers
12k views

How to get the IP Address for your Local Area Connection on Windows Server?

I want to create a batch or vbs file that will put together a url and executed. Part of that url needs to be the actual ip address of the machine. How I am able to get that IP address in a variable ...
1
vote
3answers
1k views

WMI Remote connection objsWbemLocator.ConnectServer

I have an issue when connecting to remote machines using the following: Set objWMIService = objSWbemLocator.ConnectServer _ (sIP, "root\CIMV2", strUser, strPassword, "MS_409", "ntlmdomain:" + ...
2
votes
5answers
1k views

Server & Workstation Power Consumption - obtaining programmatically/via script

I'm looking for a generic way to query a network of Windows PCs (XP/Vista/7/Server 2k3) for their current power consumption - ideally in Watts! I'm sure this kind of thing is built into WMI, but it ...
5
votes
6answers
5k views

Useful WMI admin scripts

In a comment to my response to this question , cop1152 said he loved WMI scripts. Well, so do I! What are your favourite, best, most useful scripts you'd like to share with the community? thanks.