it.megocollector.com

  • About
  • Links
  • About
  • Links

Automate Network Drive Map at Boot not login

admin • September 8, 2007

Automate Network Drive Map at Boot not login

Although this is a nice writeup. It does not work. When I originally created this process, I tested several times with success. Somewhere over time, critical updates and service packs broke this process. I will leave this article as is as it may help in some other design.

Support
AutoIT v3 (Freeware) Download: http://www.autoitscript.com/autoit3/downloads.php

Purpose
Map a drive and pass appropriate credentials without compromising security. Use AutoIT, a script language, to compile into executable. Run the executable through a Scheduled Task.

Security
AutoIT offers some security, and it is better than most. Also note that there is a decompiler that does exist for many versions of AutoIT, however is quite rare and with little visibility. AutoIT also appears to operate in memory rather than writing to temp folder unencrypted like many other script compilers.

Testing
After a couple of hours of testing, the conclusion is that whatever account that accesses the Scheduled task, it should have administrator rights, either local or domain. I tested with local administrator account to launch the scheduled task, which will launch the executable with success. The test not only mapped the drive, but to copy a file to that mapped drive. The test included rebooting the workstation and checking the network drive for the copied file. The test was a success, so I removed that one line of code to copy the file.

Solution
Note: The solution assumes that AutoIT is installed. Install the latest version of AutoIT v3 by following the setup instructions.

The Script

  • Launch SciTE4AutoIT3 (Start -> All Programs -> AutoIT v3 -> SciTE Script Editor)
  • Type in the following lines in the script editor
; Map X drive to \myserver2\stuff2 using the user "username" from "domainx" with password "userpassword"
DriveMapAdd("h:", "\nasserver\share", 0, "domain\username", "password") 
  • Save file
  • Create an executable (Tools -> compile) Note: You should now have an EXE.

The Task

  • Create a Scheduled Task (Control Panel -> Scheduled Tasks)
  • Click on Add Scheduled Task and the Scheduled Task Wizard window will appear.
  • Click Next -> Browse? (to your EXE)
  • Select When my computer starts , Next
  • Use an account with either local or domain administrator rights (to execute your executable)
  • Next
  • Select Open advanced properties … , Finish

The Schedule

  • Go to Schedule Tab, Select Multiple Schedules
  • New, 2. Run at user logon, apply
  • Go to Settings Tab, uncheck all, apply
  • Done
Tagged: drive maploginnetworkscript

Post navigation

««Verizon LG VX8300 incomplete MP3 list
EPSON Print CD missing PICSDK.DLL»»

Categories

  • Linux (253)
  • macOS (2)
  • Media (9)
  • Misc (37)
  • Raspberry Pi (3)
  • Scripts (181)
    • AutoIT Scripts (19)
    • INNO Scripts (9)
  • Software Packaging (19)
  • Tips and Tricks (411)
  • Windows (8)
  • Wordpress (44)

Popular

  • i8042prt Event ID 7026 The following boot-start or system-start driver(s) failed to load - 114,272 views
  • Adobe Reader 9 or Adobe Acrobat 9 can not view PDF files in a Web Browser error and fix - 77,953 views
  • EPSON Scan jpeg plug-in unable to write to file error and fix - 52,272 views
  • #1045 – Access denied for user ‘root’@’localhost’ (using password: NO) fix - 49,075 views
  • Convert mAh to mWh and mWh to mAh for Notebook Laptop Batteries - 46,299 views
  • Install JDK (Java Development Kit) on a RedHat Linux System - 46,042 views
  • Create a 7zip Self Extractor (7zS.sfx or 7z.sfx) - 41,137 views
  • eHome Infrared Receiver not recognized by Windows XP - 31,479 views
  • Access Red Hat Enterprise Linux 5 with XManager Remote Control - 26,634 views
  • Microsoft Word Accept and Reject Change Options Greyed Out - 24,073 views
  • Setup JBoss on Red Hat Enterprise Linux 5 (RHEL5) Server - 23,667 views
  • PHP 5.3.2 with IIS6 and FastCGI Installation Guide – Updated - 21,741 views
  • Unlock the McAfee VirusScan Enterprise 8.5i User Interface - 21,345 views
  • Internet Explorer 7 Gold RunOnce Removal - 20,743 views
  • Windows XP SESSION3_INITIALIZATION_FAILED stop error with 0x0000006F fix - 19,557 views
  • How to automate Selenium scripts - 19,250 views
  • SVCHOST.EXE Application Error 0XC00000FD 0X76A9F4F9 100% CPU Resolved! - 19,030 views
  • atibtmon.exe Runtime Error! [Resolved] - 18,944 views
  • How to enable and configure Java JRE to work in Firefox in CentOS 5 and RHEL 5 Linux - 17,925 views
  • How to install the Intel 82845G Graphics driver on Microsoft Vista - 16,806 views
  • Remove WGA Notifications with AutoIT - 16,227 views
  • How to Setup IIS6 with the Tomcat 5 Connector – Step by Step Guide. - 16,025 views
  • Disable firewall on Red Hat Enterprise Linux (RHEL) Server - 15,647 views
  • Internet Explorer 8 Beta RunOnce Removal - 14,993 views
  • Setup JBoss on Ubuntu 8.0.4 LTS Server Edition - 14,374 views
  • Use netstat in Linux to determine port conflicts - 14,040 views
  • EPSON Print CD missing PICSDK.DLL - 13,687 views
  • How to Sort Text Using Notepad++ - 13,610 views
  • How to share a folder without password in Windows 10 home network - 13,120 views
  • DOS Batch – Find and Replace all occurrences of a string with another string - 12,781 views
  • Connect to VNCServer on Red Hat Enterprise Linux - 12,697 views
  • Autorun JBoss on Red Hat Enterprise Linux 5 (RHEL5) Server - 12,068 views
  • Microsoft Office 2003 missing SKU011.CAB - 11,607 views
  • Factory reset the Linksys PAP2 Phone Adapter for Vonage - 11,389 views
  • Unlock Western Digital WD80EB Drives - 10,374 views
  • Create a Bootable Windows XP SP3 Integrated with Post-SP3 fixes CD - 10,282 views
  • RDP into CentOS 7 with XRDP - 9,478 views
  • Setup JBoss on Ubuntu 8.1.0 Server Edition - 9,443 views
  • Innounp, Inno Setup Unpacker 0.23 (Build: 080318) supports INNO Setup 5.2.3 - 8,864 views
  • Vsftpd FTP Server With Virtual Users (CentOS 7) - 8,812 views
  • Create a service for JIRA on CentOS 5 or RHEL 5 - 8,495 views
  • Hot to enable a Symantec Antivirus LiveUpdate that is grayed out - 8,469 views
  • Event ID 1091 Group Policy … failed to log RSOP. - 7,918 views
  • Install Tomcat 5.5.28 on RHEL5 / CentOS5 - 7,892 views
  • Beyond Compare 2.5.3 INNO repack with license key - 7,377 views
  • Elasticsearch bootstrap checks failed [RESOLVED] - 7,052 views
  • mAh mWh Calculator - 6,907 views
  • Create a DVD Library on VMC (Vista Media Center) - 6,896 views
  • AutoIT Scripts to stop and start EMC Documentum eRoom services - 6,886 views
  • How to disable Windows Security Warning “These files might be harmful to your computer” - 6,876 views
Copyright © 2006-2021 it.megocollector.com
Theme by moyu