jueves, 21 de septiembre de 2017

WINDOWS. PS. Easy uptade attributes.

I explain a simple and quicly script to update AD attributes. At this example update the "location" atribute from AD computers.

[ ] File: UpdatePC.PS1

Import-Module ActiveDirectory
$Delimiter = "," 
$PCs = Import-csv C:\Script\UpdateADattributes\PCs.csv -Delimiter $Delimiter
ForEach($Computer In $PCs)
    Set-ADComputer -Identity $Computer.Name -Location $Computer.NewLocation -Confirm:$false

[ ] File: PCs.csv


[ ] Check

Command: get-adcomputer w1001445 -properties * | Select name, location

Check at Windows 2012 R2
by GoN | Published: September 21, 2017 | Last Updated: 

lunes, 18 de septiembre de 2017


For change the Nagios logo to other picture, there are a lot of ways, this is one method:

[ ] In Nagios Core Version 4.2.4 save your logo in /usr/local/nagios/share/images/sblogo.png file



[ ] In Nagios XI. One option for custom logo component is navigate to Admin > Manage Components > Custom Logo. 

Fill the new file logo in "Logo Image:"


Check at Nagios
by GoN | Published: September 19, 2017 | Last Updated: 

domingo, 17 de septiembre de 2017

WINDOWS. PS. You cannot run this script is not digitally signed.

To solve the problem for run on script that is not digitally signed:

Command: powershell.exe -ExecutionPolicy ByPass -command "XXXXXXXXXX"

Check at Windows 2012 R2
by GoN | Published: September 18, 2017 | Last Updated: