snyperj
asked on
Need help with a login script
I have somewhat of an emergency. I am not an IT person, though I have knowledge in the IT area.
We have a customer that typically would access our system through a Citrix connection so that they could utilize one of our network programs. For reasons I am unsure of, we can no longer give this customer access using Citrix (not sure why, maybe it isn't working, etc....) So the customer has not been able to get in to use the resource since last week and they are growing very upset about it.
I often sign in from home, via remote desktop and can use the same resource as well as many others.
Is it not logical to assume that a customer account could be created in the same manner? For access using a remote desktop connnection? Obviously the concern is what else they could access (which must have been limited through citrix- because isn't citrix a similar thing to Remote Desktop?)
Anyway, I am trying to come up with a method to do this that will satisfy all parties.
Bottom line: can a guest-type user account be created that would allow the customer to access our remote server (Win 2003) and just one appplication and nothing else? Would than be something a login script could do? If yes, can you please give me some direction/example? I would be very appreciative as this is one of our biggest customers and our IT dept is somewhat dropping the ball on it.
THANKS
We have a customer that typically would access our system through a Citrix connection so that they could utilize one of our network programs. For reasons I am unsure of, we can no longer give this customer access using Citrix (not sure why, maybe it isn't working, etc....) So the customer has not been able to get in to use the resource since last week and they are growing very upset about it.
I often sign in from home, via remote desktop and can use the same resource as well as many others.
Is it not logical to assume that a customer account could be created in the same manner? For access using a remote desktop connnection? Obviously the concern is what else they could access (which must have been limited through citrix- because isn't citrix a similar thing to Remote Desktop?)
Anyway, I am trying to come up with a method to do this that will satisfy all parties.
Bottom line: can a guest-type user account be created that would allow the customer to access our remote server (Win 2003) and just one appplication and nothing else? Would than be something a login script could do? If yes, can you please give me some direction/example? I would be very appreciative as this is one of our biggest customers and our IT dept is somewhat dropping the ball on it.
THANKS
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Ok - If it's just the application - then it's not needed - then you just can start the application at the end of the login script with if %username%=User then start application
See - the I do not have the /wait line here - then the Login script exits in the background and the application is started when they login.
See - the I do not have the /wait line here - then the Login script exits in the background and the application is started when they login.
ASKER
No, I LIKE the idea of logging them out if they close the one application they are suppose to be using- I just don't understand how that line accomplishes it and what causes it to fire.
The line being:
"if %username%==User then logout"
The line being:
"if %username%==User then logout"
I dont think that it will, "logout" isnt a dos command.
ASKER
Let me see if I understand something, based on your last comments.
start /wait c:\windows\notepad.exe
The "/wait" means the login script stays active, in the background?
What event would again then trigger the login script to resume where it left off?
start /wait c:\windows\notepad.exe
The "/wait" means the login script stays active, in the background?
What event would again then trigger the login script to resume where it left off?
It's correct that the /wait will pause the script - the login script will resume when the started application is closed.
It's correct that the login script will stay in the background due to when a application is startet it's in the forground.
It's correct that logout is not a dos command - and it's not at windows command - sorry - it's logoff you should use if you would log off the user when the application is closed.
It's correct that the login script will stay in the background due to when a application is startet it's in the forground.
It's correct that logout is not a dos command - and it's not at windows command - sorry - it's logoff you should use if you would log off the user when the application is closed.
ASKER
OK- so how does this look:
if "%username%"=="MyUser" then start /wait C:\MyFolder\MyApp.exe
if "%username%"=="MyUser" then logoff
Are the quotes and everything in the right spot?
if "%username%"=="MyUser" then start /wait C:\MyFolder\MyApp.exe
if "%username%"=="MyUser" then logoff
Are the quotes and everything in the right spot?
ASKER
Please explain this part of it. How does this log them out if they close the application they are using.
This might work. They aren't looking to do anything malicious- just use the program.