Posts

Showing posts from May, 2024

Office 365 Administrator Interview Questions

  What is AD connect ? Can we sync Azure Ad users to onprem Ad users ? Answer : Azure AD Connect is an excellent tool that syncs AD on-premises objects to Azure AD. Azure AD Connect will not create the user in AD on-premises. AD connect is capable of things like password write back and device writeback, you cannot create users in Azure AD and sync them back to on-premises AD. office 365 administrator interview questions and answers pdf download Office 365 administrator interview questions for freshers Office 365 administrator interview questions and answers Office 365 administrator interview questions for experienced tcs o365 interview questions office 365 exchange online interview questions and answers outlook 365 interview questions and answers office 365 interview questions for freshers

Ping using nodejs Javascript code

  --------------------------------------------------------------- var ping = require('ping'); var chalk = require('chalk') const fs = require('fs') var http = require('http'); //// ping utility//// let config = fs.readFileSync('config.txt', 'utf-8') const array_ = config.split("\r\n") function pinserver(n) {     let Hostentry = array_[n]; let hostEntry_ = Hostentry.split(' '); // console.log(hostEntry_)          ping.sys.probe(hostEntry_[0], function (isAlive) {         var msg = isAlive ? 'host ' + hostEntry_[0] + ' is alive' : 'host ' + hostEntry_[0] + ' is dead';                           var status = msg.includes('is alive')         if (status == true) {             console.log(chalk.green(msg));         } else {             console.log(chalk.red(msg));         }         return msg;     }); } pinserver(1) pinserver(2) pinserver(3) pinserver(4) pinserver(5) ---------------------