FreeBSD + mount after read-only mode
Commands: fsck -y mount -u / mount -a -t ufs swapon -a Now the system in RW mode.
Amazon EC2 + Ubuntu + Raid
I had to add Raid to the EC2 instance with Ubuntu. I chose RAID10. So, 1. Add disks to the instance (I added 4 disks for RAID10): Adding Instance Store Volumes to an AMI Amazon EBS-backed AMIs don’t include an instance store by default. However, you might want instances launched from your Amazon EBS-backed AMIs […]
Network scan form command line
for /L %i in (1,1,254) do ping -a -n 1 192.168.0.%i | find /i “Reply”
Exchange 2010 shell + usefull commands
Permissions for Public Folders Add-PublicFolderClientPermission -AccessRights Owner -Identity \MyPublicFolder -user domain\ivan.ivanovGet-PublicFolderClientPermission -Identity \MyPublicFolder For meeting-rooms Get-Mailbox Meeting.RoomGet-Mailbox Meeting.Room | flGet-MailboxCalendarSettings Meeting.Room | flAdd-MailboxPermission -Identity:Meeting.Room -AccessRights:fullaccess -User:domain\ivan.ivanov SMTP-connector get-receiveconnector | add-adpermission -user ivan.ivanov -extendedrights ms-Exch-SMTP-Accept-Authoritative-Domain-Sender DLs get-distributiongroup | select Identity,RequireSenderAuthenticationEnabled Mailboxes get-mailboxstatisticsget-mailboxstatistics | select displayName,TotalItemSize EventLog Get-EventLogLevelSet-EventLogLevel -Identity “MSExchangeSA\OAL Generator” -Level Medium Get mailboxes with forwarding […]
Load Balancer for Exchange
I was needed in a cheep software NLB and found this article: http://marksmith.netrends.com/Lists/Posts/Post.aspx?ID=111 In this article I will show you how to build an open-source, Linux (CentOS) based load balancer using the Direct Server Return (DSR) method of load balancing with the Linux Virtual Server (LVS) package and the Piranha web GUI. Let me first […]
Configure Static RPC Ports on an Exchange 2010 Client Access Server
It’s needed for NLB. Copy-pasted from TechNet: http://social.technet.microsoft.com/wiki/contents/articles/864.configure-static-rpc-ports-on-an-exchange-2010-client-access-server.aspx Exchange 2010 RPC Client Access Service By default the RPC Client Access service on an Exchange 2010 Client Access server uses the TCP End Point Mapper port (TCP/135) and the dynamic RPC port range (6005-59530) for outgoing connections, every time an Outlook clients establish a connection to […]
VmWare ESXi CLI useful commands
Show services on the host and their default state upon boot (on/off) cat /etc/chkconfig.db Restart all services on the host /sbin/services.sh restart Show config file of vCenter vpxa agent cat /etc/vmware/vpxa/vpxa.cfg Enter maintenance mode vim-cmd hostsvc/maintenance_mode_enter Virtual machine operations vim-vmd solo/registervm <path to VM’s .vmx file> – register VM on a host vim-cmd vmsvc/getallvms – list […]
You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version
It’s just a copy from Microsoft support site about this issue (very useful for me): http://support.microsoft.com/kb/896861 Method 2 works for me. Method 1: Specify host names (Preferred method if NTLM authentication is desired) To specify the host names that are mapped to the loopback address and can connect to Web sites on your computer, follow […]
Windows 8 + how to change the product key
Wonder again from Windows – no visual way to change a product key and activate Windows. I found resolution in MSDN: To change the product key without first activating Windows, use one of the following methods: Method 1 Swipe in from the right edge of the screen, and then tap Search. Or, if you are […]
Convert PFX to CRT and KEY
You just need to run some commands (you need enter password for pfx and new password for key – it must be different): export crt from pfx: openssl pkcs12 -in file.pfx -nocerts -out file.key export key from pfx: openssl pkcs12 -in file.pfx -clcerts -nokeys -out cert.crt decrypt key: openssl rsa -in file.key -out file2.key without […]