![]() ![]() However, the stores have been receiving inventory every now and then, and I know that when GameStop has it in stock, I want to buy it from them! With that in mind, I knew I just needed a way to monitor the page and alert me when some text on it changes. I have been REALLY wanting a Nintendo Switch, and since I’ll be flying up to NYC next month for Tome’s NYC TechStravaganza (come see me if you’ll be in Manhattan that day!), it’s the perfect justification for She-Who-Holds-The-Wallet for me to get one! In fact, this post COULD have been called ‘Finding a Nintendo Switch with PowerShell’! However, nothing motivates like greed, and I recently revisited this topic in order to help me track down the newest must-have item, the Switch. “How can I extract content from a webpage using PowerShell”.Īnd it’s an interesting problem to solve. Until then, peace.This kind of request comes up all the time on StackOverflow and /r/PowerShell. If you have any questions, send email to me at or post your questions on the Official Scripting Guys Forum. I invite you to follow me on Twitter and Facebook. Join me tomorrow when I will talk about more cool Windows PowerShell stuff. This technique is shown in the following image:īG, that is all there is to using Windows PowerShell to find multi-monitoring information. The easy way to look at this is to store the object in a variable, and then address it directly. The SupportedDisplayFeatures property returns another object. The command and the output are shown here: Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorBasicDisplayParams ![]() Using the Get-CimInstance cmdlet produces a nice output (but you can also use Get-WmiObject). It also tells me the capabilities of that monitor. The class is WmiMonitorBasicDisplayParams, and it tells me if a display is active. ![]() There is a cool WMI class on my laptop running Windows 8 (I’m not sure if it exists on Windows 7 devices). So I can sort of work back and forth with this. Of course, I already have some of this information from the Video Controller. But this information, for some reason, does not appear for my laptop monitor itself. ![]() The default display shows information about the screen height and screen width. To find information about the monitors, I use the Win32_Desktopmonitor WMI class. So, I have discovered that I have two video controllers on my computer, but both of them are set to use the same resolution. GWMI win32_videocontroller | select caption, Current*Resolution The cool thing is that I can use a wildcard character and the alias and really shorten this command as shown here: The command and its output are as follows: PS C:\> Get-WmiObject win32_videocontroller | select caption, CurrentHorizontalResolution, CurrentVerticalResolution The command is shown here:įollowing is the command and its associated output:īy looking at the output, I can see that I am most interested in the caption, and in the CurrentHorizontalResolution and CurrentVerticalResolution properties. I can query this by using Get-CimInstance in Windows PowerShell 3.0, or I can use Get-WmiObject in Windows 7 with the default Windows PowerShell 2.0. One of these classes is the Win32_VideoController class. There are a couple of WMI classes that provide information about resolution and monitors. Also, the email sent to is really important because this is where I get many of my ideas for posts. These comments make the blog better for us all. In fact, I get an email notification when a comment is written to the blog. He is working on a book, and he mentioned that he misses immediate feedback from customers when he is writing. I told him that I simply cannot do my job properly if I do not talk to customers, hear from customers, and speak to customer groups on a regular basis. We were talking about how important our customers are to us. I just got off a LYNC call with my mentee. Microsoft Scripting Guy, Ed Wilson, is here. If I can also find the resolution, it would be awesome. Ideally, I would like to know if it is connected to only the laptop display, or if there is an added monitor. You are awesome! I have become good at navigating around various WMI classes, but I need to find information about multiple monitors that are connected to my laptop running Windows 7. I have been following your blog for years. Hey, Scripting Guy! I am a long time reader, but a first time writer. Summary: Microsoft Scripting Guy, Ed Wilson, talks about how to use Windows PowerShell to discover multi-monitor configuration information on your computer. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |