for region in `aws ec2 describe-regions --output text | cut -f3`do echo -e "nListing Instances in region:'$region'..." aws ec2 describe-instances --region $regiondone As of Today (30-01-2017), You will get...
Applies To: Windows PowerShell 2.0 When you add aliases, functions, and variables, you are actually adding them only to the current Windows PowerShell session. If you exit the session...
First you have to create a CSV file with the following entry’s: VMName,Note VM1,Domain Controller VM2,Database Server The second step is to run this one-liner. The one-liner will add...
ADPlus is a tool from Microsoft Product Support Services (PSS) that can troubleshoot any process or application that stops responding (hangs) or fails (crashes). Frequently, you can use ADPlus...
Below function should be include in the script: function Send-SMTPmail($to, $from, $subject, $smtpserver, $body, $attachment) {$mailer = new-object Net.Mail.SMTPclient($smtpserver)$msg = new-object Net.Mail.MailMessage($from,$to,$subject,$body)$msg.IsBodyHTML = $true$attachment = new-object Net.Mail.Attachment($attachment)$msg.attachments.add($attachment)$mailer.send($msg)} Command which...
There are a couple of ways to rename a Virtual Machine, but there are two in my opinion that stand out: Shutdown the VM Rename the VM in VirtualCenter...
rsh and rexec commands (inbuilt) and we can use PsExec.exe RSH:—Runs commands on remote hosts running the RSH service. RSH host [-l username] [-n] command host Specifies the remote...
#!/bin/bash# Linux/UNIX box with ssh key based loginSERVERS=”Server1 server2 server3″# SSH User nameUSR=”Admin” # EmailSUBJECT=”Server user login report”EMAIL=”[email protected]”EMAILMESSAGE=”/tmp/emailmessage.txt” # create new file>$EMAILMESSAGE # connect each host and pull up...