Hanging Login Script for Unmappable Drives

I currently have a login script running on laptops at my work. We consist of two sites, each with their own domain. At Site 1 several drives are mapped using GPOs as the laptops are all bound to Site 1. If users head over to Site 2 though, they experience
hanging times (that I am only able to contribute to the fact that Site 2 can't resolve these aformentioned drives). Login time can be up to about 40 seconds compared to the normal 4 seconds when at Site 1. Is there a way to just tell the PC to skip over these
drive mapping if they aren't found immediately?

Hi,
Have you tried to use Net use command to finish this job?
Use the Net Use command to map or disconnect a drive
You can use the net use command for batch files and scripts. To use the net use command to map or disconnect a drive:
To map a network drive:
Click Start, and then click Run.
In the Open box, type cmd.
Type net use x: \\computer name\share name, where x: is the drive letter you want to assign to the shared resource.
To disconnect a mapped drive:
Click Start, and then click Run.
In the Open box, type cmd.
Type net use x: /delete, where x: is the drive letter of the shared resource.
Roger Lu
TechNet Community Support

Similar Messages

  • Secure login script for my site

    I can not seem to find a idiot proof login script for my
    site, can someone help out PLEASE i'm going in sain!!!
    can not be be that hard or it is?
    thanks for any help.

    Well if you want something really easy to use, and are
    willing to lay down a bit of dough, check out this DW extension.
    http://www.interaktonline.com/Products/Dreamweaver-Extensions/MXUserLogin/Overview/
    I have it, and it's pretty simple to use.

  • Login script not mapping drives for users

    I am in the process of configuring a new Windows 2008 terminal server in an existing Windows 2003 domain.  The TS is installed on a member server running Windows Server 2008 SP2.  The problem is that the domain login script (set in group policy) does not seem to be working for the users.  
    I have a special TS group policy for the new terminal server and have enabled loopback processing on the default domain policy. The only setting configured in the TS policy is the location of the user's terminal server roaming profile. This seems to be working.  Other than the login script, other elements of the domain-level group policy, such as folder redirection, seem to be working. When I run the GP result tool on the terminal server, it shows all of the appropriate group policies from both the TS policy and the domain-level policy, including the login script.  This login script is vital, since it does drive mapping for a bunch of resources on the domain that users need to run certain programs.  The odd thing is that the login script runs for the Administrator account, which uses a separate group policy that has inheritance blocked.
    Any help would be appreciated!
    Laurie

    I realize this is old, but for anyone who comes here after me, here goes.  What i found, is that instead of running a vbs script to map the drives, i run a vbs script to get the parameters i need, then i run a batch file from the vbs and pass it the
    parameters.  For some reason, when the logon script is run as a batch file, all of the drives map, even for users who are local admins.  It seems to run in the users current context, unlike a vbs script.  Here is an example :
    ' maps a shared documents folder "S:/" to the same folder as the OU that the user is in.
    Set objSysInfo = CreateObject("ADSystemInfo")
    strUser = objSysInfo.UserName
    Set objUser = GetObject("LDAP://" & strUser)
    strUserName = objUser.samAccountName
    strOUPath = objUser.Parent
    arrContainers = Split(strOUPath, ",")
    arrOU = Split(arrContainers(0), "=")
    strOU = arrOU(1)
    Set objShell = CreateObject("WScript.Shell")
    objShell.Run "\\domainname\NETLOGON\Login.bat """ & strOU & """", , TRUE
    And the batch file takes the parameters like so :
    :: Initialize variables
    set parentOU=%~1
    :: Delete all known shares
    net use s: /delete
    :: Map all known shares
    net use S: "\\domainname\mainshare\%parentOU%" /persistent:yes
    Make sure to use quotes around the variable in the vbs file, or your batch file will see it as two parameters.  Then make sure to use %~1 as the variable in the batch file to remove the quotes from the parameter that is passed.

  • How do I connect my Centro to the Internet via bluetooth over PC's Internet? Where is Centro's PPP Connection Type? How do I setup Login Script for bluetooth connection?

    I am trying to set up bluetooth on the Centro to connect to the internet via my PC's internet.
    HotSync over bluetooth works successfully.
    Computer specs: Toshiba P205-S6277; Bluetooth Stack v5.10.04 (currently using); Bluetooth Monitor v3.01 (to use Vista's built-in bluetooth)
    I think I have narrowed my problem down to 3 things.
    (1) Finding Network Access properties (to allow connected devices to access the internet)
    (2) Finding Centro's Network Connection Type: PPP
    (3) Finding the correct Login Script to use
    for (1) I think I've looked everywhere; found nothing on Network Access. 
    Checked control panel: only Bluetooth Local COM
    Right-clicked bluetooth icon > Settings: File transfer, PAN Networking, PAN DHCP server, AV controls. Other bluetooth settings are for file transfer or object push. I don't see anything like this.
    I'm stumped on (2). It seems as if palm removed this option under Centro's Advanced network settings .
    Nearly all the forums that I read says to choose Connection Type: PPP.
    (3) Found 2 scripts that seemed would work. I don't know how it exactly works but it sounds workable.
    First script:
    Send: CLIENT
    Send: CLIENT
    Wait for: CLIENTSERVER
    End:
    Script 1 Connect Log:
    =======================================
    Connect Log
    S: client
    S: client
    R:
    Err: 0x121F   <<<netErrUserCancel b/c I canceled it. 
    Not connected
    ========================================
    I canceled it because the process would stay on "Signing In" then it automatically "Canceled" itself.
    Second script:
    Send CR:
    Delay: 1
    Send: CLIENT
    Wait For: CLIENTSERVER
    End
    **UPDATE** I found on this forum (Reply # 3689) that the script is needed only if you are using Palm OS 4 or under. Centro uses Palm OS 5.49121. Can anyone support this?
    Even without the script it has problems "Signing In".
    I'm currently reading this site and trying out its decribed methods. I will update this thread when I get the results.
    I'm using the Centro. And If anyone's been able to successfully connect to the internet on the Centro via a bluetooth connection to the PC WITHOUT 3rd party applications, please share.  If not, please share any ideas.
    Thanks!
    -Eric
    Post relates to: Centro (AT&T)
    Message Edited by naisanza on 01-01-2009 02:26 PM

    I've been going at this for days, and have probably exhausted all the proposed solutions on the first 3 pages of various google searches. I'm getting the feeling that Vista users are pretty much SOL for the time being.
    For the record, I just tried out a few of the solutions (mRouter & SoftickPPP) on XP and they work perfectly.
    Post relates to: Centro (Verizon)
    Message Edited by Cogwheel on 02-13-2009 09:45 AM

  • Login Script for HP Thin Clients using Citrix

    Hi
    Could someone please assist me with this.
    I use a login script on my domain but I am now joining the HP Thin Clients onto the domain which will use SSON (Single Sign ON) which will automatically load citrix and use the current username and password to sign into the citrix session
    Is there a command I can use that will "check" the version of windows and if this is Windows 7 embedded Standard edition, then it will bypass all the commands and go to the end of the script.
    I was trying something like this IF "%OS Version%" == "Microsoft Windows 7 Embedded Standard" goto END
    I know you can use this for a "Computer Name" but we have so many terminals and would need to store all the names of them on the servers.
    Please can someone give me some advise on this.
    Thanks
    Martin

    Hi,
    As far as I know, you can user command systeminfo | findstr /B /C:"OS Name" /C:"OS Version"to check current system edition in
    Command Prompt. However, as I'm not fimilar with script, to need more assistance for your problem, it would be better to provide your question at script center.
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    Roger Lu
    TechNet Community Support

  • Login script for Airport Extreme

    How do I get a login script into the modem setup for the Airport Extreme base station? All that is there is a pull down menu and the only thing on the menu is "None". Where is the admin utiltity looking for its login scripts?
    Mike

    Sorry --- No answer to this: just the same problem. Places I've tried are
    Terminal Scripts (in /Library and ~/Library)
    Login Scripts (in /Library and ~/Library)
    and the same two in both
    /Library/Application Support/Apple/Airport
    /Library/Application Support/Apple/Airport/Configuration.
    No dice with any.
    Have you heard any more?
    Carroll
    1 GHz PB17   Mac OS X (10.4.2)  

  • Script for mapping drives?

    Is there a script or anything out there that will automatically map a users H: drive on a network. We do not have any apple servers and I was wondering if it would be possible to do. Also is there anyway for a local user to add printers without giving them the local admin passwords? I work for a University and we are starting to deploy MACs so any help would be greatly appreciated. Thanks.

    This probably isn't the best forum for asking these questions since this forum is specifically for issues with installing Mac OS X Server, but here are a couple of resources to get you started:
    Automounting shares:
    http://www.bombich.com/mactips/automount.html
    Running scripts on login/logout:
    http://www.bombich.com/mactips/loginhooks.html
    I don't know of any way for a user to be able to add a printer without having administrator rights, but you might check out the video from MacWorld 2008 on creating a Limited Administrator Account on this page:
    http://www.macworldencore.com/online/presentation.asp#
    and see if that would help. There are a lot of resources available for managing Macs; check out some of the other videos on the MacWorld site, and explore http://www.afp548.com/ as well.
    If you have further questions, you'll be most likely to get quick and accurate answers if you post in the appropriate Mac OS X area:
    Mac OS X 10.5 Leopard
    Mac OS X 10.4 Tiger
    Regards.

  • Script for mapping drive

    Hi,
    I have newly implemented the file server in our organization.
    Created individual folder for each users with 2GB quota to copy their data. I have created the folder in the name of users domain login ID, is the script is available, for mapping network drive for each user their respective folder.

    try creating a batch file like this:
    assuming, shared folder is on c drive users_folder.
    @echo off
    net use u /delete /yes
    net use u: \\file_server_name\users_folder\%username%
    and run it as a logon script
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

  • Need an updated ARD login script for Mavericks

    We've been using the script below for some years now with very few issues (other than for some reason the multiple returns at the end were needed for some stubborn machines).
    The script continues to work nicely in 10.9--assuming that the cursor is in the name field of the login screen.  More often than not, the cursor isn't.  Because I've yet to teach myself/learn AppleScript, I wander around the lab and manually click into the name field.
    A:  Does anyone know how to tell the machines to place the cursor into the name field?
    B:  Could maybe a future OS update restore the good old days where the cursor blinking in the name field was the default?
    name="username";
    password="userpassword";
    osascript <<EOF
    tell application "System Events"
        keystroke tab
        keystroke (ASCII character 8)
        keystroke tab
        keystroke (ASCII character 8)
        keystroke return
        delay 0.5
        keystroke tab
        keystroke "$name"
        keystroke tab
        delay 0.5
        keystroke "$password"
        delay 0.5
        keystroke return
        keystroke return
        keystroke return
        keystroke return
    end tell

    The less than signs did not have a space.  I took out the the first delay and the last return.
    osascript <<EndOfMyScript
    tell application "System Events"
    keystroke “student”
    keystroke tab
    delay 0.5
    keystroke “***”
    delay 0.5
    keystroke return
    end tell
    EndOfMyScript
    got this error message
    43:44: syntax error: Expected “given”, “in”, “of”, expression, “with”, “without”, other parameter name, etc. but found unknown token. (-2741)
    Are you running your computers with an osx network user logon?  I am.
    thanks.
    Hal

  • Login scripts not running with AnyConnect NAM and ISE 1.2

    I am using AnyConnect 3.1 NAM as my 802.1x supplicant for ISE 1.2.  When users log in with EAP Chaining (User and Machine Auth), the login script seems hit or miss on if it runs to map their drives.  If I uninstall the NAM client, they map drives every time.  I would think that running a login script to map drives is a common scenario and I was wondering if anyone else using AnyConnect NAM was having similar issues or how they were dealing with it.

    I have the same issue and I solve the issue with change these parameters.
    1.- You must change on configuration profile "before user logon". I have 5 seconds
    2.- You must change on configuration profile  "port authentication Exception policy" and you must enable checkbox "enable port exceptions" and select "allow data traffic before authentication"
    3.- You must enable in the option of interface Ethernet Intel on PC "Wait for link" this option It's in "configured advanced of Intel. You must select "on" in this option.
    4.- (this recommendation it was by Cisco) 
    Active Direct GPO has a setting "Computer Configuration\Administrative
    Templates\System\Logon\ Always wait for the network at computer startup and logon" that
    can be enabled to make the logon scripts wait till 802.1x authentication is completed.
    With those changes the logon script run fine.
    Regards
    David.

  • Update user login script on specific OU matches

    Hi
    I need to update the login script for several hundred users. The The OUs I wish to pick the users from match:
    CN=User1,OU=123 Users,OU=127,OU=Business,DC=test,DC=company,DC=co,DC=uk
    CN=User1,OU=124 Users,OU=124,OU=Business,DC=test,DC=company,DC=co,DC=uk
    etc.
    I need a way to skip though ad picking out 123 users, 124 users, etc and replacing their login scripts. My assumption would be with a regex but would appreciate some help on the best way to do this.
    Thanks

    A regex for that might look like this:
    '^OU=12[34] Users'
    Apply it using the -match operator against the DNs of the OUs, then get the users using those as your SearchBase:
    (Get-ADOrganizationalUnit -Filter *).DistinguishedName -match '^OU=12[34] Users' |
    foreach { Get-ADUser -Filter * -SearchBase $_ }
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • BizTalk Powershell Provider Mount remote BizTalk drive: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

    I've been dabbling in the Powershell BizTalk Provider Extensions for some automation of deployment and such. So far it's pretty cool on a local machine, but the real benefits to me would be to do it remotely. Does anyone have any experience in the with the
    following issue?
    My BizTalk Server and SQL Servers are on separate machines which I think is the issue, but I don't know how to resolve. I've tried to provided credentials to the New-PSDrive command, but get the following errors:
    The provider does not support the use of credentials. Perform the operation again without specifying credentials.
    I'm trying to manage a remote BizTalk instance. The machine running the script has biztalk fully configured and can connect
    to the Target Server just fine. The issue comes when I try to mount the "BizTalk:" drive
    Enter-pssession -computername myServer -configurationname microsoft.powershell32
    $InitializeDefaultBTSDrive = $false;
    Remove-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
    Add-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
    New-PSDrive -Name BizTalk -PSProvider BizTalk -Root "BizTalk:\" -Instance mySqlServer -Database BizTalkMgmtDb -Scope Global
    When it get to the New-PSDrive I get the following error:
    New-PSDrive : Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    + CategoryInfo : InvalidArgument: (BizTalk:PSDriveInfo) [New-PSDrive], BtsException
    + FullyQualifiedErrorId : 0,Microsoft.PowerShell.Commands.NewPSDriveCommand
    Has anyone experienced this and solved? The same error occurs when use Invoke-Command as well.

    It seems that the PowerShell provider is not Microsoft Support, it is community supported through the CodePlex site -
    http://psbiztalk.codeplex.com
    Right, I posted there as well, but there is not much movement on the site. I was hoping to find if this larger community may have had some experience with the provider.

  • Script for adding a login item for all accounts in the system

    Hi,
    Thanks for reading this query. I am new to the mac environment. I have developed a java application and created an installer of this application for MAC system.I want to run this application on starting the system. So I have written an apple script for adding this application in login items and this script will run immediately after completing installation process. And the entire process is fine. But the problem is, the application is added to login items of only the user who installed the application. But I want to get available the application in the login list of all accounts created in the system. How can I achieve this? Once more thanks in advance. I am attaching my script below:
    +*tell application "System Events"*+
    +* make login item at end with properties {path:"/Applications/MyApplication.app", hidden:true}*+
    +*end tell*+

    Hi,
    Try to use tables RSOSFIELDMAP, RSDSSEGFD and RSTRAN
    Hope it helps
    bhaskar

  • [Oracle][ODBC SQL Server Wire Protocol driver][SQL Server]Login failed for user 'RECOVER'

    Hi,
    We have exadata x3-2. I am seeing this error in alert log file frequently.
    The db version: 11.2.0.3 On RAC on Linux 5.8 x86-64Bit
    Errors in file /d01/oracle/TEST/11.2.0/admin/TEST1_dbtest/diag/rdbms/prod/TEST1/trace/TEST1_reco_11909.trc:
    ORA-01017: invalid username/password; logon denied
    [Oracle][ODBC SQL Server Wire Protocol driver][SQL Server]Login failed for user 'RECOVER'. {28000,NativeErr = 18456}
    ORA-02063: preceding 2 lines from HIS_CUST
    The file /d01/oracle/TEST/11.2.0/admin/TEST1_dbtest/diag/rdbms/prod/TEST1/trace/TEST1_reco_11909.trc
    Contains many repeated lines like below
    *** 2015-01-21 06:34:40.209
    ERROR, tran=21.24.51311, session#=1, ose=0:
    ORA-01017: invalid username/password; logon denied
    [Oracle][ODBC SQL Server Wire Protocol driver][SQL Server]Login failed for user 'RECOVER'. {28000,NativeErr = 18456}
    ORA-02063: preceding 2 lines from HIS_CUST
    Could any please help why is this happening.
    Thanks

    Hi,
       You have customers who are running distributed transactions using a gateway which need to be rolled back.  However, the gateway has not been correctly configured for distributed transactions.  To roll back a transaction on the SQL*Server database a connection is made as the user defined in the parameter  HS_FDS_RECOVERY_ACCOUNT in the gateway init<sid>.ora file but this user has not been created in the SQL*Server database with the password defined in HS_FDS_RECOVERY_PWD. This user also needs to own the transaction log table.
    I assume you are using the Database Gateway for SQL*Server (DG4MSQL) as the Database Gateway for ODBC (DG4ODBC) doesn't support distributed transaction.
    If you have access to My Oracle Support have a look at this note -
    How to Setup DG4MSQL to Use Distributed Transactions (Doc ID 227011.1)
    Otherwise, check the Gateway documentation.
    Regards,
    Mike

  • Script for XCOPY files to flash drive

    I'm trying to make a batch file to copy all %localuser% folders on an agent's laptop, including a few other directories inside appdata  to a flash drive and have it prompt for the drive letter of that flash drive then prompt to make a directory to copy
    the files/folders to.  The idea is to copy all these directories without having to go in and browse to all these folders every time I want to back up and move an agent's stuff to a new computer.  Would also be great to have the same batch reverse
    the copy on the new computer.  
    Any help would be much appreciated.

    XCOPY is a system utility and not a script. Just follow the help to get it to copy. Post your questions about XCOPY in the platform forum.  You should also search for articles on using XCOPY and ROBOCOPY.  RoboCopy has a simple file that tells
    it what to do.  Search fro posts on RoboCopy.
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Green Shoots?...

    After release of firmware upgrade 21.0.045. and OVI 2.1.1.1 I finally overcame my utter disenchantment with OVI's total failiure to provide a functioning sync interface over last year and summoned the energy to test drive sync between my n97 and win7

  • Can't transfer files to External Hard Drive

    I'm trying to transfer files to an external hard drive, Free Agent, which I was freely able to do from my pc. Get Info on the hard drive gives me, Sharing & Permissions: You can only read. I went into Sharing in System Pref. Added the hard drive and

  • New IP-address or hostname change affect Oracle database?

    Hello, Our Oracle database servers will be moving to a different location that we might have to change to new IP-addresseses or host names. I was told that we might have to re-install all Oracle homes and databases. Is it true? And generally, what el

  • Phone no longer rings

    Since I've bought my swr30 my phone no longer rings. I've the volume up to high on both devices. Nothing is set to silent. I don't understand what's happening. Does anyone have an idea on what might be the issue? I've an Xperia z3. Thanks for your ti

  • ITunes 5: What is Remember playback position?

    ITunes 5 has a new option in the Get Info/Options Tab "Remember Playback Position". Does anyone know what this is for? I suspect that it may have something to do with the default playback start position, but I'm not sure. If i don't want the song to