You are not logged in.
Pages: 1
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
on.
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
Offline
Interesting, I've never had a need for that command yet, but I'll have a look into it.
Offline
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
Const UF_ACCOUNTDISABLE = 2
strComputerName = "Server052"
strUser="Guest"
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
objUser.SetInfo
Set objUser = Nothing
Set objComputer = Nothing
Offline
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]]
Description:
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
sharename\filename.
/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
subdirectories.
/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.
Offline
Pages: 1