quinta-feira, 29 de outubro de 2015

Klmover–Kaspersky utility for changing Network agent settings

 

The utility is started via command prompt and has the following syntaxis:

klmover [-logfile LOGFILE] [-address SERVER_ADDRESS] [-pn NON_SSL_PORT] [-ps SSL_PORT] [-nossl] [-cert CERTIFICATE] [-silent] [- dupfix]

For example:

klmover -address 172.16.1.1 -logfile klmover.log

  • -logfile LOGFILE  - create a utility run log. By default, the information will be stored in the stdout.tx file; if run without this switch, error messages will be displayed on the screen;
  • -address SERVER_ADDRESS  - new Administration server name. Can contain IP address, NetBIOS or DNS name;
  • -pn NON_SSL_PORT - indicates to Network agent an Administration server port for establishing a non-secure connection. This switch is optional; the default port is 14000;
  • -ps SSL_PORT  - indicates to Network agent an Administration server port for establishing a secure connection. This switch is optional; the default port is 13000;
  • -nossl - connect to Administration server using a non-secure connection, Without this switch, Network agent will connect to Administration server using the secure SSL protocol.
  • -cert CERTIFICATE  - new Administration server certificate file path. This switch is optional;
  • -silent  - silent mode.
  • -dupfix - this switch is obligatory if you installed Network agent by some alternative method (e.g. restore from a system image) instead of using a distribution package.

quarta-feira, 28 de outubro de 2015

Nslookup – Common Usage Examples

 

https://blog.thesysadmins.co.uk/nslookup-common-usage-examples.html

Some Useful Office 365 PowerShell commands

 

1. Set Password never expired

Set Password never expired for Office 365 user

PowerShell command Syntax

  • PowerShell

    Set-msoluser –UserPrincipalName <UserPrincipalName> -PasswordNeverExpires $True


PowerShell command Example

  • PowerShell

    Set-MsolUser –UserPrincipalName John@o365info.com -PasswordNeverExpires $True
    Disable Password never expired option for a Office 365 user

PowerShell command Syntax

  • PowerShell

    Set-MsolUser –UserPrincipalName <UserPrincipalName>  -PasswordNeverExpires $False


PowerShell command Example

  • PowerShell

    Set-MsolUser -UserPrincipalName John@o365info.com -PasswordNeverExpires $False
    Set Password never expired for ALL Office 365 users (Bulk Mode)

PowerShell command Syntax

  • PowerShell

    Get-MsolUser | Set-MsolUser –PasswordNeverExpires $True
    Re-enable Password expired ( the default) for ALL Office 365 users (Bulk Mode)

PowerShell command Syntax

  • PowerShell

    Get-MsolUser | Set-MsolUser –PasswordNeverExpires $False

2. Set Password

Set a Predefined Password for Office 365 user

PowerShell command Syntax

  • PowerShell

    Set-MsolUserPassword –UserPrincipalName <UserPrincipalName> –NewPassword <New Password> -ForceChangePassword $False


PowerShell command Example

  • PowerShell

    Set-MsolUserPassword -UserPrincipalName John@o365info.com -NewPassword ww#322x -ForceChangePassword $False
    Set a Predefined Password for all Office 365 users (Bulk mode)

PowerShell command Syntax

  • PowerShell

    Get-MsolUser |%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName –NewPassword <password> -ForceChangePassword $False}

PowerShell command Example

  • PowerShell

    Get-MsolUser |%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName –NewPassword Abc#45 -ForceChangePassword $False}
    Set a Predefined Password for Office 365 users imported from a CSV File

Step 1: Export Office 365 users account


PowerShell command Syntax

  • PowerShell

    Get-MsolUser | Select UserPrincipalName| Export-CSV
    Step 2:

Set a Predefined Password

  • PowerShell

    Import-CSV  |%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName –NewPassword <Password>  -ForceChangePassword $False}
    Example: Step 1: Export Office 365 users account

Predefined Password-CSV

PowerShell command Example

  • PowerShell

    Get-MsolUser | Select UserPrincipalName|Export-CSV C:\Temp\o365users.csv
    PowerShell

    Import-CSV C:\Temp\o365users.csv |%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName –NewPassword AbcAs123 -ForceChangePassword $False}


Create new Office 365 user and set a unique temporary password by import the information from CSV file

temp password

You can download a sample CSV file – Password.csv
PowerShell command Example

  • PowerShell

    Import-CSV –Path C:\Temp\users.csv| ForEach-Object { New-MsolUser -UserPrincipalName $_.UserPrincipalName -FirstName $_.FirstName -LastName $_.LastName  -DisplayName "$($_.FirstName) $($_.LastName)" –Password $_.Password –UsageLocation “US” }

Provisioning Office 365 user and export information from Active Directory

In case that you need to export Active Directory on-Premise user account based on a specific parameter, you can use the PowerShell cmdlets named – get-aduser (you will need to use PowerShell console from DC or import the Active Directory cmdlets to the existing PowerShell console


For example:

Example 1 – display or export, all of the Active Directory users that are located in a specific OU.

In our specific scenario, the domain name is – o365info.com and the specific OU is – Test

Display information about – all of the Active Directory users that are located in a specific OU

PowerShell command Example

  • PowerShell

    Get-ADUser -LDAPfilter '(name=*)' -searchBase {OU=test,DC=o365info,dc=local}

Export to a CSV file information about – all of the Active Directory users that are located in a specific OU + choose a specific data fields.

  • PowerShell

    $usersfromOU = Get-ADUser -LDAPfilter '(name=*)' -searchBase {OU=test,DC=o365info,dc=local}
    $usersfromOU | export-csv C:\usersbyOU.csv
    Example 2 – display + export information about Active Directory users from a specific department.

The PowerShell command syntax is:

  • PowerShell

    $Users = Get-AdUser -filter "department -eq '<name>'"

An example to a scenario in which we want to export information only about Active Directory users that belong to the marketing department could be

  • PowerShell

    $aduserdep = Get-AdUser -filter "department -eq 'marketing'" -Properties City,Title,Department,GivenName,Surname
  • PowerShell

    $aduserdep | export-csv c:\aduserdep.csv
    Set a Temporary Password for a specific user

PowerShell command Syntax

  • PowerShell

    Set-MsolUserPassword –UserPrincipalName  <UserPrincipalName> –NewPassword <New Password>-ForceChangePassword $True

PowerShell command Example

  • PowerShell

    Set-MsolUserPassword -UserPrincipalName John@o365info.com -NewPassword ww@322x -ForceChangePassword $True

Set a Temporary Password for all Office 365 users (Bulk Mode)

PowerShell command Syntax

  • PowerShell

    Get-MsolUser | Set-MsolUserPassword –NewPassword <New Password> -ForceChangePassword $False

PowerShell command Example

  • PowerShell

    Get-MsolUser | Set-MsolUserPassword -NewPassword ww#322x -ForceChangePassword $False

3. Office 365 Password Policy

PowerShell command Syntax

  • PowerShell
    Set-MsolPasswordPolicy -DomainName  <Domain Name> -NotificationDays <Number Of Days> –ValidityPeriod <Number Of Days>

PowerShell command Example

  • PowerShell

    Set-MsolPasswordPolicy -DomainName o365info.com -NotificationDays 15 -ValidityPeriod 180

4. Display Password settings

Display Password settings for all Office 365 users

PowerShell command Syntax

  • PowerShell

    Get-MsolUser | Select UserPrincipalName,PasswordNeverExpires

Display information about Office 365 Password Policy

PowerShell command Syntax

  • PowerShell

    Get-MsolPasswordPolicy –DomainName <Domain Name>

PowerShell command Example

  • PowerShell

    Get-MsolPasswordPolicy –DomainName  o365info.com

Connect to Office 365 Cloud Services using PowerShell

You can use the following versions of Windows:
  • Windows 8 or Windows 8.1
  • Windows Server 2012 or Windows Server 2012 R2
  • Windows 7 Service Pack 1 (SP1)*
  • Windows Server 2008 R2 SP1*
* You need to install the Microsoft .NET Framework 4.5 or 4.5.1 and then either the Windows Management Framework 3.0 or the Windows Management Framework 4.0. For more information, see Installing the .NET Framework 4.5, 4.5.1 and Windows Management Framework 3.0 or Windows Management Framework 4.0.

You need to install the modules that are required for Office 365, SharePoint Online, and Skype for Business Online:

  • Microsoft Online Service Sign-in Assistant for IT Professionals RTW
  • Windows Azure Active Directory Module for Windows PowerShell (64-bit version)
  • SharePoint Online Management Shell
  • Windows PowerShell Module for Lync Online (Skype for Business Online)


Connect to Exchange Online

On your local computer, open Windows PowerShell and run the following command.

  • $UserCredential = Get-Credential

In the Windows PowerShell Credential Request dialog box, type your Exchange Online user name and password, and then click OK.


  • Run the following command.


$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection


Run the following command.



  • Import-PSSession $Session


If you get and error like "Import-PSSession : Files cannot be loaded because running scripts is disabled on this system. P", run this: 



  • Set-ExecutionPolicy Unrestricted
and then again: 

  • Import-PSSession $Session
When done: Remove-PSSession $Session to clear the session

Clear Exchange logs when backup software is not

 

diskshadow
add volume d: (or your Exchange drive)
begin backup
create
end backup

Change the low resolution (1024x600) 10” screens


This only works on Windows 7/8 and 10 equipped netbooks.
Here’s what you have to do:
1) Run regedit
1a) If you are not on higest tree level, go to him (by click on “Computer” from key tree)
2) Search and modify all values “Display1_DownScalingSupported” from “0” to “1”
3) Restart the system
4) Enjoy the two new resolutions: 1024×768 px and 1152×864 px

Generate new passwords

 

In case you need to generate a lot of passwords:

http://www.ibeast.com/content/tools/PasswordGenerate/

terça-feira, 27 de outubro de 2015

Acrobat/Reader: Z@xxx.tmp files left behind in Temp folder after printing

 

Issue

If you are printing files with Adobe Reader/Acrobat you may notice that some tmp files are created in your Windows Temp folder:

C:\Documents and Settings\<user>\Local Settings\Temp

with file names similar to:

Z@R3A.tmp

Z@R3C.tmp

Z@R3E.tmp

Z@R38.tmp

Z@R3B.tmp

http://blogs.adobe.com/dmcmahon/2011/11/08/acrobatreader-tmp-files-left-behind-in-temp-folder-after-printing/

terça-feira, 20 de outubro de 2015

Windows Filtering Platform Audit Noise

 

To many Security events from Windows Filtering Platform???

Try this:

computer configuration –> policies –> windows settings –> security settings –> advanced audit policy configuration –> audit policies –> object access. Then double-click “Audit Filtering Platform Connection” and check only the box next to “configure the following audit events.” DO NOT CLICK THE OTHER TWO BOXES. Repeat for “Audit Filtering Platform Packet Drop”

https://networksavy.wordpress.com/2011/05/11/windows-filtering-platform-audit-noise/

quinta-feira, 15 de outubro de 2015

The Mega Tool - Sysinternals Suite

 

https://technet.microsoft.com/en-gb/sysinternals/bb842062

From their website:

Introduction

The Sysinternals Troubleshooting Utilities have been rolled up into a single Suite of tools. This file contains the individual troubleshooting tools and help files. It does not contain non-troubleshooting tools like the BSOD Screen Saver or NotMyFault.

The Suite is a bundling of the following selected Sysinternals Utilities:

AccessChk

AccessEnum

AdExplorer

AdInsight

AdRestore

Autologon

Autoruns

BgInfo

CacheSet

ClockRes

Contig

Coreinfo

Ctrl2Cap

DebugView

Desktops

Disk2vhd

DiskExt

DiskMon

DiskView

Disk Usage (DU)

EFSDump

FindLinks

Handle

Hex2dec

Junction

LDMDump

ListDLLs

LiveKd

LoadOrder

LogonSessions

MoveFile

NTFSInfo

PendMoves

PipeList

PortMon

ProcDump

Process Explorer

Process Monitor

PsExec

PsFile

PsGetSid

PsInfo

PsPing

PsKill

PsList

PsLoggedOn

PsLogList

PsPasswd

PsService

PsShutdown

PsSuspend

RAMMap

RegDelNull

Registry Usage (RU)

RegJump

SDelete

ShareEnum

ShellRunas

Sigcheck

Streams

Strings

Sync

Sysmon

TCPView

VMMap

VolumeID

WhoIs

WinObj

ZoomIt

Shared calendar in Public Folder (Office 365)


http://windowsitpro.com/office-365/public-folders-office-365-exchange-online-new-beginning
Important to check:

Exchange Online Limits

https://technet.microsoft.com/en-us/library/exchange-online-limits.aspx

See what is really starting with your windows machine

 

Best tool out there and it’s free:

https://technet.microsoft.com/en-gb/sysinternals/bb963902.aspx

(from their website)
Introduction

This utility, which has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login, and when you start various built-in Windows applications like Internet Explorer, Explorer and media players. These programs and drivers include ones in your startup folder, Run, RunOnce, and other Registry keys. Autoruns reports Explorer shell extensions, toolbars, browser helper objects, Winlogon notifications, auto-start services, and much more. Autoruns goes way beyond other autostart utilities.

Autoruns' Hide Signed Microsoft Entries option helps you to zoom in on third-party auto-starting images that have been added to your system and it has support for looking at the auto-starting images configured for other accounts configured on a system. Also included in the download package is a command-line equivalent that can output in CSV format, Autorunsc.

You'll probably be surprised at how many executables are launched automatically!

Activate Windows 10 with W7/8/8.1 keys

 

The latest preview release of Windows 10 includes the first glimpse of a new feature designed to eliminate one specific activation headache. When this change rolls out to the general public next month, you'll be able to use your Windows 7, 8, or 8.1 product key to complete a Windows 10 upgrade.

see more in:

http://www.zdnet.com/article/next-big-windows-10-release-will-ease-activation-hassles/?tag=nl.e541&s_cid=e541&ttag=e541&ftag=TRE7ce1dc9

Exchange 2013 multi tenant


Some useful links:
https://technet.microsoft.com/en-us/office/dn756468.aspx
https://technet.microsoft.com/en-us/library/jj862352(v=exchg.150).aspx
Step-by-step guide:
https://www.geekandi.com/2013/08/02/exchange-2013-multi-tenancy-step-by-step/