Announcement

Collapse
No announcement yet.

Will ifmember detect computer account groups?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Will ifmember detect computer account groups?

    Hi all

    I was to run a batch file on startup (not logon) of the PC. I want to use ifmember to set the screen resolution. So if the computer account is a member of res800600 group run command to set screen resolution to 800 x 600. But will ifmember check the group that computer account is a member of or will it check the local SYSTEM account?

    Thanks
    Server 2000 MCP
    Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

  • #2
    It uses the current user account.

    Originally posted by http://www.microsoft.com/windows2000/techinfo/reskit/tools/new/ifmember-o.asp
    IfMember is a command-line tool that checks whether the current user is a member of a specified group...IfMember will only be aware of groups on the local computer, on the computer's domain, and on trusted domains
    Andrew

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

    Comment


    • #3
      That is what is suspected so i suppose the question now is what user account do startup scripts (set in GP) run under?
      Server 2000 MCP
      Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

      ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

      Comment


      • #4
        system account as far as i know...
        Marcel
        Technical Consultant
        Netherlands
        http://www.phetios.com
        http://blog.nessus.nl

        MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
        "No matter how secure, there is always the human factor."

        "Enjoy life today, tomorrow may never come."
        "If you're going through hell, keep going. ~Winston Churchill"

        Comment


        • #5
          Give this one a try:
          Code:
          adfind -default -nodn -nolabel -f samaccountname=%COMPUTERNAME%$ memberof | findstr /i <GROUP_NAME>
          IF %ERRORLEVEL% <bla bla bla>
          adfind: http://www.joeware.net/win/free/tools/adfind.htm
          Guy Teverovsky
          "Smith & Wesson - the original point and click interface"

          Comment


          • #6
            Looks like it will do the job nicely

            Thanks Guy
            Server 2000 MCP
            Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

            ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

            Comment

            Working...
            X