script

Net command

View user account details NET USER [/DOMAIN] Add a user account. NET USER username {password | *} /ADD [options] [/DOMAIN] Modify a user account. NET USER [username [password | *] [options]] [/DOMAIN] Delete a username NET USER username [/DELETE] [/DOMAIN]

Exchange 07 CMDLET Mailbox Permission to user

Add-MailboxPermission -Identity “%targetMailbox%” -User “%addUser%” -AccessRights FullAccess -InheritanceType All Add-MailboxPermission -Identity “mailbox1” -User “mailAdmin” -AccessRights FullAccess -InheritanceType All Microsoft Technet Microsoft Technet – Allow Mailbox Access Microsoft Technet – How to Allow Mailbox Access

URL Redirection

HTML redirect <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”> <html> <head> <title>Your Page Title</title> <meta http-equiv=”REFRESH” content=”0;url=http://www.the-domain-you-want-to-redirect-to.com”></HEAD> <BODY> Optional page text here. </BODY> </HTML> Frame redirects <frameset rows=”100%”> <frame src=”http://www.example.com/”> </frameset> <noframes> <body>Please follow <a href=”http://www.example.com/”>link</a>!</body> </noframes> More info on Wiki I am currently using this script

Remote Desktop Connection Registry Key

Registry Editor→Remote connect HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server fDenyTSConnection = 0 Port…. KEY_LOCAL_MACHINESystemCurrentControlSetControlTerminalServerWinStationsRDP-Tcp PortNumber = 3389 (default) cmd shutdown -m \hostname -r”

Microsoft DOS taskkill command

TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F] /f Specifies that process(es) be forcefully terminated. This parameter is ignored for remote processes; all remote processes are forcefully terminated. /t Specifies to terminate all child processes along with the parent process, commonly known as a tree …

Microsoft DOS taskkill command Read More »