Solved

Username Wildcards

Posted on 2008-10-23
7
673 Views
Last Modified: 2013-12-04
Is there any way to choose every user on a certain computer when assigning user rights?  That is, is there a wildcard such as %localcomputer%/* that will include every user in the local computer?
0
Comment
Question by:donfornio
  • 3
  • 2
  • 2
7 Comments
 
LVL 5

Expert Comment

by:two_people_hk
ID: 22785840
%USERNAME%
Here are all the windows variables:
http://vlaurie.com/computers2/Articles/environment.htm
But assign user right is better to use Group Policy.
0
 

Author Comment

by:donfornio
ID: 22785988
Thanks for the comment two people hk, but I believe that environmental variable only works for the user currently logged into the computer, or am I wrong?  I'm more looking for something that will select every user account on the local computer, is this possible?
0
 
LVL 5

Accepted Solution

by:
two_people_hk earned 500 total points
ID: 22786288
Yes, you are right.  It only works for the user currently logged in.
If just list out all the users, try use "net users" in command prompt. It can list all the users in local computer.
But there is no any variable which will "select" all the local users.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Closing Comment

by:donfornio
ID: 31509187
The net users command certainly helps, thanks so much for the help!
0
 
LVL 7

Expert Comment

by:namol
ID: 22786336
What are you trying to do? Most system administrators assign permissions based off of group membership. Whenever a user is added to a machine locally, they are put in the machinename\Users group and therefore you could use the machinename\Users group to assign permissions to all the users on the machine.
0
 

Author Comment

by:donfornio
ID: 22786372
Well, the end result here is to deny access to terminal services to all local user accounts and allow only domain user accounts in the administrators group.  So, if I can allow the administrators group, but specifically deny all other local user accounts (whatever they may be) I believe it may solve the problem.
0
 
LVL 7

Expert Comment

by:namol
ID: 22786891
Is this on a terminal server or just denying the user from using mstsc.exe? Take a look at this for restricting certain users from logging on to a terminal server. http://www.petri.co.il/forums/showthread.php?t=10183
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question