Hi mates,
few weeks ago a friend asked me to prepare a report that recaps every single external consultant situation.
For "situation" she meant some information that could help her to have a quick view on the status of the account, expiration date and who's internally responsible to "manage" the partner.
Having a lot of project "on going" she wanted to be sure that all nominal accounts have a related internal manager defined.
Since she usually put an expiration date for consultants she wants to be sure that every single manager receive, weekly, a report that
shows what's the current situation.
Powershell, automation, IT problem solving, Windows, Linux and more.......
Wednesday, November 9, 2016
Monday, October 24, 2016
Powershell --> Powerquick : bulk change DHCP Scope Options
Hi mates,
few months ago a customer asked me to automate some changes on several DHCP server inside his network.
The objective was to change the DNS servers for at least 50 scopes......a lot....and do it manually seemed to be time consuming.
Few things.....nothing special.
Pay attentions that DHCP command in Powershell are available only with Windows 8.1 and Windows 2012.
First of all point a server and obtain the list of Scope ID......then....it's done !!!
few months ago a customer asked me to automate some changes on several DHCP server inside his network.
The objective was to change the DNS servers for at least 50 scopes......a lot....and do it manually seemed to be time consuming.
Few things.....nothing special.
Pay attentions that DHCP command in Powershell are available only with Windows 8.1 and Windows 2012.
First of all point a server and obtain the list of Scope ID......then....it's done !!!
Friday, October 21, 2016
Powershell --> Powerquick : search email alias and prepare for Exchange bulk migration
Hi mates,
few days ago a customer asked me to automate some steps of the exchange 2003 --> exchange 2010 migration.
Few things.....nothing special.
Point an OU, extract users list, retrieve their alias and then create the file to feed another part of the script that launch the move request.
few days ago a customer asked me to automate some steps of the exchange 2003 --> exchange 2010 migration.
Few things.....nothing special.
Point an OU, extract users list, retrieve their alias and then create the file to feed another part of the script that launch the move request.
Thursday, September 1, 2016
Wednesday, August 31, 2016
DNS Poisoning : how it works, precautions and a quick demo
Hi mates,
few months ago some friends asked me some additional info regarding specific attacks that were done to redirect user traffic to a desired/different web site.
The attack is called DNS Poisoning and it's done, simply speaking, polluting the DNS cache of specific servers. More popular is the web site attacked, more amplified will be the impact.
In that way when a user will try to resolve the name of the website that he/she is asking for, the DNS will give him/she a different IP instead of the right one.(consider that the same approach could be used for mail system for example)
few months ago some friends asked me some additional info regarding specific attacks that were done to redirect user traffic to a desired/different web site.
The attack is called DNS Poisoning and it's done, simply speaking, polluting the DNS cache of specific servers. More popular is the web site attacked, more amplified will be the impact.
In that way when a user will try to resolve the name of the website that he/she is asking for, the DNS will give him/she a different IP instead of the right one.(consider that the same approach could be used for mail system for example)
Friday, May 13, 2016
Powershell --> Powerquick : change Exchange 2003 user attributes
Hi mates,
a friend asked me if it is possible to manage specific parameters on his OLD Exchange environment.
Manage Exchange 2003 with Powershell is not possible...for sure is not possible as it is, conversely, with Exchange 2007 or newer versions.
So to modify, adjust, handle bunches of stuff you can leverage on Active Directory attributes.
Here below a quick example that shows how to change user quota for a specific group of user...logically if you want to do it with Powershell :
a friend asked me if it is possible to manage specific parameters on his OLD Exchange environment.
Manage Exchange 2003 with Powershell is not possible...for sure is not possible as it is, conversely, with Exchange 2007 or newer versions.
So to modify, adjust, handle bunches of stuff you can leverage on Active Directory attributes.
Here below a quick example that shows how to change user quota for a specific group of user...logically if you want to do it with Powershell :
Monday, May 9, 2016
Powershell : HTML report about event viewer errors
Hi mates,
few weeks ago a customer asked me if it was possible to receive, every morning, a sort of report that recaps all errors found in the System and Application log for each single server in the domain.
It's a long task : the script must connect remotely to each single server, analyze and retrieve all these kind of info.
Fortunately he added an important condition : only the Errors of the current day (or the previous if you prefer).
Anyway it remains a sort of "complication" : there are thousands of logs and the script may need hours to examine all.
few weeks ago a customer asked me if it was possible to receive, every morning, a sort of report that recaps all errors found in the System and Application log for each single server in the domain.
It's a long task : the script must connect remotely to each single server, analyze and retrieve all these kind of info.
Fortunately he added an important condition : only the Errors of the current day (or the previous if you prefer).
Anyway it remains a sort of "complication" : there are thousands of logs and the script may need hours to examine all.
Tuesday, April 19, 2016
Powershell : retrieve all groups and members in Active Directory
Hi mates,
I needed to extract, few weeks ago, some information from one of my customer's Active Directory.
I was worried about the format.....the final output for this huge information.
Searching and trying I found the way to extrapolate everything I need and write it to Excel in order to provide something that could be filtered, ordered, and so on.
Nothing special.....but useful
I needed to extract, few weeks ago, some information from one of my customer's Active Directory.
I was worried about the format.....the final output for this huge information.
Searching and trying I found the way to extrapolate everything I need and write it to Excel in order to provide something that could be filtered, ordered, and so on.
Nothing special.....but useful
Thursday, March 24, 2016
Cisco switches/routers : automate configuration backup
Hi mates,
a customer asked me how to automate the configuration backup for the internal switches. There are some 2950, 3750 , 3560 and so on.
Unfortunately there are a lot of non-free solutions but searching a little bit deeper I discovered that Cisco provides at least two different ways to do this.
So first of all you have to identify the server that will host the backup files.
Second identify which protocol you want to use to send, over the network, the backup to the selected server.
In my situation I've choose TFTP. There's a free TFTP server solution from Solarwind that is simple and works.
I've explained, briefly, two different solution : Kron and Archive.
With Kron you schedule an action to be done periodically. Kron does accept only EXEC CLI commands and, practically speaking, you will configure two different processes : a policy (that includes commands) and the scheduling (specifying the interval).
a customer asked me how to automate the configuration backup for the internal switches. There are some 2950, 3750 , 3560 and so on.
Unfortunately there are a lot of non-free solutions but searching a little bit deeper I discovered that Cisco provides at least two different ways to do this.
So first of all you have to identify the server that will host the backup files.
Second identify which protocol you want to use to send, over the network, the backup to the selected server.
In my situation I've choose TFTP. There's a free TFTP server solution from Solarwind that is simple and works.
I've explained, briefly, two different solution : Kron and Archive.
With Kron you schedule an action to be done periodically. Kron does accept only EXEC CLI commands and, practically speaking, you will configure two different processes : a policy (that includes commands) and the scheduling (specifying the interval).
Friday, March 18, 2016
Powershell --> Powerquick : get (some) important remote pc info
Hi mates,
here again with a quick Powershell script that could help you during the day by day routine.
Some info to retrieve from a remote pc that could be useful for a massive software installation, to group specific computer with specific software installed, to......it's up to your fantasy.
Obviously you can find thousand of this kind of script on the internet but I feel the need to share, share and share......
Improve it without any limit.....
here again with a quick Powershell script that could help you during the day by day routine.
Some info to retrieve from a remote pc that could be useful for a massive software installation, to group specific computer with specific software installed, to......it's up to your fantasy.
Obviously you can find thousand of this kind of script on the internet but I feel the need to share, share and share......
Improve it without any limit.....
Thursday, March 17, 2016
Powershell --> Powerquick : change Active Directory attributes for a specific group of users
Hi mates,
quick and dirty tips : change Active Directory user account attributes......I needed to do it for and old Exchange 2003 environment.
Only to give you a fast and reliable solution.....nothing more.
Here you are :
quick and dirty tips : change Active Directory user account attributes......I needed to do it for and old Exchange 2003 environment.
Only to give you a fast and reliable solution.....nothing more.
Here you are :
Tuesday, March 15, 2016
Powershell : manipulate Excel files
Hi mates,
I needed to manipulate some Excel files and merge some data with my customer's Active Directory.
The main goals were to :
1. be sure that the files were consistent
2. correct eventual anomalies
3. merge part of its contents with some specific fields of the Active Directory
Theoretically this is something that is usually made in accordance with the HR dept. In particular when they use a system the is totally different or separated from our main directory.
The fact is that for several purposes some fields needs to be populated : for example to assign budget or to split some costs between different sub-companies.
I needed to manipulate some Excel files and merge some data with my customer's Active Directory.
The main goals were to :
1. be sure that the files were consistent
2. correct eventual anomalies
3. merge part of its contents with some specific fields of the Active Directory
Theoretically this is something that is usually made in accordance with the HR dept. In particular when they use a system the is totally different or separated from our main directory.
The fact is that for several purposes some fields needs to be populated : for example to assign budget or to split some costs between different sub-companies.
Monday, February 1, 2016
Powershell : share and ACL on servers.......
Hi mates,
I needed to perform some information retrieving for an internal auditing.
I took a chance to review share and permission on all of our servers.
Here below a quick and easy script that exports everything on two separate files easy to import in Excel
I needed to perform some information retrieving for an internal auditing.
I took a chance to review share and permission on all of our servers.
Here below a quick and easy script that exports everything on two separate files easy to import in Excel
Wednesday, January 13, 2016
Powershell : find and move disabled computer account.....Active Directory cleaning
Hi mates,
I needed to perform some active directory cleaning.
The most important consideration about this activity is that most of the modern software are continuously in touch with AD, querying it, retrieving data and so on.
To have a partial clean situation we putted in production another script that disables the computer accounts that do not logon to the domain from 90 days.
Having a lot of disabled computers we would like to optimize also the vertical software that rely in AD.
I needed to perform some active directory cleaning.
The most important consideration about this activity is that most of the modern software are continuously in touch with AD, querying it, retrieving data and so on.
To have a partial clean situation we putted in production another script that disables the computer accounts that do not logon to the domain from 90 days.
Having a lot of disabled computers we would like to optimize also the vertical software that rely in AD.
Subscribe to:
Posts (Atom)