Welcome in my blog

How to import all DNS records from one server to another

April 27, 2016 Leave a comment

itprofessors

sometimes when migrating the domain from one domain to a new domain , you have to export all the DNS records from the source domain and import them into the target domain.

Here is a quick way of doing it:

Part A – Export the DNS records from the source server.

on the source DNS server

1.open DNS managment.

2.right click on the relevant zone->export list

3.save the file , and copy it to the target server.

The output should look like this

in this example i would want to export only the static DNS records, so i will filter column D  and leave only the static records.

Part B – Import the static entries into the target server

1.We will use DNSCMD to import the DNS entries we exported in Part A.
2.Open the file you saved in step A, in Excel
3.Delete any of the rows that you…

View original post 253 more words

Categories: Windows Client

Enable Ediscovery inplace hold and Litigation hold office365 using powershell

April 27, 2016 Leave a comment

before enable ediscovery inplace hold and litigation hold you must to connect Microsoft Online using Windows Azure Active Directory Module for windows Powershell,

here step by step to enable ediscovery in place hold and litigation hold

  1. On your local computer, open Windows PowerShell and run the following command.
    $UserCredential = Get-Credential
  2. Run the following command.
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange 
    -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential 
    $UserCredential -Authentication Basic -AllowRedirection
    
  3. Run the following command.
    Import-PSSession $Session
  4. Enable Edisocver Inplace hold
    New-MailboxSearch "deby sandra" -sourcemailboxes "deby.sandra@demagnum.com" 
    -estimateonly -InplaceHoldEnabled $true
  5. Start Mailbox-search
     Start-MailboxSearch -Identity "deby sandra"
  6. Please confirm Yes
  7. enable Litigationhold
    Set-Mailbox deby.sandra@demagnum.com -LitigationHoldEnabled $true

    please makesure that ediscovery in hold and litigation hold enable in the portal office365,

  8. Check Inplace hold27-04-2016 10-58-34

Check Litigation Hold Enabled27-04-2016 11-06-47

here for example command to enabled ediscovery hold and litigation hold

27-04-2016 11-09-33

add -force to disable prompt confirmation

Ref: https://technet.microsoft.com/en-us/library/jj984289(v=exchg.160).aspx

Categories: Office 365, Windows Client

Office 365: Script to get detailed report of assigned licenses

April 25, 2016 Leave a comment

Microsoft Exchange & Office 365

It’s very common to see Office 365 administrators asking in the community “How can I get a detailed report of the licenses i have assigned on Office 365?

Well it will depend on how detailed you want the report. I’ll detail here two solutions.

1 – Get a report of all licensed users and the AccountSKUId name

To run this report you need to open the Windows Azure Active Directory Module for Windows Powershell, and connect to Office 365. Once connected run the following cmdlet:

Get-MSOLUser -All | select userprincipalname,islicensed,{$_.Licenses.AccountSkuId}| Export-CSV c:userlist.csv -NoTypeInformation

The above command lists ALL users and not just the ones that have a license. See the output CSV file below. There are ways of filtering the output (i.e export only licensed users), but i will keep this post simple. Let me know if you need something more elaborated.

1

2 – Get a detailed report of…

View original post 418 more words

Categories: Windows Client

Export unlicense user O365 base on only Display Name and User Principal Name

March 29, 2016 Leave a comment

PS C:\> Get-MSOLUser -UnlicensedUsersOnly | select displayname,userprincipalname
| Export-CSV c:\userlist.csv

Categories: Office 365

Exporting a list of unlicensed users Office 365 to a CSV file

March 29, 2016 Leave a comment

#Exporting a list of unlicensed users to a CSV file.

#This first command will import the Azure Active Directory module into your PowerShell session.
Import-Module MSOnline

#Capture administrative credential for future connections.
$credential = get-credential

#Establishes Online Services connection to Azure Active Directory  
Connect-MsolService -Credential $credential

#Create a CSV export file of unlicensed users for your review. 
Get-MsolUser -UnlicensedUsersOnly | export-csv c:\reports\Unlicensed_Users.CSV
Categories: Office 365, Windows Client

VMware Tools installation fails when Easy Install is in progress (1017687)

March 22, 2016 Leave a comment

Symptoms

  • Installing VMware Tools fails
  • You see the error:

    VMware Tools installation cannot be started manually while the easy install is in progress.

cannot-install-tools  floppy-drive  install-tools  install-vmware-tools  install-vmware-tools-fails  install-vmware-tools-linux  tools-install  vmware-tools  vmware-tools-install-doesnot-complete  vmware-tools-install-fails  Remove-Floppy-Drive  install-vmware-tools-windows

Resolution

This error occurs when the virtual floppy with the autoinstall information required by Easy Install does not unmount properly.
To resolve this issue and unmount the virtual floppy:
  1. Power off the virtual machine.
  2. Go to VM > Settings
  3. Select Floppy.
  4. Select Use physical drive, and set the dropdown to Auto detect.This unmounts the virtual floppy from the virtual drive.
  5. Power on the virtual machine and install VMware Tools.
If the same error persists when trying to install VMware Tools, delete and re-add the virtual floppy drive and the virtual CD/DVD drive.
To delete and re-add the drives:
  1. Power off the virtual machine.
  2. Go to VM > Settings
  3. Select CD/DVD.
  4. Make a note of the current settings for this device, then click Remove.
  5. Click Add.
  6. Select CD/DVD, and click Next.
  7. Select the settings you noted previously (or you can set them later), and click Next > Finish.
  8. Select Floppy.
  9. Make a note of the current settings for this device, then click Remove.
  10. Click Add.
  11. Select Floppy, and click Next.
  12. Select the settings you noted previously (or you can set them later), and click Next > Finish.
  13. Power on the virtual machine and install VMware Tools.

Ref: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017687

Categories: Windows Client

Office 365 PowerShell Tip: Bulk change UPN’s

February 26, 2016 2 comments

Sometimes you may provision accounts in Office 365 before any sort of domain validation.  In this case, you don’t want to hit up each user account and manually change the UPN one at a time, possibly leading to setting something incorrectly.  We’re going to give you some PowerShell code you can cut and paste to make this change.  This code will effectively:

  1. Change the domain portion of the UPN to the domain of your choice
  2. Not change the UPN of the admin account (we determine this by ignoring any UPN that begins with “admin@”).  Normally you aren’t going to change the admin account UPN to your own domain and will leave it as the onmicrosoft.com address.

Here’s a quick two line PowerShell command you can do to change all of the UPN’s in your account:

  1. Install the Office 365 PowerShell modules
  2. Launch the command shell from the start menu (Start → All Programs → Microsoft Online Services → Microsoft Online Services Module for Windows PowerShell)
  3. Copy and paste the following into the window (replace example.com with your own domain)

Connect-MsolService

Get-MsolUser -all | Where { -Not $_.UserPrincipalName.ToLower().StartsWith(“admin@”) } | ForEach { Set-MsolUserPrincipalName -ObjectId $_.ObjectId -NewUserPrincipalName ($_.UserPrincipalName.Split(“@”)[0] + “@example.com”) }

As you can see, PowerShell is a very powerfull tool to perform bulk operations.

 

Ref: http://blog.bittitan.com/2012/01/24/office-365-powershell-tip-bulk-change-upns/

Categories: Office 365