#1 01 Feb 2006 15:46

Registered: 01 Feb 2006
Posts: 1

New command line for ss64 - windows

I'd like to sugest you to introduce a new command in windows xp.

FINDGRP (NT 4 Resource Kit)
Usage: findgrp [domain] [user_domain]\[user_name]

Where [domain] may contain NT security groups in which the specified user accou
nt exists.
       [user_domain] is the Domain in which the user account exists.
       [user_name] is the account for which you want to retrieve group informati

Note: [domain] and [user_domain] may be the same.
       [domain] should be "localmachine" when listing groups on your workstation

Equivalent Linux:

group file

I needed a list of the localgroups in which a Domain user is created and it was the only way I could find it (the command showgrps works only for global groups).

I use your site for 3 years. I'd like to compliment the site owner for the good work He /She has done.
What I think is the most helpfull feature is the "Equivalent" linux / windows commands section. Many times you know the command in Linux and would like to use it in Windows...

Best Regards

Luis Franco


#2 02 Feb 2006 00:09

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,005

Re: New command line for ss64 - windows

Interesting, I've never had a need for that command yet, but I'll have a look into it.


#3 19 Apr 2006 18:21

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,005

Re: New command line for ss64 - windows

When working with local groups I find WSH commands offer the best flexibility, e.g the script below will disable the Guest user account on a remote server - you can easily modify this to cope with multiple machines/groups/users

Dim objUser
Dim strUser
Dim objComputer
Dim strComputerName

strComputerName = "Server052"

Set objComputer = GetObject("WinNT://" & strComputerName)  '- Bind to the local computer
Set objUser = objComputer.GetObject("user", strUser)       '- Get UserAccount

objUser.Put "UserFlags", objUser.UserFlags Or UF_ACCOUNTDISABLE
Set objUser = Nothing
Set objComputer = Nothing


#4 10 Jul 2006 17:54

New Member
Registered: 10 Jul 2006
Posts: 1

Re: New command line for ss64 - windows

Just another addition for the Windows 2k/xp/2k3 command lines usefull when combined with cacls to fix some really messed up permissions.

TAKEOWN [/S system [/U username [/P [password]]]]
        /F filename [/A] [/R [/D prompt]]

    This tool allows an administrator to recover access to a file that
    was denied by re-assigning file ownership.
Parameter List:
    /S           system          Specifies the remote system to
                                 connect to.
    /U           [domain\]user   Specifies the user context under
                                 which the command should execute.

    /P           [password]      Specifies the password for the
                                 given user context.
                                 Prompts for input if omitted.

    /F           filename        Specifies the filename or directory
                                 name pattern. Wildcard "*" can be used
                                 to specify the pattern. Allows

    /A                           Gives ownership to the administrators
                                 group instead of the current user.

    /R                           Recurse: instructs tool to operate on
                                 files in specified directory and all

    /D           prompt          Default answer used when the current user
                                 does not have the "list folder" permission
                                 on a directory.  This occurs while operating
                                 recursively (/R) on sub-directories. Valid
                                 values "Y" to take ownership or "N" to skip.

    /?                           Displays this help message.

    NOTE: 1) If /A is not specified, file ownership will be given to the
             current logged on user.

          2) Mixed patterns using "?" and "*" are not supported.

          3) /D is used to suppress the confirmation prompt.


Board footer

Powered by FluxBB