Hey, Scripting Guy! I have a series of strings that look something like this: xxxxyyyyyyxx. How can I extract just the y’s?– JB Hey, JB. And, yes, it is a Friday. But, hey, it’s just a coincidence that we happened to pick an easy question on a Friday, the day we’re itching to get out…
Year: 2006
How Can I Tell Which Users are Connected to a Print Queue?
Hey, Scripting Guy! How can I tell which users are connected to a print queue?– RE Hey, RE. You know, if your printers are anything like the ones the Scripting Guys are used to working with then it’s easy to tell which users are connected to a print queue: all you have to do is…
How Can I Change the Size of a Page File?
Hey, Scripting Guy! How can I change the size of a page file?– HM Hey, HM. You know this is a somewhat unusual question for us. Why? Because there’s a very easy and straightforward answer, which doesn’t involve weird workarounds, doesn’t need to be accompanied by a bunch of excuses, and works the same on…
How Can I Tell Whether a Logon Script is Running on a Workstation or on a Server?
Hey, Scripting Guy! How can I tell whether a logon script is running on a workstation or on a server? If the script is running on a server, I want to skip a portion of the script.– RT Hey, RT. You know, a few years ago one of the Scripting Guys helped a fellow Microsoft…
How Can I Get Total Size and Number of Items in an Office Outlook Folder?
Hey, Scripting Guy! How can I get the total number of items – and the total size – of all the items in my Inbox and Sent Items folders?– CS Hey, CS. You know, one of the Scripting Guys has a foolproof method for determining this information. What does he do? Nothing; instead, he just…
How Can I List All the Sub-OUs in an OU?
Hey, Scripting Guy! How can I list all the sub-OUs in an OU? That includes any OUs that might be in those sub-OUs.– JE Hey, JE. If you’re the least bit familiar with this column then you know that we Scripting Guys love to answer questions that involve searching Active Directory. That’s because we never…
How Can I Determine Which Day of the Year a Date Falls On?
Hey, Scripting Guy! How can I determine which day of the year a date falls on? For example, March 2, 2006 is the 61st day of the year.– TW Hey, TW. You know, we almost feel guilty about answering this question. Why? Well, after all, we can answer it by writing just one line of…
How Can I Take Ownership of a File or Folder By Using a Script?
Hey, Scripting Guy! How can I take ownership of a file or folder using a script?– RV Hey, RV. Interesting question. In the past, the Scripting Guys have tried to take ownership of a Porsche 911, beachfront property in Hawaii, and the New York Yankees; all of those efforts failed. Considering our track record, we…
How Can I Change the Font Name and Size for an Entire Word Document?
Hey, Scripting Guy! How can I change the font name and size for an entire Word document?– CD Hey, CD. You know, this question reminded us of how old we Scripting Guys are getting – well, all of us except for Jean, of course, who continues to get younger and more beautiful every day. Note….
How Can I Remove All the Black-and-White Printers on a Computer?
Hey, Scripting Guy! On a Windows XP computer, how can I remove all the black-and-white printers, leaving only color printers?– JL Hey, JL. You know, in one classic episode of the Simpsons, Bart, in the throes of a sugar high, joins the Junior Campers. The next morning, realizing what he has done, he vows to…