0
votes
1answer
73 views

Windows Batch File (WMI) - taskkill process based on memory usage

Is there a way using WMIC, bat files, or powershell, to kill a task with a particular task name if the amount of virtual memory the process is using is above a certain limit? Specifically I want to ...
0
votes
1answer
87 views

How to get BIOS serialnumber with WMIC command

Whenever I use the command line below wmic bios get serialnumber It outputs the BIOS Serial number with my laptop. However, I've tried that command line to get BIOS serial number with my ...
1
vote
1answer
113 views

WMIC Node Information [duplicate]

Is there a way that you can get WMIC to prompt you for a node name each time? I will be running a similar command for different machines on different occasions. I.e. to get a remote computer model. ...
3
votes
0answers
18 views

Check if important Windows Update is available [duplicate]

When depolying any application, it could be needed, that user has computer updated to latest OS version of Windows. Windows XP/Win7/Win8. in this example, one important update is available on a ...
0
votes
2answers
2k views

Bat script using WMIC causing issues

I am trying to write a script to install the correct display driver. Long story short on newer systems when you add a dedicated card the onboard is no longer disabled so when I run this command: FOR ...
11
votes
2answers
32k views

How can I find out when Windows was last restarted?

How can I know when my computer running Windows 7 was last restarted? I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.
0
votes
1answer
853 views

How to pass a variable to a WMI query run in a batch file?

I want to run the following in a batch file and prompt the user to enter "NewUserID", then insert it as a variable. Can this be done with WMI? wmic useraccount where name='user'call rename ...
2
votes
2answers
5k views

Run WMIC command across network

Instead of typing this in a command prompt one at a time: wmic /node:ipaddress /user:administrator /password:mypassword bios get serialnumber How can I run that against one entire subnet and output ...
0
votes
2answers
429 views

What is the unit of size we get from using wmic command on windows

I use a couple of wmic commands and I was wondering how can a user come to know the the unit of any size related command output? For Instance I use the below 2 commands wmic /node:Abhishek-PC cpu ...
0
votes
0answers
5k views

CMD - Rename Local Computer, Join Domain, Join Specific OU

Alright so not sure if this is entirely possible all in one. Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the ...