Thursday, 22 August 2013

Microsoft: Bulk Folder / File / NTFS Permission Configuration

In order for bulk folder / file / ntfs permission configuration, you may use the ICACLS command.

Syntax: -
icacls <FileName> [/grant[:r] <Sid>:<Perm>[...]] [/deny <Sid>:<Perm>[...]] [/remove[:g|:d]] <Sid>[...]] [/t] [/c] [/l] [/q] [/setintegritylevel <Level>:<Policy>[...]]

icacls <Directory> [/substitute <SidOld> <SidNew> [...]] [/restore <ACLfile> [/c] [/l] [/q]]

Parameter: -

Example: - 
1. Full Control
icacls C:\test\subtest /grant Domain\user1:(OI)(CI)F

2. Special permission
icacls C:\test\subtest /grant Domain\user1:(OI)(CI)(M,DC)

NetApp: Bulk Quota Setting

Follow the steps below for bulk quota setting:

1. Go to //<filer>/c$/etc/quotas
2. Open the quotas file in WordPad
3. Add the following command: -

    /vol/<volume1>/<username1> tree <quota1> - - - -
    /vol/<volume2>/<username2> tree <quota2> - - - -
    /vol/<volume3>/<username3> tree <quota3> - - - -
    .
    .
    .
< continue until the last quota that you would like to set >

Example: -
     /vol/vol_nfs_test_01/user1 tree 2097152K - - - -
     /vol/vol_nfs_test_02/user2 tree 5126152K - - - -
     /vol/vol_nfs_test_03/user3 tree 2567152K - - - -
    .
    .
    .
     /vol/vol_nfs_test_50/user50 tree 2097152K - - - -

4. Leave a blank paragraph at the end of your last command line
5. Save the quotas file

NetApp: Bulk QTree Creation

Follow the steps below for bulk QTree creation:

1.  Log on to your NetApp CLI ( Command Line Interface )
2. Type in the following command for bulk QTree creation: -

    qtree create /vol/<volume1>/<username1>
    qtree create /vol/<volume2>/<username2>
    qtree create /vol/<volume3>/<username3>
    .
    .
    .
    < continue this command until the last QTree that you would like to create >

Tuesday, 13 August 2013

Microsoft: WiseSoft Bulk AD Users

WiseSoft Bulk AD Users is a tool that makes it easy to perform bulk updates to Active Directory User account attributes. Previously you might have wrote scripts to perform these types of updates or gone through a very tedious process of performing these updates one at a time via the ADU&C interface. Bulk AD Users makes this process much simpler and also provides an XML log file that allows you to undo any unwanted updates. The application includes powerful query capabilities and has a number of different ways to allow you to update user account data. e.g. Update From CSV, Edit In Excel, Edit In Grid, Bulk Modify (Similar to the User dialog in ADU&C, but it works on any number of user accounts).




Reference:
Bulk AD Users

Microsoft: Fine Grain Password Policy Tool

With Windows Server 2008, administrators can now apply password policies at layers lower than “the domain”. These “fine-grained password policies” allow for applying different restrictions for password and account lockout policies for different users in a domain.

Christoffer Andersson developed the Fine-Grained Password Policy Tool which extends the capabilities of the GPMC and adds PowerShell scripting capabilities for easy administration of these new policies.

I helped make the Active Directory Domain Services API wrapper as well as deployment project compliant with the 64-bit Windows Server platform. Björn Österman also contributed to the development of the application.




Reference:

Thursday, 20 June 2013

Microsoft: Active Directory (AD) Password Expiry Email Notification with Multiple Attachments and Summary Report

This Powershell script allows you to notify your users ( with multiple attachments ) that their AD password will expire soon or has expired. Furthermore, as a system administrator, you are going to receive a list of users whose AD password is going to expire soon or has expired.
# Start of script
# Purpose:
# Powershell script to find out a list of users
# whose password is expiring within x number of days (as specified in $days_before_expiry).
# Email notification with multiple attachments will be sent to them reminding them that they need to change their password.

#####################
# Variables to change
#####################
# Days to Password Expiry
$days_before_expiry = 14
# SMTP Server to be used
$smtp = "192.168.1.2"
# "From" address of the email
$from = "email@abc.com"
# Administrator email
$admin = "email@abc.com"
# Web address of your OWA url - tested only with Exchange 2010 SP2
$OWAURL = "mail.abc.com"
# First name of administrator
$AdminName = "System Administrator"
# Define font and font size
# ` or \ is an escape character in powershell
$font = "<font size=`"3`" face=`"Calibri`">"

##########################################
# Should require no change below this line
# (Except message body)
##########################################
function Send-Mail{
param($smtpServer,$from,$to,$attach,$subject,$body)
$smtp = new-object system.net.mail.smtpClient($SmtpServer)
$mail = new-object System.Net.Mail.MailMessage
$mail.from = $from
$mail.to.add($to)
foreach ($filetoattach in $attach)
{
$att = New-Object Net.Mail.Attachment($filetoattach.fullname)
$mail.attachments.add($att)
}
$mail.subject = $subject
$mail.body = $body
# Send email in HTML format
$mail.IsBodyHtml = $true
$smtp.send($mail)
}
# Newline character
#$newline = [char]13+[char]10
$newline = "<br>"
# Get today's day, date and time
$today = (Get-date)
# Loads the Quest.ActiveRoles.ADManagement snapin required for the script.
# (Will unload once powershell is exited)
# chose either one below
# Add-pssnapin "Quest.ActiveRoles.ADManagement"
# Get-PSSnapin "Quest.ActiveRoles.ADManagement"
add-pssnapin "Quest.ActiveRoles.ADManagement"
Set-QADPSSnapinSettings -DefaultSizeLimit 0

# Retrieves list of users whose account is enabled, has a passwordexpiry date and whose password expiry date within (is less than) today+$days_before_expiry
$users_to_be_notified = Get-QADUser  -SearchRoot "OU=USA,DC=abc,DC=local" -Enabled -passwordNeverExpires:$False | Where {($_.PasswordExpires -lt
$today.AddDays($days_before_expiry))}
# Send email to notify users
foreach ($user in $users_to_be_notified) {
# Calculate the remaining days
# If result is negative, then it means password has already expired.
# If result is positive, then it means password is expiring soon.
$days_remaining = ($user.PasswordExpires - $today).days
        # Set font for HTML message
        $body = $font
        # For users whose password already expired
        if ($days_remaining -le 0) {
                # Make the days remaining positive (because we are reporting it as expired)
                $days_remaining = [math]::abs($days_remaining)
                # Add it in a list (to be sent to admin)
                $expired_users += $user.name + " - <font color=blue>" + $user.LogonName + "</font>'s password has expired <font color=blue>" + $days_remaining + "</font> day(s) ago." + $newline
                # If there is an email attached to profile
                if ($user.Email -ne $null) {
                        # Email notification to user
                        $to = $user.Email
                        $subject = "Reminder - Password has expired " + $days_remaining + " day(s) ago."
                        # Message body is in HTML font
                        $body += "Dear " + $user.givenname + "," + $newline + $newline
                        $body += "This is a friendly reminder that your password for account'<font color=blue>" + $user.LogonName + "</font>' has already expired "+ $days_remaining + " day(s) ago." + $newline + $newline
                        $body += "Please contact email@abc.com ( EXT. 9999 ) to arrange for your password to be reset."
                        }
                else {
                        # Email notification to administrator
                        $to = $admin
                        $subject = "Reminder - " + $user.LogonName+ "'s Password has expired " + $days_remaining + " day(s) ago."
                        # Message body is in HTML font
                        $body += "Dear administrator," + $newline + $newline
                        $body += "<font color=blue>" + $user.LogonName+ "</font>'s password has expired <font color=blue>" + $days_remaining + " day(s) ago</font>."
                        $body += " However, the system has detected that there is no emailaddress attached to the profile."
                        $body += " Therefore, no email notifications has been sent to " + $user.Name + "."
                        $body += " Kindly reset the password and notify user of the password change."
                        $body += " In addition, please add a corresponding email address to the profile so emails can be sent directly for future notifications."
                        }
                # Put a timestamp on the email
                $body += $newline + $newline + $newline + $newline
                $body += "<h5>Message generated on: " + $today + ".</h5>"
                $body += "</font>"
                # Invokes the Send-Mail function to send notification email
  # Comment out this line if you do not want to send email to users with already expired passwords.
                Send-Mail -smtpServer $smtp -from $from -to $to -attach $null -subject $subject -body $body
        }
        # For users whose password is expiring
        # if ($days_remaining -gt 0) {
        else {
                # Add it in a list (to be sent to admin)
                $expiring_users += $user.name + " - <font color=blue>" +$user.LogonName + "</font> has <font color=blue>" + $days_remaining +"</font> day(s) remaing left to change his/her password." + $newline
                # If there is an email attached to profile
                if ($user.Email -ne $null) {
                        # Email notification to user
                        $to = $user.Email
                        $subject = "Reminder - Password is expiring in " + $days_remaining +" day(s)."
$files = Get-ChildItem “C:\Guides”
             # Message body is in HTML font
             $body += "Dear " + $user.givenname + "," + $newline + $newline + $newline
             $body += "This is a friendly reminder that your AD account password '<font color=blue>" + $user.LogonName + "</font>' is due to expire in "+ $days_remaining + " day(s)." + $newline + $newline + $newline
                        $body += "Please refer to the attachments for the quick guides." + $newline + $newline
                        $body += "For Windows user:" + $newline
                        $body += "Change_Password_Windows.pdf" + $newline + $newline
                        $body += "For Mac user:" + $newline
                        $body += "Change_Password_Mac.pdf" + $newline + $newline
                        $body += "Please remember to change your password before <fontcolor=blue>" + $user.PasswordExpires.date.tostring('dd/MMM/yyyy') +"</font>."
                        }
                else {
                        # Email notification to administrator
                        $to = $admin
                        $subject = "Reminder - " + $user.LogonName+ "'s Password is expiring in " + $days_remaining + " day(s)."
                        # Message body is in HTML font
                        $body += "Dear administrator," + $newline + $newline
                        $body += "<font color=blue>" + $user.LogonName+ "</font>'s passwordis expiring in <font color=blue>" + $days_remaining + " day(s)</font>."
                        $body += " However, the system has detected that there is no emailaddress attached to the profile."
                        $body += " Therefore, no email notifications has been sent to " +$user.Name + "."
                        $body += " Kindly remind him/her to change the password before <fontcolor=blue>" + $user.PasswordExpires.date.tostring('dd/MMM/yyyy') +"</font>."
                        $body += " In addition, please add a corresponding email address to the profile so emails can be sent directly for future notifications."
                        }
                # Put a timestamp on the email
                $body += $newline + $newline + $newline + $newline
                $body += "<h5>Message generated on: " + $today + ".</h5>"
                $body += "</font>"
                # Invokes the Send-Mail function to send notification email
                Send-Mail -smtpServer $smtp -from $from -to $to -attach $files -subject $subject -body $body
        }
}
# If there are users with expired password or users whose password is
# expiring soon
if ($expired_users -ne $null -or $expiring_users -ne $null) {
                # Email notification to administrator
                $to = $admin
                $subject = "< Info > Password Expiry Report"
                # Message body is in HTML font      
                $body = $font
                $body += "Dear " + $AdminName + ","+ $newline + $newline
                $body += "The following users' passwords are expiring soon or have already expired." + $newline + $newline + $newline
                $body += "<b>Users with expired passwords:</b>" + $newline
                $body += $expired_users + $newline + $newline
                $body += "<b>Users with passwords expiring soon:</b>" + $newline
                $body += $expiring_users
                # Put a timestamp on the email
                $body += $newline + $newline + $newline + $newline
                $body += "<h5>Message generated on: " + $today + ".</h5>"
                $body += "</font>"
                # Invokes the Send-Mail function to send notification email
                Send-Mail -smtpServer $smtp -from $from -to $to -attach $null -subject $subject -body $body
}
# End of script 

Tuesday, 18 June 2013

IT Technology: Geo-Socialization ( Mega Trends )

Mega Trends

What will be the Mega Trends that will shape and influence the world by the end of this decade? Frost & Sullivan which has has launched a Visionary Innovation Research Programme has identified several interest trends:  development of Mega cities, regions and corridors, "Smart" emerging as the new Green, Geo Socialization, Innovating to Zero, Beyond BRIC: The Next Game Changers, Space Jam, Personal Robots, e-Mobility and New Business Models, to name a few.

The objective of Frost & Sullivan research  is to provide companies with special reports to focus on the evolution of these global trends to help them drive growth and innovation in a rapidly changing environment, a press release said.

A brave new world emerges from Frost & Sullivan's recent research, "World's Top Global Mega Trends to 2020 and Implications to Business, Society and Cultures." According to the analysis, sustainability was one of the major Mega Trends that shaped human, organisation and government behavior in the last decade. The study forecasts health, wellness and well-being with a much wider definition than mere healthcare, which will include body, mind and soul as the most important factor of discussion and differentiation in this decade. It reveals that women empowerment will reach new heights, with one in three workers being a woman and up to 40 percent of boardrooms in some nations comprising women by 2020. The world will also witness reverse brain drain, wherein the vast vacancies for CXOs in countries like India will be filled not only by returning Indians, but also by Americans and Europeans seeking better prospects.

Frost & Sullivan Partner, Sarwant Singh explains: "Frost & Sullivan defines Mega Trends as global, sustained and macroeconomic forces of development that impact business, economy, cultures, careers and personal lives, thereby defining our future world and its increasing pace of change."

Mr Singh adds: "The unique feature of this Visionary Innovation Research Programme, compared to other predictive programmes out there, lies in its ability to not only identify and evaluate emerging Mega Trends, but to also to translate those opportunities to everyday business and personal life -- the macro to micro approach. In other words, we are not just throwing out forecasts for the future, but showing organizations immediate opportunities and threats in the here and now."

There will be many interesting Mega Trends to watch out for. First, future urbanization will drive integration of core city centres or downtowns with suburbs and satellite cities, resulting in expanding boundaries from the current average of 25 miles (40 km) to around 40 miles (64 km). We will witness the emergence of 30 Mega-cities, 15 Mega-regions and at least 10 Mega-corridors with over 20 million people by 2020. Urbanization will lead to new hub and spoke business models for healthcare, logistics, retailing and many other functions, forcing organizations to re-think their 'Urban' business model.

Second, e-Mobility will redefine personal mobility in the future. Over 40 million electric vehicles, including electric pedal cycles, scooters, four-wheelers and buses will be sold annually around the globe in 2020. The opportunity in the e-Mobility market is not in making cars but in its value chain, batteries (including second life and recycling), charging stations and packaging innovative mobility solutions such as 'pay by electrons.'

The next level of social networking will focus on geographic services and capabilities such as geocoding and geotagging to enable additional social dynamics. User-submitted data with profiles and interests will be matched with location-based services to connect and co-ordinate with surrounding people or events. This type of geo-networking will drive markets, businesses and individuals to interact, advertise and promote in real time.

Another trend identified by Frost & Sullivan is Innovating to Zero. This trend examines a world of zero emissions, zero accidents, zero fatalities, zero defects, zero breaches of security and carbon-neutral factories.


Geo-Socialization

In the year 2020 at the busiest street in town, imagine yourself walking down the street one afternoon and your mobile phone gives you the following alerts:

  • Your buddy is at a bar nearby 
  • Your favorite restaurant down the street is offering a special on your favorite food
  • A shop around the corner is offering a discount sale on your preferred clothing line

Welcome to the future of social networking: Geo Socialization. While you might be conflicted in choosing the best option from these different alerts, this next generation of socialization will work on geographic services and capabilities, such as geocoding and geotagging, to enable additional social dynamics. In simple terms, your profile and interests and other user-submitted data will be matched with location-based services to connect and coordinate with surrounding people or events (such as meet-ups, concerts, or nightclub and restaurant reviews).

The possibilities and opportunities of geo socialization are endless; we are talking about a world where markets, businesses and individuals are driven by the need to interact, advertise and promote in real time. This will result in new trends of digital marketing, socializing and networking, furthering the evolution of interaction between individuals and organizations. Business will now thrive on new digital marketing tools, promotions and offers. For example, real estate agents will advertise properties on sale and provide specs on value/price and address. An information bar with contact numbers will enable such businesses to capitalize on opportunities and potential contacts on a real-time basis. This would imply that businesses will soon need to be equipped with the infrastructure and resources to respond to real-time demand to cater to a whole new spectrum of customers who react to geographically tagged services. Additionally, this trend will also force investments from the retail, entertainment and hospitality industries to upgrade their systems with new IT software to enable these services, thereby bringing a new source of revenue to mobile operators and IT software and system houses. It will allow these industries to manage their inventory in real time and push promotions when inventory piles up or to fill capacity, as in empty restaurants.

Meeting potential customers can be extended to various scenarios. A series of alerts about different users in a business conference would help a user network with potential clients and probably on a job prospect as well! Background information on different users about their interests or business domain will enhance networking skills and broaden the list of contacts.

Layar, the world’s first mobile augmented reality browser now available in the market, is a step toward this vision. Layar operates using a combination of GPS, mobile phone camera and compass to identify a user’s location and retrieve information on geographical coordinates that can be seen through the camera view. By simply pointing the visual search engine in any direction, Layar gives information on exciting places, clubs, bars, cash machines, restaurants, shops and theaters. However, Frost & Sullivan envisions a more sophisticated and real-time location mapping system to develop and evolve, furthering the dimensions of social networking and collaboration from that which Layar currently offers. Geo socialization will not only point out exciting places but will match interests with services, location and people around the user, resulting in a more customized way of networking.

Technologies and software are currently being developed toward this MegaTrend. Geo socialization will change the way we think, move, interact, communicate, do business and capitalize on opportunities in the future. So while we are busy Twittering and using Facebook in 2010, let us welcome this new technology and geographical-based type of socialization that will influence our social lives for years to come.


References:
1.  Mega Trends 2020: Suburban growth, Geo socialization, e-mobility

2.  Geo Socialization: The Next Trend in Social Networking