Create_User.bat


@ECHO OFF REM Get username and password from user's input set var1=%1 set var2=%2 REM Don't allow user to change password NET USER %var1% %var2% /add /expires:never /passwordchg:no REM User's password never expire wmic useraccount where "Name='%var1%'" set Passwordexpires=false REM Add user to remote desktop group NET localgroup "Remote Desktop Users" %var1% /add REM Create … Continue reading Create_User.bat

IIS Error: A specified logon session does not exist


After updated the certificate on the IIS web server today, we found that the web farm replication stopped working. And gave us an error message: I googled and tried the following two solutions, but neither of them worked for me. http://phaq.phunsites.net/2010/12/09/binding-ssl-in-iss-causes-a-specified-logon-session-does-not-exist-it-may-already-have-been-terminated-error/ http://social.technet.microsoft.com/Forums/en-US/winserversecurity/thread/4a2bcc5b-8845-4bda-a6ae-70a0503e9a6f Then I poked around and to my surprise I found the ‘SSL certificate’ … Continue reading IIS Error: A specified logon session does not exist