Solved

Username Wildcards

Posted on 2008-10-23
7
672 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Question has a verified solution.

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

In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
You can provide a virtual interface for remote stakeholders in a SWOT analysis through a Google Drawing template. By making real time viewing and collaboration possible, your team can build a stronger product.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now