Cloud Build

Microsoft Azure, 365 and all things Tech

Skip to content
  • About Me
  • Terms
  • Privacy

basic login script

Batch Logon Script

Posted on December 11, 2010 by Imran Rashid
Reading Time: < 1 minute

Below is a script for you to amend and use as a login script. Amend the code as required and copy the text to a notepad file. Name the notepad file login.bat.

@echo off
echo Welcome to Company Name Here %username%
echo You are logged onto computer name %COMPUTERNAME%     
echo Inialising network…      
@ping 127.0.0.1 -n 5 -w 1000 > nul    
Net use K: \\server\share /persistent:yes
Net use L: \\server\share /persistent:yes
ECHO Successful

Explained:

%username% – Displays the username of the user logging in
@ping 127.0.0.1 -n 5 -w 1000 > nul  – A 5 second wait. Not required just allows some time to display what’s going on when the script is running. Just to impress the bosses 😉

Posted in Scripts
Tagged basic login script Batch Login Script example login script login script logon batch file script
Leave a comment

Follow Me

  • LinkedIn
  • Bluesky
  • X
  • Meetup
  • GitHub
  • RSS Feed

Search

Subscribe

Keep up to date on the latest articles. We will never spam you or forward your details to third parties.

Name

Email


Recent Posts

  • Microsoft 365 Copilot tasks you can try in Outlook
  • Practical Microsoft 365 Copilot Tasks You Can Try in Excel
  • Extending Microsoft 365 Copilot with Microsoft Copilot Studio
  • Copilot Agents: Agent Builder, Copilot Studio, or Foundry?
  • Backups vs Replication vs High Availability vs Fault Tolerance vs Disaster Recovery
  • Building an Autonomous AI Agent in Copilot Studio – Part 9: Testing the Autonomous Agent
  • Building an Autonomous AI Agent in Copilot Studio – Part 8: Amend Existing Agent Instructions to Use Tools
  • Building an Autonomous AI Agent in Copilot Studio – Part 7: Add Tools to a Copilot Studio Agent
  • Building an Autonomous AI Agent in Copilot Studio – Part 6: Create a Trigger in Copilot Studio
  • Building an Autonomous AI Agent in Copilot Studio – Part 5: Create an Excel Log File to Record Mentor Requests
  • Building an Autonomous AI Agent in Copilot Studio – Part 4: Create an Excel Spreadsheet Listing Trainers and Qualified Courses
  • Building an Autonomous AI Agent in Copilot Studio – Part 3: Create a Copilot Studio Agent (Name, Image, Description, and Instructions)
  • Building an Autonomous AI Agent in Copilot Studio – Part 2: Create a Power Platform Environment
  • Building an Autonomous AI Agent in Copilot Studio – Part 1: Create a Microsoft Form
  • What are topics in Copilot Studio
  • Why You Should Register for Microsoft Certification Exams Using Your Personal Email and Not Your Work or School Account
  • Create a fingerprint based Sensitive Information Type (SIT) in Microsoft Purview – Part 10
  • Create a Sensitive Information Type (SIT) from scratch in Microsoft Purview – Part 9
  • Exploring a built-in Sensitive Info Type in Microsoft Purview – Part 8
  • Microsoft Purview Information Protection – Part 7
Azure Community Hero
Azure Learner
Cloud Champion
Top Azure Blogs

Certifications

  • azure-solutions-architect-expert-600×600
  • azure-security-engineer-associate600x600
  • azure-administrator-associate
  • NCDA-7-Mode_352x352
  • Designing+and+Deploying+Microsoft+Exchange+Server+2016-01
  • Microsoft_Exam533
  • Microsoft_Exam534
  • MCSA-Cloud-Platform-2018
  • azure-solutions-architect-expert-600×600
  • CERT-Associate-Microsoft365-Teams-Administrator
  • MS-100-exam
  • exam-ms100_1-600×600
  • microsoft365-enterprise-adminstrator-expert-600×600
  • microsoft365-messaging-administrator-associate-600×600
  • SCI_Challange_Complete_OpenHack_600X600
  • Microsoft Certified Trainer
  • MCT-2023-2024
  • azure-network-engineer-associate-600×600
  • sc-300
  • az-900
  • SC-900
  • AI-900
  • Microsoftaiskillsfestgwrattemptbadge[full]
Azure Crazy logo
BradCugLogo

RSS Feed

  • Twitter
  • linkedin

Cloud Build

© All rights reserved.

Powered by WordPress

Subscribe to new posts

Name

Email


Recent Posts

  • Microsoft 365 Copilot tasks you can try in Outlook
  • Practical Microsoft 365 Copilot Tasks You Can Try in Excel
  • Extending Microsoft 365 Copilot with Microsoft Copilot Studio

Archives

  • About Me
  • Contact Me
  • Microsoft Updates
  • Privacy
  • Terms

Subscribe

Subscribe to new tech posts.
We will never send you spam email or forward your details to third parties.


Name

Email


This will close in 0 seconds

error: Content is protected !!