[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

automated login and logout Windows 2008 Server

Posted on 2012-08-30
3
Medium Priority
?
599 Views
Last Modified: 2012-09-14
How would I create a daily script that would
1) log a guest user into a 2008 server - with or without a password
2) send some notification that login has been successful
3) log the guest user out
0
Comment
Question by:lineonecorp
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
MMe12 earned 2000 total points
ID: 38353633
If you're not talking about a local (console) login to the server, you could use a simple batch file like this:

::login attempt
net use \\SERVER /user:USERNAME PASSWORD
if errorlevel 1 goto failed

::logoff
net use \\SERVER\ipc$ /d
echo Success
goto :EOF

:failed
echo Failure

Open in new window


Instead of lines 7 and 11 you can insert your code or tool command line to send a notification.
0
 

Author Comment

by:lineonecorp
ID: 38355883
Thanks for the quick turnaround. Let me try this.
0
 

Author Comment

by:lineonecorp
ID: 38400845
Looks good. Thanks.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's recap what we learned from yesterday's Skyport Systems webinar.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question