Browse by Tags

Tagged Content List
  • Blog Post: How Can I Purge All the Print Jobs on a Windows 2000 Print Server?

    Hey, Scripting Guy! How can I purge all the print jobs on a Windows 2000 print server? -- KC Hey, KC. This is one of those questions we hate, not because we don’t have an answer for it - we do - but because we have to temporarily abandon one of the core tenets of the Scripting Guy Way of Life. That...
  • Blog Post: How Can I Use Windows PowerShell to Determine the Status of the Guest Account?

    Hey, Scripting Guy! How can I use Windows PowerShell to determine whether or not the Guest account has been disabled on a computer? -- RB Hey, RB. You know, last week at this time the Scripting Guy who writes this column was on vacation, a vacation spent primarily sitting outside in the sun, only...
  • Blog Post: How Can I Determine if a User is a Local Administrator?

    Hey, Scripting Guy! Some of the things we do in our logon scripts require the user to be a local administrator. How can the script tell if the user is a local admin or not? -- GM, Denver, CO Hey, GM. The best way to do that is to check the membership of the local Administrator’s group and see if the...
  • Blog Post: How Can I Rename a User Account in a Windows NT 4.0 Domain?

    Hey, Scripting Guy! How can I rename a user account in a Windows NT 4.0 domain? -- JK Hey, JK. You know, as this column is being written it’s a Monday here in Seattle, and it’s raining. And yes, we know what you’re thinking: when isn’t it raining in Seattle? Unfortunately, though, our weather is much...
  • Blog Post: Use PowerShell to Create Local Windows Groups

    Summary: Learn how to use Windows PowerShell to create local Windows groups in this step by step Scripting Guy blog post. Hey, Scripting Guy! I have to create some local security groups on my Windows 2008 server. I want to use Windows PowerShell 1.0 because I have not upgraded Windows PowerShell...
  • Blog Post: How Can I Distinguish Between Local Users and Domain Users?

    Hey, Scripting Guy! When using a script to return members of the local Administrators account, how can I distinguish between local users and domain users? -- KS Hey, KS. You know, many years ago there was a TV game show called What’s My Line? The premise of the show was that some person with an unusual...
  • Blog Post: How Can I List All the Users in an NT 4.0 Domain?

    Hey, Scripting Guy! How can I list all the users in an NT 4.0 domain, along with their description and logon script path? -- HH Hey, HH. Ah, yes NT 4.0. Windows NT 4.0 reminds us of dandelions: it doesn’t matter whether you like dandelions or not, there’s simply no way to get rid of them. The same...
  • Blog Post: How Can I Get the Full Name of a Windows NT 4.0 User When All I Have is Their Logon Name?

    Hey, Scripting Guy! How can I determine the full name of a user in a Windows NT 4.0 domain when all I have is the user’s logon name? -- NH Hey, NH. In case you’re wondering, after a less-than-auspicious beginning the Scripting Guy who writes this column started to get used to swimming laps every night;...
  • Blog Post: Use PowerShell to Enable or Disable a Local User Account

    Summary: Microsoft Scripting Guy Ed Wilson shows how to use Windows PowerShell to enable or to disable a local user account. Hey, Scripting Guy! I need to enable local user accounts on my Windows Server 2008 servers. I have to use Windows PowerShell 1.0 because we are not going to upgrade to Windows...
  • Blog Post: Use PowerShell to Add Local Users to Local Groups

    Summary: Microsoft Scripting Guy Ed Wilson shows how to add local users to local groups using Windows PowerShell. Hey, Scripting Guy! I have enjoyed your posts this week. It is amazing how often I need to enable the Local Administrator account, or create a new local user or group. One thing you...
  • Blog Post: How Can I Verify that ADAM is Installed?

    Hey, Scripting Guy! How can I verify that ADAM is installed? -- CW Hey, CW. Although former President Ronald Reagan is usually given credit for the phrase “Trust but verify,” we’ve always thought that sounded more like the sort of thing a system administrator would say: “Of course I trust you when...
  • Blog Post: How Can I Determine if the Local Administrator Account has been Renamed on a Computer?

    Hey, Scripting Guy! How can I determine if the local administrator account has been renamed on a computer? -- KF Hey, KF. You know, our first thought was to tell you to use ADSI and try to bind to the local administrator account on the computer; if that failed, that would mean that there was no account...
  • Blog Post: PowerShell Community and the Windows System Administration Tool

    Summary : See how guest blogger, Rich Prescott, leveraged the Windows PowerShell community as he built his popular ArPosh Client System Administration tool. Microsoft Scripting Guy, Ed Wilson, is here. We are really starting the new year off correctly. We have another very strong guest blogger today...
  • Blog Post: Hey, Scripting Guy! How Can I List All the Groups in a Windows NT 4.0 Domain?

    Hey, Scripting Guy! How can I list all the groups in a Windows NT 4.0 domain? -- MN Hey, MN. It’s Martin Luther King, Jr. Day here in the USA, and, normally, you’d expect the Scripting Guy who writes this column to start things off by relating some irrelevant anecdote about Dr. King...
  • Blog Post: How Can I Determine When a User Last Changed His or Her Password?

    Hey, Scripting Guy! How can I determine when a user last changed his or her password? -- MG Hey, MG. A long time ago one of the Scripting Guys worked at a local university. In one of the departments there it was easy to determine when a user last changed his or her password: that’s because the administrative...
  • Blog Post: Use PowerShell to Create Local User Accounts

    Summary: Microsoft Scripting Guy Ed Wilson shows how to use Windows PowerShell to create local user accounts. Hey, Scripting Guy! I need to be able to create some local user accounts. We are still using Windows PowerShell 1.0 on our Windows 2008 servers, and on our Windows Vista workstations. Therefore...
  • Blog Post: How Can I Configure an Expiration Date for a Local User Account?

    Hey, Scripting Guy! How can I configure an expiration date for a local user account? -- GW Hey, GW. You know, it’s amazing how quickly things change in the fast-paced world of system administration scripting. For example, in Monday’s column we announced that, as time allowed and whenever possible...
  • Blog Post: Use Parameter Sets to Simplify PowerShell Commands

    Summary : In this article, Microsoft Scripting Guy Ed Wilson talks about using parameter sets to simplify Windows PowerShell commands. Microsoft Scripting Guy Ed Wilson here. I had a great time the other night talking to Windows PowerShell MVP Shane Hoey before my presentation to the PowerShell...
  • Blog Post: Hey, Scripting Guy! How Can I Change the Passwords of Multiple Local Computer Accounts?

    Hey, Scripting Guy! We have certain accounts that are local accounts. These accounts are created when the computer is built, and the passwords are set and that is it. For as long as the computer exists, these accounts are never touched, and the passwords are never changed. To make matters worse, if indeed...
  • Blog Post: How Can I Determine Whether or Not a Group Has Any Members?

    Hey, Scripting Guy! How can I check a computer and find out whether the Remote Desktop Users group has any members? -- ET Hey, ET. Somewhat surprisingly, ADSI doesn’t have any sort of NumberOfMembers property, a property that could tell you - at a glance - how many members are in a group. But that...
  • Blog Post: How Can I Prevent a Local User From Changing His or Her Password?

    Hey, Scripting Guy! How can I configure a local user account so that the user can’t change his or her password? -- DC Hey, DC. The secret here lies in the mysterious userFlags attribute. We’ll show you how to set a user account so that the user can’t change his or her password, then we’ll fill you...
  • Blog Post: How Can I Get a List of All the Local Users Who Have an Expiring Password?

    Hey, Scripting Guy! How can I get a list of all the local users who have an expiring password? -- JM Hey, JM. Thanks for the question. Before we answer it, however, we have a question for you : you don’t by any chance have any spare dice lying around, do you? That’s right, dice, the kind you use when...
  • Blog Post: Hey, Scripting Guy! How Can I Create More Than One User, Assign Attribute Values, and Assign the Users to Groups?

    Hey, Scripting Guy! I enjoyed your article yesterday about creating a local user account. However, for my purposes I need to be able to create more than one user. Also I would like to be able to assign values to attributes such as the description. If it is not asking too much, I would also like to be...
  • Blog Post: How Can I Rename a Local User Account on a Windows XP Computer?

    Hey, Scripting Guy! How can I rename a local user account on a Windows XP computer? -- TY Hey, TY. You know, nowadays the “in” thing is to poke fun at Microsoft and Windows XP. We know: we’ve seen the new commercials from that one computer company. (Remember, the computer company that used to be good...
  • Blog Post: How Can I Disable the Guest Account on a Computer?

    Hey, Scripting Guy! How can I determine whether or not the Guest account is enabled on a computer and, if it is, disable it? -- PR Hey, PR. At last: a question for which there is a very simple, very straightforward answer. This isn’t to minimize the importance of the task: in general, it’s highly...