Grant RDP access to ONE user on multiple computers !

I want to Grant RDP access to ONE user on multiple computers using PowerShell.
List of computer names are stored in an excel sheet.
Can this be done easily ?
Thanks, Yeleshwar

Hi, this script add users to remote desktop users group.
$InputServers = Import-Csv "c:\servers.csv"
$InputUsers = Import-Csv "c:\users.csv"
$Servercount = 1
$ServerCountTotal = $InputServers.Count
$InputServers | ForEach-Object {
$ServerTemp=$_.ComputerName
"Starting " + $Servercount + " of " + $Servercounttotal + " : " + $ServerTemp
$InputUsers | ForEach-Object {
$objUser = [ADSI]("WinNT://" + $_.Username )
$objGroup = [ADSI]("WinNT://" + $ServerTemp +"/Remote Desktop Users")
$objGroup.PSBase.Invoke("Add",$objUser.PSBase.Path)
"Complete " + $Servercount + " of " + $Servercounttotal + " : " + $ServerTemp
$Servercount++
Servers.csv has a header of “ComputerName” and then a list of servers you want to affect one per line.
Users.csv has a header of “UserName” and then a list of user names Domain/User one per line.
check this blog > http://www.blackops.ca/cms/blog/?p=215

Similar Messages

  • HT1206 Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • Page should be accessed by one user at a time

    Hi friends,
    I have a new requirement where webpage should be accessed by one user at a time.Suppose if one user is using the page ,the other user should not be having the privilage to access tht page.NOw how to go about..If possibel pls help me with the code..
    Thanks in advance..
    Waiting for ur suggestion.

    Finally i am using a method..
    <script language="JavaScript">
      window.onbeforeunload = confirmExit;
      function confirmExit()
          document.LoginForm.action="next.php";
          document.LoginForm.submit();
        return "Are you want to exit this page?";
        return false;
    </script>
    </HEAD>
    <BODY onbeforeunload="confirmExit()">
    <form name="LoginForm">
    </form>
    </body>
    </html>I am using onbeforeunload ,so when ever the page is refreshed or user tries to move from the page i call function from tht i go to a page where i do file creation . when ever user access the page, simultaneously other users wiil be detained access for tht page..
    But the problem i am facing here is..whenever the user tries to change focus from the page a pop up comes up saying do u want to continue or not..if user press cancel actually the control has to remain in the same page but still the control is passed to the different page...
    pls advice on this..

  • After installing Mountain Lion, why is there Yahoo access for one user but not another?--both are administrators.

    After installing Mountain Lion, why is there Yahoo access for one user but not another?--both are administrators.

    We've had several instances where we have had to run chkdsk on arrays with over 1m files. Average completion time is approximately 72 hours. The maximum downtime window they have available is the 64 hour weekend window. File sizes and number of files were
    much smaller then than they are now.
    The idea, in theory, was to use VHDs to compartmentalize the data into smaller volumes which could be more easily managed. It would also improve performance when transferring these compartments of data as they would use sequential read/write rather than
    fragmented/random. This idea was never fleshed out in entirety, they don't split data up into little containers, but simply into big ones per project. Hence the 11m files in one container that I am currently trying to diagnose.
    Some other important facts: The VHD in question is mounted in B:/project/ as this server also allows remote workers to log in, but they are restricted to see only data in E:. Disks A-D are hidden via group policy.
    Update: icacls is failing on a large number of files within this dataset. I counted the path characters to ensure it wasn't the 255 character limit I was encountering and verified that the paths being blocked are only about 150 characters long. Once it finishes,
    I'll have to try taking ownership and then re-running it. At this point I still have no idea how long to expect. I'm running out of time as the environment will be in use again at 9AM tomorrow morning.

  • 'BBPSC11' error in Monitor SC for one User having multiple positions but on

    Hello,
    'BBPSC11' error in Monitor SC for one User - having multiple positions in org structure - but having one BP code associated to all positions.
    We have one BP ID associated to multiple positions of the same user - in multiple org structure.
    The org unit is refered as one Project and like wise we have multiple projects people worked on.
    Once the Proj is over we move the Users from one Proj (Org unit) to another Proj, with new Position created copying the old and associate old BP code to it.
    With this when we go for Monitor SC option - enter User ID in Created By field - old SC are listed but we are getting error if we click on the Detail icon.
    Error:The Internet Transaction Server could not start the transaction "BBPSC11" because of the following error: Attribute for user contains errors. Inform systemadmin. .
    AD

    Hi,
    Pl. verify the user with txn-bbp_attr_check. It could be that the org. relationship of the user changed with what was captured on shopping cart. Also use txn-users_gen to repair the user.
    Regards,
    Sanjeev

  • Cannot access my VZ webmail from multiple computers

    Cannot access my VZ webmail from multiple computers.  I cannot get the webmail from home and then from my office.  I just get a blank screen from my office pc.  ???????
    Thanks JIm

    Works fine for me....I'm getting it on 3 very different systems and multiple browsers. I have noticed though that *sometimes* IE9 doesn't like certain pages so I have to check the compatibility view option for the web page and that has cleared it up every time.

  • Can I access my itunes account from multiple computers?

    Can I access my itunes account on multiple computers?

    What do you mean access?
    You can certainly sign into your account from any computer with itunes.
    Your content will only be where you put it.  You can put it/copy it wherever you like.
    In some countries you can redownload some itunes purchased content:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Setting access for one user

    Hi,
    Our client has ACS server and implemented AAA fro logging into switches and routers through ACS which is being cofigured RADIUS . They are telnet into rotuers and switches from any user but they are want to setting access from only one user . Can someone plz tell me what can i do to solve yhis problem ?

    Hi,
    If I understand this right, you have multiple users that can access the routers and switches right now but would like it so only 1 username has access?
    If so, you could use NARS (network access restrictions) and deny access to everyone else but the one specific user.
    Just select
    1.Group Setup
    2.Select the group which "already has" router switch access, edit the group settings
    3.Then scroll down to the "per group defined network access restrictions" Enable it with a checkmark.
    4. Select deny calling/point
    5. AAA client = routers and switches (NDG)
    6. Ports = *
    7. Address = *
    8. Hit enter and the new rule will be added to the window above.
    9. Click submit (not submit and restart until you create the other NAR for the other group)
    ***Remember that groups that are mapped to and outside group (ldap, AD) will be able to connect to your routers and switches UNLESS to tell the ACS not to. By default the ACS doesn't know not to let USER1 access the routers but not allow USER2.
    That being said, you'll need to deny access to your routers and switches (network device group) to all groups that are not allowed to connect to those devices.
    Click submit and restart but remember this will stop authenticating users for the time its restarting.
    Hope this helps and feel free to ask anymore questions.
    Craig
    Pls rate helpful posts.

  • How can I grant Application access to a user via API ) programattically

    how do I grant access to a portal user from API
    I want to grant access to a user from an API, ie I need a
    command to grant "SCOTT" access to "EXAMPLE_APP" APPLICATION as
    an end user?

    Hi,
    I am assuming that you have already updated the EUL in the Administrator Edition, correct? If not, open Discoverer Administrator and login to the database you want to connect to. You must use your EUL user name which I assume has already been created and assigned the correct privileges in the database. You will be asked to update your EUL. Follow the prompts.
    Once logged into the EUL, go to Tools \ Privileges and find the user that you want to give administrator access to.
    Hopefully, this answers your question.
    Regards,
    Nancy

  • ITunes accounts can be accessed under one User but not a second User.

    Hi
    I'm having problems setting up iTunes on a new PC I've recently purchased. On my old PC - (Vista), myself (David) and my wife (Chris) had different Windows Users accounts, both with separate iTunes accounts which we could access with no problems.
    On my new Pc (Windows 7) I have downloaded iTunes and can access my iTunes account with my ID and password when the PC is logged in as 'David' as the User, as can my wife BUT when the PC the PC is logged in as my wife as the  User 'Chris' neither of us can access our iTunes account with our relative ID and passwords. We get the message.. "The iTunes Store is temporarily unavailable. Please try again later.".
    I have seen this sentence on Google and on various forums including this one but cannot find a solution which fits my problem which is our iTunes accounts can be accessed when the PC is logged in under one User but not a second User.
    Has anyone have ideas to attempt to resolve this issue?
    Thank you

    Hi DavidG56,
    If you are having issues connecting to the iTunes Store from one of the user accounts, you may find the following article helpful:
    Apple Support: Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    - Brenden

  • One user appearing multiple time in Users on System report

    Hi,
    While checking the logging report I found one user is appearing multiple times. Is this the normal behaviour of Hyperion of Is there any setting in Hyperion to display one user only once.
    Also can we control the users the from loging into systme multiple time at a time.
    Thanks,
    Ajaya Kumar

    If multiple people know the username and password they can definitely be shared. This is a violation of your licensiing and is a major reason why most SOX departments require Active Directory linking. For testing purposes I have created native IDs to be shared among people so that I know they are identical.

  • Make PDF formular only accessable for one user at the same time?

    Hello!
    I designed a formular which needs to be filled in by different departments of our company. Unfortunatly the DF can be opened by several people at the same time. Is there any way to "lock" the PDF, fot that only one user has access to the formular at the same time, like e.g in MS Word Docs?
    Please help, I coudn´t find a solution myself.
    Thanks!
    K.B.

    This needs to be done on an OS level not by the application.

  • Why are some applications only accessable to one user

    Microsoft Office was installed using one user account. I tried to access it from another user account and it fails to launch with an error message. Also Parallels Desktop cannot find existing virtual machines when I attempt to access it from another user account.

    Because the copyright holder only allows that. Nobody on these boards will know the reason for it.
    (119066)

  • One user for multiple tablespaces

    Hello.
    Oracle 11g enterprise.
    Whenever I setup a new tablespace on my server, I create a user for each tablespace on the server.
    Is is possible to create only one user for all tablespaces on a server?
    What is the easiest way to create this one user to have all roles and privileges across all tablespaces?
    Any suggestions are greatly appreciated.

    I would seriously question a design with 'N' databases (whether they are on 1 or more or 'N' servers is not the issue) and DBLink from each of the databases to every other database.
    Not only is it going to be hell to manage (how and when can you decide to shutdown a database for maintenance / patching / server/hardware maintenance when you have N-1 others connecting to it online), but it indicates a possibly high level of data duplication.
    So we still revert to why you think you need that many databases and that many users and that many database links.
    As has been pointed out, there is no relation between tablespaces and DBLinks. NONE whatsoever.
    As for tablespaces and users, I can have
    a. One Tablespace and 10 database accounts with any 1 to 10 of the accounts storing data objects in the tablespace
    b. Ten Tablespaces and 1 database account storing data objects across all 10 tablespaces
    c. 100 database accounts but only 1 to N of them having any data objects, the others only doing SELECT/INSERT/UPDATE/DELETE on objects owned by 1 to N schemas. (This one schemas all being in 1 tablespace or M tablespaces).
    There is no one-to-one correspondence between users and tablespaces necessary. Tablespaces are for logical grouping of data objects.
    I keep referring to data objects as these (Tables, Indexes, LOBs, IOTs, Clusters etc) require storage. Objects like Sequences do not require separate tablepaces although they have persistent values. Objects like DBLinks and Views are only definitions and require no storage (other than in the data dictionary !). Objects like Procedures and Packages and Triggers are code objects and require no storage (other than in the data dictionary).
    So :
    1. Such a design needs to be questioned.
    2. Even if you need such a design, do not tie DBLinks to Tablespaces.
    3. Even if you need DBLinks, do not tie Users to Tablespaces.

  • Cisco ACS 4.2 one user in multiple local groups

    Currently i have group mapping like this
    ACS Groups           Window Groups
        Grp-A-B             Grp-1 and Grp-2
        Grp-A                        Grp-1
        Grp-B                        Grp-2
    For example currently one user test1 is part of both groups 1 and 2 in windows and is mapped to Grp-A-B in ACS. Is it possible if i delete the Grp-A-B mapping in ACS and can see the user test1 speratley in both groups ( Grp-A and Grp-B) in ACS?            

    Salam Muhammad,
    If you have a local user in ACS, that user can not be a member of two groups at the same time.
    The same concept applies to the external users. They can not be mapped to two different groups at the same time.
    If you remove the Grp-A-B configuration, the user test1 will be mapped to the first group in the list because ACS 4.2 process the goup mapping in order:
    '''snip'''
    Group Mapping Order
    ACS always maps users to a single ACS group; yet a user can belong to more than one group set mapping. For example, a user named John could be a member of the group combination Engineering and California, and at the same time be a member of the group combination Engineering and Managers. If ACS group set mappings exist for both these combinations, ACS has to determine to which group John should be assigned.
    ACS prevents conflicting group set mappings by assigning a mapping order to the group set mappings. When a user who is authenticated by an external user database is assigned to an ACS group, ACS starts at the top of the list of group mappings for that database. ACS sequentially checks the user group memberships in the external user database against each group mapping in the list. When finding the first group set mapping that matches the external user database group memberships of the user, ACS assigns the user to the ACS group of that group mapping and terminates the mapping process.
    '''snip'''
    Reference:http://goo.gl/cvc474
    HTH
    Amjad
    Rating useful replies is more useful than saying "Thank you"

Maybe you are looking for

  • How to track my iphone when i lost it

    pls tell me when i lost my Iphone then how i track this..

  • Incorrect version number and installation date of Firefox after upgrading

    My home desktop PC equipped with Mozilla Firefox v4.0 has recently been upgraded to v4.0.1 through an automatic updating. However, as noted from Windows 7 "Programs and Features", the latest version number and its installation date are not correctly

  • Nimbuzz not working on Nokia 5130 Xpress Music

    Hi guys, I'm Mandaar from India. I have problem with running Nimbuzz (or any other chat application for that matter eg. ebuddy messenger or trutap) on my 5130 Xpress Music. I use a Vodafone GPRS Plan. I would like to inform you guys that all the othe

  • Keyboard controls problem

    I recently got a Mac for the basically incredible accessibility it gives me, as I am blind. I am pretty familiar with iTunes, but am getting frustrated by two points. Considering I can use iTunes as much as any sighted person, I find the little indep

  • Swith from Aperture to Lightroom?

    Considering switch from Aperture to Lightroom (have used Aperture for 6 years, but also PS). Aperture is giving me "unsuppoerted format" notices on existing files. If I go to Lightroom, will I be able to go back into my old Aperture libraries?