Skip to main content

Posts

Showing posts from May, 2017

Create New Active Directory Users with Excel and PowerShell

Import users from an Excel spreadsheet Even if you don’t create new users in bulk often, when you have more than one new user to deal with, importing from a comma-delimited file is faster than using the GUI server administration tools or manually typing PowerShell commands. Just fill out the fields in the spreadsheet, run the script and the job is done. Use an Excel spreadsheet to import new Active Directory users (Image: Russell Smith) In the script below, I’ve used a simple foreach loop and the import-csv cmdlet to import and generate the new user accounts. The only additional code I’ve added is a split to separate users’ first and second names in the .csv file’s Name field, to populate the –givenName and –surname parameters, for the sake of completeness and to keep the number of columns in the .csv file to a minimum. PowerShell 1 2 3 4 5 6 7 import-csv -path c : \ temp \ users . csv | foreach { $givenName ...

Ping script with time and date

@echo off set /p host=host Address: set logfile=Log_%host%.log echo Target Host = %host% >%logfile% for /f "tokens=*" %%A in ('ping %host% -n 1 ') do (echo %%A>>%logfile% && GOTO Ping) :Ping for /f "tokens=* skip=2" %%A in ('ping %host% -n 1 ') do (     echo %date% %time:~0,2%:%time:~3,2%:%time:~6,2% %%A>>%logfile%     echo %date% %time:~0,2%:%time:~3,2%:%time:~6,2% %%A     timeout 1 >NUL     GOTO Ping) create a batch file and run

Howto Configure Zabbix Proxy for External Monitoring on CentOS 7

Zabbix is one the best Open Source network monitoring tool for monitoring an infrastructure. It has many features to monitor services and hosts from low level to high level. So among its all features, we are going to discuss and setup its one the most important and useful feature to provision Zabbix Proxy. To implement Zabbix Proxy for centralized and distributed monitoring is good for your remote host monitoring. When all agents and proxies reports to one Zabbix server and all data is being collected at central location. How it Works Zabbix Proxies are useful when a server is is not able to communicate directly to the monitored machines. This is common when Organizations have to be monitored, or when there are some restrictions in a large corporate network. Once we had done with Zabbix Proxy setup then connections to the Zabbix Server come from the Proxy Server which will do all the monitoring on the behalf of Zabbix server.           [root...