![]() We use the description field in the AD computer objects to store the primary user of the machine. Add a work from anywhere, dynamic config, role based hardware fleet of laptops and your convention goes out the window. Unfortunately that only works in 1 type of environment: bolted down workstations. Location based naming convention? Wow, old school :) When we receive a call, we already know which machine is about before answering the phone. would love to see your app/exe (sorry this is so long is there a way to make it smaller for posts) I use this but it doesn't say if it's locked out its really a glorified net user script. Goto START : : : PLEASE cls & echo "Please Enter a User Name!" & ping -n 2 127.0.0.1 >nul & goto USER : : : PLEASE2 cls & echo "Please Enter a User Name!" & ping -n 2 127.0.0.1 >nul & goto NOLISTB4 : QUIT cls echo. REM net user %INPUT3% /domain >"User NFO.txt" set INPUT3 = pause goto MENU : : : LISTING cls REM net user %INPUT2% /domain >"User NFO.txt" set INPUT2 = pause goto MENU : : : NOLISTB4 cls set /P INPUT3 = "Enter User Name: " IF NOT DEFINED INPUT3 goto PLEASE2 Set /P INPUT2 = "Enter User Name: " IF NOT DEFINED INPUT2 goto PLEASE Set /P LIST = "Would you like to list user names first? (Y/N): " IF NOT DEFINED INPUT goto USER IF /I " %LIST% " = "Y" goto LISTB4 IF /I " %LIST% " = "N" goto NOLISTB4 IF " %ERRORLEVEL% " = "0" goto USER : : : LISTB4 : : set INPUT = set /P INPUT = "Please Press (U) to Enter a Name, (L) to List User Names, or (Q) to Quit: " IF NOT DEFINED INPUT goto START IF /I " %INPUT% " = "U" goto USER IF /I " %INPUT% " = "L" goto LISTING IF /I " %INPUT% " = "Q" goto QUIT IF " %ERRORLEVEL% " = "0" goto START : : : USER
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |