April 3

Windows: Create a batch file that logs users into their home directory on demand

The following batch script can be used to log on users to their home directory on demand.  This can be good for businesses that use Kiosk’s with generic logons, but still need to give users access to their home drives.

@echo off
set /p userid=”Enter your username: ”
C:\Windows\System32\runas.exe /user:riverview\%userid% “explorer.exe \”\\fiiservers1\Home\%userid%””


Copyright 2021. All rights reserved.

Posted April 3, 2017 by Timothy Conrad in category "Windows

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B