Announcement

Collapse
No announcement yet.

Map Drive According to User Groups

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Map Drive According to User Groups

    Hi,

    i am complete novice when it comes to scripts. here is my problem..

    i am trying to add users to the group they belong to. i did a test to make sure it works. this is what i did..

    1. created a group named "SageUsers"
    2. add a user in this group named "test"
    3.domain name is "ItNetworkSupport"
    4.create a folder named "common" which will be used as a share and enabled sharing on the folder. Do i need to share the folder?

    This is the script exactly i got from another thread: Is there anything missing i.e any variables if so what?

    ifmember "itnetworksupport\SageUsers" || net use j: \\pdcserver\common

    this is the error i get when i execute the script, see attachment
    please help...

    Thanks in Advance!!
    Attached Files

  • #2
    Re: Map Drive According to User Groups

    Originally posted by Zaf
    Hi,

    i am complete novice when it comes to scripts. here is my problem..

    i am trying to add users to the group they belong to. i did a test to make sure it works. this is what i did..

    1. created a group named "SageUsers"
    2. add a user in this group named "test"
    3.domain name is "ItNetworkSupport"
    4.create a folder named "common" which will be used as a share and enabled sharing on the folder. Do i need to share the folder?

    This is the script exactly i got from another thread: Is there anything missing i.e any variables if so what?

    ifmember "itnetworksupport\SageUsers" || net use j: \\pdcserver\common

    this is the error i get when i execute the script, see attachment
    please help...

    Thanks in Advance!!
    Can you post your script please.

    The error is telling us there is a problem with the syntax.

    Comment


    • #3
      Re: Map Drive According to User Groups

      Originally posted by wullieb1
      Can you post your script please.

      The error is telling us there is a problem with the syntax.

      ifmember "itnetworksupport\SageUsers" || net use j: \\pdcserver\common



      this is it, like i said im complete novice.

      thanks

      Comment


      • #4
        Re: Map Drive According to User Groups

        check out my post here This shows you how to map drives this way using vbs. It also has the ability (if you want) to map a drive with different logon credentials.

        hope it helps


        brian

        Comment

        Working...
        X