Tag Archives: WMI

Get the name of a computer

This a very simple task (gwmi win32_computersystem).name or (gwmi win32_computersystem -ComputerName myComputer).name

Posted in PowerShell Blogs | Tagged , | 2 Comments

Automatic Bios update with PowerShell

I currently working with clients in an environment without any system that will update computers Bios automatically. So I have started to write a PowerShell script for this. It uses Windows Forms for the output and WMI for the information … Continue reading

Posted in PowerShell Blogs | Tagged , , , | 11 Comments

Get-ClientSiteName

This is another function that I use in Active Directory scripting. I use it when I want to create computer names with the syntax SitenameComputertypeNumbers.   The function can be found here.   Technorati Tags: PowerShell,WMI,Get-ClientSiteName,Active Directory

Posted in PowerShell Blogs | Tagged , , , | Leave a comment

Get-ComputerType

I’m working on lots of Active Directory functions at the moment.For a larger Active Directory script. And one of the functions will get the computer type in clear text. What does this have to do with Active Directory management doask … Continue reading

Posted in PowerShell Blogs | Tagged , , , | Leave a comment

Shutdown-Computer

I have made a function for my friend Anders Bengtsson that will do a Shutdown, Reboot or Log Off. The function uses Win32Shutdown in the WMI object Win32_Operatingsystem.   Example: Shutdown-Computer mysrv01 ‘Log Off’ or Shutdown-Computer mysrv01 ‘Log Off’ other … Continue reading

Posted in PowerShell Blogs | Tagged , , | Leave a comment

How to get MAC Addresses from remote computers

When working with installation systems or other Network systems you often need your users MAC Address. You can ask the users to start cmd.exe and then do a ipconfig.exe /all. If you have 100-5000 users this can be a whole … Continue reading

Posted in PowerShell Blogs | Tagged , , | Leave a comment

Using win32_operatingsystem (WMI) to get OS information

I have made a little screencast without sound that shows how easy It is to get information about the Operating System by using WMI. Get more information at: win32_operatingsystem class information http://msdn.microsoft.com/en-us/library/aa394239.aspx Technorati-taggar: PowerShell,Screencast,Fredrik wall,win32_operatingsystem,WMI Andra (Bloggar.se) skriver om: PowerShell, … Continue reading

Posted in PowerShell Blogs | Tagged , , , , | Leave a comment

Display the Operating system version (as a function)

Almost the same as the last post. But this time we have It as a function. Technorati-taggar: PowerShell,WMI Andra (Bloggar.se) skriver om: PowerShell, WMI

Posted in PowerShell Blogs | Tagged , | Leave a comment