Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13565

Logon Scripts

$
0
0

Hi All,

Is there any problem with the following snipet from a script, it's very similar to the other mapping, see below

If InStr(strGroup, "CN=DIRECTORS") then

    wshNetwork.MapNetworkDrive "j:","\\servername\Directors"  

END If

If i combine the mapping line in with another group of mappings all is ok.

If InStr(strGroups, "CN=ACCOUNTS") Then

    wshNetwork.MapNetworkDrive "p:","\\servername\accounts"
    wshNetwork.MapNetworkDrive "t:","\\servername\accountsdb"
    wshNetwork.MapNetworkDrive "q:","\\servername\quickbooks2012"  
    wshNetwork.MapNetworkDrive "j:","\\servername\Directors"

END If

The Directors group look the same properties as the rest, but cant see why it would't map, on the first example.

Many Thanks

Richard


Viewing all articles
Browse latest Browse all 13565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>