Browse by Tags

All Tags » Scripting Guy!   (RSS)
Showing page 1 of 63 (1,245 total posts)
  • Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (12/11/09)

    In this post : Can I Run Windows PowerShell Scripts as Macros in Office Outlook 2007? Working with Singleton Classes in WMI More About Singleton Classes in WMI Executing a Script on a Remote Server with Windows PowerShell 2.0 Are These Things Possible with VBScript and Windows PowerShell? Troubleshooting a VBScript Script Can I Run Windows PowerShell Scripts as Macros in Office Outlook 2007? Hey, Scripting Guy! Is it possible to run Windows PowerShell scripts as a macro in Outlook 2007? If so, is
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 11, 2009
    Filed under: VBScript, Windows PowerShell, Scripting Guy!, WMI, running, scripting techniques
  • Hey, Scripting Guy! Can I Call WMI Methods More Easily with Windows PowerShell 2.0?

    Hey, Scripting Guy! I enjoy working with WMI, but it can be a bit complicated to make it do anything. It is great at retrieving information, and in conjunction with the Windows PowerShell Get-WMIObject cmdlet, it is really easy to obtain lots of information about our servers. In fact, WMI is one of the reasons we are deploying Windows PowerShell 2.0 to all of our 1,000 servers in our server farm. We feel that we will be able to get the ROI from the deployment project in a few months. I just wish
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 10, 2009
    Filed under: Windows PowerShell, Scripting Guy!, WMI, processes , operating system , scripting techniques
  • Hey, Scripting Guy! How Can I Use WMI to Set the Screen Saver Timeout Value on Workstations?

    Hey Scripting Guy! I have been trying to set the screen saver time out value on my workstations by using WMI. It is not working. Can you help me get WMI working? -- HR Hello HR, Microsoft Scripting Guy Ed Wilson here. My teapot is empty. I was getting ready to head downstairs to fix me a nice pot of Constant Comment tea, but Outlook dinged at me signaling that your e-mail had arrived in the scripter@microsoft.com alias. I love it when an e-mail is short, sweet, and to the point. Because I get several
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 9, 2009
    Filed under: Windows PowerShell, Scripting Guy!, WMI, desktop management, scripting techniques, general management tasks
  • Hey, Scripting Guy! How Can I Ensure My Scripts Won't Fail on Various Windows Operating Systems?

    Hey, Scripting Guy! I have a mixture of operating systems at work. We have Windows XP on the desktop, a few Windows Vista machines, Windows 7 on a few computers so far, Windows 2003 in the server room, and Windows 2008 and a couple of Windows 2008 R2 computers that are running Hyper-V on Windows Core edition. I know we are not unique in this regard, but given all this diversity, do you have any tricks that can be done to ensure that my scripts will not bomb out? -- JH Hello JH, Microsoft Scripting
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 8, 2009
    Filed under: Windows PowerShell, Scripting Guy!, WMI, version information, operating system , scripting techniques
  • Hey, Scripting Guy! Does the Win32_Volume WMI Class Support Filtering on the Name Property?

    Hey, Scripting Guy! I have a problem using the Win32_Volume WMI class on my Windows Vista computer. I keep getting an error. I have searched the Internet using Bing and other search engines, but I cannot find the answer to my problem. It should be so simple; all I want to do is filter the results by the drive name in the WMI query. How hard can that be? Evidently, pretty **&&#!!@#$%^ hard! I have wasted more than four hours on this seemingly trivial task (and I am still behind from Thanksgiving
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 7, 2009
    Filed under: Windows PowerShell, Scripting Guy!, WMI, disk drives and volumes, scripting techniques, storage
  • Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (12/4/09)

    In this post : What's Up with the MSScript@Microsoft.Com E-Mail Alias? How Does the Clear-EventLog Cmdlet Work? How Do {Get;Set;} Properties Work? What's Up with the MSScript@Microsoft.Com E-Mail Alias? Hey, Scripting Guy! I've tried to send you an e-mail about problems I was having with a script, but I got the failure notice shown below. I used the e-mail address that was linked from a WSC page on MSDN. This is rather strange. > ================ > This is an automatically generated Delivery
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 4, 2009
    Filed under: Windows PowerShell, Scripting Guy!, scripting techniques, getting started
  • Hey, Scripting Guy! How Can I Change Browser History Settings via the Registry?

    Hey, Scripting Guy! Awhile back, I visited a really cool Web site (not yours), but I did not save it as a favorite. The site does not show up in my History folder. Is there any way I can use a script to retrieve this information? By the way, I enjoy reading about you in your opening stories. If I do not hear from you, I hope you enjoy the holidays. -- JR Hello JR, Microsoft Scripting Guy Ed Wilson here. I am glad you enjoy my opening stories. I am not sure what you mean when you say the really cool
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 3, 2009
    Filed under: Windows PowerShell, registry, Scripting Guy!, Internet Explorer, operating system , using the Internet
  • Hey, Scripting Guy! Can I Use the Registry to Retrieve a List of the Most Recently Run Programs?

    Hey, Scripting Guy! When I work on a computer, I often run many commands. I generally use Run from the Start menu to launch these programs. When I am finished, I use a script I copied from the Scripting Guys archive to display all the commands that I ran and then I save them in a Notepad file. However, that script no longer works on Windows 7. Because Windows 7 contains Windows PowerShell 2.0, I am wondering if you could convert that old VBScript script to Windows PowerShell for me. Pretty please?
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 2, 2009
    Filed under: Windows PowerShell, registry, Scripting Guy!, operating system , regular expressions, scripting techniques
  • Hey, Scripting Guy! How Can I List All User Profiles on a Remote Computer?

    Hey, Scripting Guy! I am trying to administer a remote computer using Windows PowerShell 2.0, and I need to find out what profiles are stored on that computer. I found an old VBScript that reads the registry, but it looks like it will be a lot of work to adapt it and to make it work. -- JB Hello JB, Microsoft Scripting Guy Ed Wilson here. It is a nice sunny day here in Charlotte, North Carolina, in the United States. It is cold but nice. Some of my friends are out wearing their winter coats because
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on December 1, 2009
    Filed under: Windows PowerShell, registry, Scripting Guy!, operating system
  • Hey, Scripting Guy! Can I Change the Default Value of a Registry Key on Multiple Computers?

    Hey Scripting Guy! I have a problem. There is a registry key on several computers that has a default value of “default.” I need to be able to change that default value. I searched the Hey, Scripting Guy! blog and came up with an article written for VBScript . I know I can use WMI in Windows PowerShell 2.0, but the process looks complicated. Can you explain it to me? Is there an easier way? -- CS Hello CS, Microsoft Scripting Guy Ed Wilson here. Right now I have my Zune HD cranked up all the way while
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 30, 2009
    Filed under: Windows PowerShell, registry, Scripting Guy!, operating system
  • Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (11/27/09)

    In this post : Please Clarify This Script You Published Previously How Can I Report a Bug I Found in the Windows PowerShell ISE? How Can I Close an Open Folder on a Network Drive? Can I Automate the Scheduling of Offline File Tasks? Please Clarify This Script You Published Previously Hey, Scripting Guy! I have a question about your Hey, Scripting Guy! post How Do I Back Up Files That Have Been Modified in the Last Day? In the article, you say the following: Next we use the Get-Date cmdlet to retrieve
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 27, 2009
    Filed under: VBScript, Windows PowerShell, Scripting Guy!, WMI, dates and times, scripting techniques
  • Hey, Scripting Guy! How Can I Add a Function to a Profile in Windows PowerShell?

    Hey, Scripting Guy! I have been reading your articles about working with Windows PowerShell profiles, and they are pretty cool. However, I have a question. You mentioned on Monday that I could add a function to a Windows PowerShell profile. I am not sure how I would do that. Can you add a function to the profile you have been working on all week to give me a better idea? -- AM Hello AM, Microsoft Scripting Guy Ed Wilson here. As the hour hand creeps closer to the top of the clock and the evening
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 26, 2009
    Filed under: Windows PowerShell, Scripting Guy!, getting started
  • Hey, Scripting Guy! What's the Deal with the Dash in Cmdlet Names?

    Hey, Scripting Guy! I enjoy using Windows PowerShell, but I do not like the two-word cmdlet names you created for everything. As a matter of fact, I hate the two-word cmdlet names because the dash (-) symbol is hard to type. I guess I will eventually get used to it, but you have to realize that Windows PowerShell as a tool for network administrators is really hard to use. I studied computer architecture and networking protocols at university— not typing. I don’t suppose you can do anything about
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 25, 2009
    Filed under: Windows PowerShell, Scripting Guy!, getting started
  • Hey, Scripting Guy! Why Would I Even Want to Create a Profile in Windows PowerShell?

    Hey, Scripting Guy! Okay, I get that I can create a profile for Windows PowerShell. What I don’t understand is why I would want to create a profile in the first place. It seems to me that Windows PowerShell 2.0 works just fine the way it is. Can you enlighten me a bit? -- VW Hello VW, Microsoft Scripting Guy Ed Wilson here. Today, it is Meat Loaf—not the food , but the singer . After a couple days of beautiful sunny weather, the autumn grays have returned with a vengeance, and it is damp and cool
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 24, 2009
    Filed under: Windows PowerShell, Scripting Guy!, getting started
  • Hey, Scripting Guy! How Can I Use Profiles with Windows PowerShell?

    Hey, Scripting Guy! I would like to personalize the way that Windows PowerShell works. I have been hearing that I can use a thing called a profile to do this, but when I try to find information about profiles, I come up blank. There is no New-Profile Windows PowerShell cmdlet so I do not see how to create such a thing. Can you help me please? -- AC Hello AC, Microsoft Scripting Guy Ed Wilson here. It is another beautiful day in Charlotte, North Carolina—at least it would be. I had an early morning
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 23, 2009
    Filed under: Windows PowerShell, Scripting Guy!, getting started
  • Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (11/20/09)

    In this post : Troubleshooting a Windows PowerShell Script Using the Replace Operator How Can I Get a List of Certificates and Their Expiration Dates? Can I Change a Registry Value on 200 Computers? Can I Use Windows PowerShell to Delete Folders Within a Directory? Can I Use a Script to Connect to IPP Printers Through http://pserver/printer? The Real Answer to the Previous Question Troubleshooting a Windows PowerShell Script Using the Replace Operator Hey, Scripting Guy! I am learning Windows PowerShell
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 20, 2009
    Filed under: Windows PowerShell, registry, Scripting Guy!, text files, operating system , security, scripting techniques, certificates
  • Hey, Scripting Guy! How Can I Quickly Check Stocks with Windows PowerShell?

    Hey, Scripting Guy! I have a customized MSN home page. I really like the new layout, but it is rather inefficient to open Internet Explorer, and wait for a few minutes just to check out the latest stock prices. What I need is a Windows PowerShell script that I can use to quickly retrieve my stock information without the need to open Internet Explorer and scroll down half the page to find a current stock quote. I wrote a Windows PowerShell script that opens a page in Internet Explorer and scrapes
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 19, 2009
    Filed under: Windows PowerShell, Scripting Guy!, scripting techniques, XML
  • Hey, Scripting Guy! How Can I Use a Web Service to Find Weather for a Specific City?

    Hey, Scripting Guy! I thought your script yesterday was pretty cool, but there is a problem with it. Retrieving the weather from a script is awesome; however, I need to know which cities are available. If I want to know the weather in Sydney, Australia (your example), I am all set. I’m sure you can see this coming: I do not live in Sydney and therefore the script is useless. How about displaying a list of available cities so that I can figure out how to use the script? -- NR Hello NR, I am listening
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 18, 2009
    Filed under: Windows PowerShell, Scripting Guy!, scripting techniques, XML
  • Hey, Scripting Guy! How Can I Use Web Services?

    Hey, Scripting Guy! I remember reading about things called “Web services” a long time ago. It seems that I do not hear much about these anymore. Do they really exist, and if so what are they good for? -- GK Hello GK, Microsoft Scripting Guy Ed Wilson here. We have had to batten down the hatches here in Charlotte, North Carolina, as the tropical storm formerly known as Hurricane Ida makes a guest appearance in our neighborhood. The 50-foot tall southern pines that inhabit my yard are doing their version
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 17, 2009
    Filed under: Windows PowerShell, Scripting Guy!, scripting techniques, XML
  • Hey, Scripting Guy! Is There an Easier Way to Work with XML Files?

    Hey, Scripting Guy! I have a file that I need to parse. It is an XML file, and it is very ugly. Who in the world ever thought that an XML file would be better than a plain CSV file? Unfortunately, Microsoft seems to be enamored with XML, and I cannot get away from it. Surely, there must be a better way to work with XML than to go cross-eyed looking at all those slashes and angle brackets! Can you throw a fellow a bone? -- TS Hello TS, Microsoft Scripting Guy Ed Wilson here. It is Friday in Charlotte,
    Posted to Hey, Scripting Guy! Blog (Weblog) by ScriptingGuy on November 16, 2009
    Filed under: Windows PowerShell, Scripting Guy!, scripting techniques, XML
1 2 3 4 5 Next > ... Last »

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker