Blogs1 - 10 of 152 recent posts for tag:WMI
24
Dec
2011
PowerShell WMI Gather DNS settings for all Servers

49 days ago by Karl Mitschke

A question came up on TechNet: “I am new to PowerShell and need a wmi script to query all the servers on my network for there dns settings and dump it out to a text file. Would someone be able to help me get started?” This was a fairly long script, so I decided to post it here. *EDIT* This script re ...

16
Dec
2011
Windows remote kill process

57 days ago by Stephen Loo

每當Remote Desktop login不成功,只能無奈強制reboot,之後發現有一process停不了,只要kill了這process便可,不用reboot,於是尋找remote kill process的辦法,方法如下: 若要command login,先download Sysinternals Suite的psexec: >psexec \\1.2.3.4 -u administrator -p password cmd 然後command kill process: >taskkill /F /IM notepad.exe 當然不是notepad導致不能remote login ...

15
Dec
2011
Examples of WMIC commands for Windows .NET SERVER Family

58 days ago by coreworx

Examples of WMIC commands for Windows .NET SERVER Family July 2002 1.0 Method execution: NICCONFIG (Win32_NetworkAdapterConfiguration) WMIC NICCONFIG WHERE Index=1 CALL EnableStatic ("10.0.0.2") ,("255.0.0.0") WMIC NICCONFIG WHERE Index=1 CALL SetGateways ("10.0.0.8","10.0.0.9") ,(1,2) WMIC NICCONFI ...

14
Dec
2011
UK PowerShell User Group December 2011 – Use the WSMAN cmdlets to retreive ... // technology

59 days ago by Jonathan Medd

The UK PowerShell User Group for December 2011 will take place at 19.30 GMT on Thursday December 15t. The topic is ‘Use the WSMAN cmdlets to retreive WMI information and see a demo of the new WMI API’s CIM cmdlets in PowerShell v3 CTP 2′. I’m looking forward to seeing the new CIM cmdlets from V3 CTP ...

12
Dec
2011
Finding Name Resolution Problems

60 days ago by Alan

Name resolution problems are a plague for system administrators. If you think you are working on ComputerA but instead are working on ComputerB much gnashing of teeth may result. In our environment we have NetBIOS and FQDNs to resolve. The correct name, of course, is the one in the registry. NameRes ...

Create Shares on Remote Servers

60 days ago by eaglebcr

Here is a script that will connect to a list of servers, create a folder structure and then create a share on a folder. ########################################################################### # # NAME: Create Share on Remote Servers # # AUTHOR: Brady Randolph # # COMMENT: # # VERSION HISTORY: # ...

10
Dec
2011
Convert DHCP IP to Static IP on Network Interface(s)

63 days ago by Siva Mulpuru

Logic Get the Network Adapter with DHCP enabled from Win32_networkadapterconfiguration Map MACAddress from step 1 to MACAddress from Win32_NetworkAdapter to retrieve InterfaceName Set the static IP with NETSH using InterfaceName and values from Step 1 Code # ######################################### ...

09
Dec
2011
Friday Fun Drive Usage Console Graph

63 days ago by Jeffery Hicks

I think you’ll like this. Normally, I prefer my PowerShell commands to write objects to the pipeline. But there’s nothing wrong with sending output directly to the console, as long as you know that the output is intended only for … Continue reading →

Finding file version from remote computer(s) using WMI

64 days ago by Ravikanth

I came across this question on StackOverflow yesterday. The question was about finding the version details of a specific DLL from a list of remote computers. There are multiple ways to achieve this. The most easiest one would be to use PowerShell Remoting. This was my first answer to that question.

08
Dec
2011
Reporting on Windows File Server Shares and NTFS Permissions with PowerShell

64 days ago by Jonathan Medd

I recently had a requirement to audit the Share and NTFS permissions of a Windows File Server. PowerShell contains the Get-ACL cmdlet which makes retreving the NTFS permissions fairly straightforward, but for the Share permissions it is not so easy, but we can make use of WMI and the Win32_LogicalSh ...

Previous1234567