- Managing vSphere datacenters, clusters, hosts and guests
- VM template and snapshot management
- vSwitches, DNS settings, firewall rules and NAT gateway rules
pysphere
PyVmomi
#Pop-up will appear and wait you to enter administrator account credentials $credential = get-credential #Imports the installed Azure Active Directory module. Import-Module MSOnline #Establishes Online Services connection to Office 365 Management Layer. Connect-MsolService -Credential $credential #Create Users Import-Csv .\users.csv | ForEach-Object { #Generate Random Password $office_365_password = ([char[]]([char]33..[char]95) + ([char[]]([char]97..[char]126)) + 0..9 | sort {Get-Random})[0..8] -join '' #Create User New-MsolUser -UserPrincipalName $_.UserPrincipalName -DisplayName $_.DisplayName -Password $office_365_password -UsageLocation $_.UsageLocation }|Export-Csv -Path ".\NewAccountResults.csv" #Assing License Pack to the unlicensed users Get-MsolUser -All -UnlicensedUsersOnly | Set-MsolUserLicense -AddLicenses "yourdomain365:OFFICESUBSCRIPTION_PACKNAME"
#From : Sender Email Account $EmailFrom = "Name Surname <sender@domain.com>" # Reporting: Report on Success and Failure (optional) $EmailDeliveryNotificationOption = "onSuccess, onFailure" # Server: Your Email SMTP server $EmailSMTPserver = "mail.example.com" # Users: csv file path, file includes Name, PersonelEmail, Office365Account, Password $SourcePath = ".\mail_merge_powerdshell.csv" # Import csv file $Users = Import-Csv -Path $SourcePath # #################### # END Variables # #################### # Begin Loop: Do the following with each row of the file you imported, referencing columns by their header foreach ($User in $Users) { # To: User's email address $EmailTo = $User.PersonelEmail # Subject: Email subject (may merge variables) $EmailSubject = "About Your Office365 Account " + $User.Name + "." # Body: Email body, with HTML formatting $EmailBody = "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">" $EmailBody += "<html xmlns=""http://www.w3.org/1999/xhtml""><head>" $EmailBody += "<meta http-equiv=""Content-Type"" content=""text/html; charset=UTF-8"" />" $EmailBody += "<meta name=""viewport"" content=""width=device-width, initial-scale=1.0""/>" $EmailBody += "<title>" + $EmailSubject + "</title>" $EmailBody += "</head><body bgcolor=""#FFFFFF"" style=""font-family: sans-serif; color: #000000"">" $EmailBody += "<p>Dear " + $User.Name + ":</p>" $EmailBody += "<p>Our Organization has purchased Office365 subscription for 1 Year</p>" $EmailBody += "<li>Your Office365 Account: <strong>" + $User.Office365Account + "</strong></li></ul></p>" $EmailBody += "<li>Your Office365 Account Password: <strong>" + $User.Password + "</strong></li></ul></p>" $EmailBody += "<li>You can Access Office Login to your office 365 using <a href='https://login.microsoftonline.com/'>This Link </a>" $EmailBody += "</body></html>" echo $EmailBody echo $Users # Merge: Conduct the email merge, sending emails (remove -WhatIf) Send-MailMessage -To $EmailTo -From $EmailFrom -Subject $EmailSubject -Body $EmailBody -BodyAsHTML -SmtpServer $EmailSmtpServer -DeliveryNotificationOption $EmailDeliveryNotificationOption
Piwik is a downloadable, Free (GPL licensed) web analytics software platform. It provides detailed reports on your website and its visitors, including the search engines and keywords they used, the language they speak, which pages they like, the files they download and so much more. Piwik aims to be an open source alternative to Google Analytics. Piwik is PHP MySQL software which you download and install on your own webserver. At the end of the 5-minute installation process you will be given a JavaScript tag. Simply copy and paste this tag on websites you wish to track (or use an existing plugin to do it automatically for you).After installation and configuration of piwik you can track visitors analytics of your institutional repo. If you want to embed these analytics into Dspace you can use the widgets of Piwik. There are three places that you can embed the analytics.
auth [success=1 default=ignore] pam_unix.so nullok_secure
auth required pam_google_authenticator.so

elsevier-sciencedirect.api.key =a2e3feffgd3542345gsdf then mvn and fresh install your DSpace if you successfully build and deploy DSpace you will have Elsevier Import menu both in the submission steps and Global Import menu. You can watch it below.import hashlib import os import syslog import datetime import shutil import subprocess squid_config_file_path="/etc/squid/kutuphane_veritabanlari.squid" squid_config_file = open(squid_config_file_path) readFile = squid_config_file.read() pac_file_root="/var/www/html" hash_file="%s/hash_file"%pac_file_root old_pac_file="%s/proxy.pac"%pac_file_root date_=datetime.datetime.now() backup_file="%s/pac_backup_file_%s.pac"%(pac_file_root,date_) new_pac_filee="%s/new_pac_file.pac"%pac_file_root sha1Hash = hashlib.sha1(readFile) sha1Hashed = sha1Hash.hexdigest() if os.path.exists(hash_file): hash_filee = open(hash_file,'r') readHash = hash_filee.readline() hash_filee.close() if not readHash==sha1Hashed: syslog.syslog(syslog.LOG_WARNING,"Hashes are different kutuphane_veritabanlari.squid config file has been modified the old hash :%s new hash:%s "%(readHash,sha1Hashed)) shutil.copyfile(old_pac_file,backup_file) new_pac_file = open(new_pac_filee,"w+") new_pac_file.write("function FindProxyForURL(url, host) {\n") new_pac_file.write("var proxyserver = 'proxy2.iyte.edu.tr:8080';\n") new_pac_file.write("var proxylist = new Array(\n") with open(squid_config_file_path) as openfileobject: for line in openfileobject: if (line[0].isalpha() or line.startswith(".")): new_pac_file.write('"%s",\n' % (line.rstrip())) new_pac_file.write('"dummy.com"\n);\n') new_pac_file.write("for(var i=0; i<proxylist.length; i++) {\n") new_pac_file.write("\tvar value = proxylist[i];\n") new_pac_file.write("\t\tif (dnsDomainIs(host, value) ) {\n") new_pac_file.write("\t\treturn 'PROXY '+proxyserver;\n") new_pac_file.write("\t}\n") new_pac_file.write("}\n") new_pac_file.write("return 'DIRECT';\n") new_pac_file.write("}") new_pac_file.close() os.remove(hash_file) hash_file_create=open(hash_file,'w') hash_file_create.write(sha1Hashed) hash_file_create.close() shutil.copyfile(new_pac_filee,old_pac_file) subprocess.call("%s %s %s" % ('service', 'squid', 'reload'),shell=True) else: syslog.syslog(syslog.LOG_WARNING,"Hashes are same kutuphane_veritabanlari.squid config file hasn't been changed.") else: hash_file_create=open(hash_file,'w') hash_file_create.write(sha1Hashed) hash_file_create.close() squid_config_file.close()