The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
(image)
Hey, Scripting Guy! How can I change a user’s primary group?-- AS(image) (image) (image)
Hey, AS. You know, one of the Scripting Guys knows how to make an incredibly rich rocky road brownie, a brownie that’s topped with melted marshmallows and walnuts and chunks of dark chocolate and all sorts of other good stuff. Now, some ...
(image)
Hey, Scripting Guy! How can I increment the last line in a text file; that is, if the last line is 1, indicating we’ve done one backup, I need to increment it to 2, indicating that we’ve now done a second backup.-- TH(image) (image) (image)
Hey, TH. If you’ve ever been to a carnival then you’ve no doubt been tempted by some...
(image)
Hey, Scripting Guy! How can I get a list of all the users whose passwords never expire?-- NW(image) (image) (image)
Hey, NW. As you probably know, Internet gambling is illegal in the USA. That’s too bad, because if it wasn’t we’d be willing to bet $10 that the answer to your question will be this: search Active Directory.
And...
(image)
Hey, Scripting Guy! How can I determine the 20 largest files on a computer?-- PW(image) (image) (image)
Hey, PW. Having recently returned from a vacation in Europe, the Scripting Guy who writes this column now understands that there are different ways to do things. Some of these would be difficult to adjust to on a regular basis: ...
(image)
Hey, Scripting Guy! How can I find all the users with remote access permissions; that is, all those with the Dial-In or VPN property set to Allow?
-- RC
(image)
Hey, RC. You know, it seems like people are always looking for something: true love, happiness, the meaning of life...