Use below command to in OPSNSSL command line to convert SSL Certificate PFS file to PEM/CRT file. Provide the pfx file password once it prompt.
openssl pkcs12 -in SSLCertificate.pfx -nokeys -out SSL CertificateChain.pem -nodes
Use below command to in OPSNSSL command line to convert SSL Certificate PFS file to PEM/CRT file. Provide the pfx file password once it prompt.
openssl pkcs12 -in SSLCertificate.pfx -nokeys -out SSL CertificateChain.pem -nodes
HiTechCandy Blog – New Era of Technical Blog
I’ve been running into a similar issue today trying to get the AZ module installed. See if running this below command first helps:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Open Task Scheduler from Administrative tools.
To run a script from Task Scheduler, follow these steps.
1.Open Task scheduler –> Task Scheduler Library –> Create Task
2.In General tab, you can set scheduler name and description about the task like for what purpose the task has created.
Available security options explained below.
3.Switch to the Trigger tab and click the New button. Here, you can set conditions that trigger a task.
4.Then open the next tab ‘Actions’ and click the ‘New’ button.
If the path contains any blank space, it should be enclosed with quotes.
5.Once configured, you can specify conditions to determine whether the task should run. The task will not run if any condition specified here is not true.
6.On the Settings tab, you can set additional advanced settings to control the task execution.
Finally, click Ok to create a scheduled script.
Scheduled script will run as expected according to your schedule without any issue. If you want to check script execution, you can click Run by right-clicking task name.
If you want to schedule the PowerShell script with parameters, use the below format.
Script path -Param 1 Value1 -Param2 “Value 2”
For example, I am going to automate one of our PowerShell script: Export Office 365 Users MFA status report
During schedule, you can explicitly pass the credential as parameters as shown below:
C:\GetMFAStatus.ps1 -UserName “XXX XX” -Password ****
If the parameter value has blank space, values should be enclosed with quotes.
If you want to pass a switch parameter, you can use below syntax.
Above script exports Office 365 users MFA status whose MFA status is enabled. Here -EnabledOnly is a switch parameter.
For more Office 365 related PowerShell scripts, you can refer O365Reports.com blog.
Instead of GUI, you can use PowerShell cmdlets to create schedule task that automate PowerShell script. It involves following steps,
1.Define time for scheduler
2.Set Actions to be performed during execution
New-SchdeuledTaskTrigger creates a scheduled task trigger object. Using this cmdlet, you can specify starting time of a task or starting a task multiple times on a daily or weekly basis.
$Time=New-ScheduledTaskTrigger -At 4.00PM -Once
Above cmd creates a scheduled task trigger that starts at 4PM and run once.
$Time=New-ScheduledTaskTrigger -At 4.00PM -Daily -DaysInterval 2
Above cmd creates a scheduled task trigger that starts every 2 days at 4PM
New-SchdeuledTaskAction represent actions that executed when Task Scheduler runs the task. A task can have single action or a maximum of 32 actions. When you specify multiple actions, task Scheduler executes a task sequentially.
$Action=New-ScheduledTaskAction -Execute PowerShell.exe -WorkingDirectory C:/Scripts -Argument “C:\Scripts\MFAStatus.ps1 -UserName XXXX -Password ��
This command opens a PowerShell and change the directory to C:/Scripts and then invoke the MFAStatus.ps1 script.
Register-ScheduledTask saves the scheduled task on a local computer.
Register-ScheduledTask -TaskName “Schedule MFA Status Report” -Trigger $Time -Action $Action -RunLevel Highest
The above cmd saves a scheduled task with a name “Schedule MFA Status Report” in the root folder. The saved task uses the pre-created action and trigger values that are specified by $Action and $Time variables.
1- Do: Avoid large crowds. The best way to slow the spread of the virus and protect those at risk of serious illness is social distancing, according to the Centres for Disease Control and Prevention. That means it’s important to avoid crowded spaces, community gatherings and other events that could speed up the spread of the virus.
3- Don’t: Hoard paper and hygiene products so that there’s none left. “Panic buying is a self-fulfilling prophecy,” Karan Girotra, professor of operations at Cornell University, told USA Today. “If everyone thinks things are going to run out, they go and buy out things and they do run out.”
3- Do: Call your doctor if you’re displaying symptoms of the illness. Fever, cough and shortness of breath are the most common symptoms of the coronavirus known as COVID-19.
4- Don’t: Panic. The CDC still considers the general public’s risk as “low.” But seniors and those with compromised immune symptoms face a higher risk of serious illness, so it’s important to follow the CDC and local officials’ instructions. It’s unlikely that the virus is transmitted through food or sex, so there’s little reason to worry about either of those things.
5- Do: Care for your pets like normal. It’s highly unlikely that dogs and cats can pass coronavirus to people, the Associated Press recently reported. Experts from two universities in Hong Kong and the World Organisation for Animal Health agreed that “human-to-animal” transmission would be more common, but only low-levels of infection have been reported so far.
6- Don’t: Kiss your dog or cat. Although the risk of catching the infection is low, Hong Kong’s Agriculture, Fisheries and Conservation Department still suggest pet owners not kiss their cat or dog for the sake of good hygiene, the Associated Press recently reported.
7- Do: Wash your hands for at least 20 seconds. According to the Centers for Disease Control and Prevention, the best defense against the virus is washing your hands with soap and water for at least 20 seconds before eating, after using the bathroom and after blowing your nose, coughing or sneezing.
8- Don’t: Touch your face. Coronavirus begins in the eyes, nose or mouth, The Washington Post recently reported. The more you touch your face, the more you increase your risk of exposure to the virus.
9- Do: Use hand sanitizer when soap and water isn’t available. The CDC recommends that the hand sanitizer contain at least 60% alcohol.
10- Don’t: Leave used tissues on the couch, nightstand or anywhere but a garbage can. The virus is spread through respiratory droplets that can survive on hard surfaces.
11- Do: Regularly clean hard surfaces, including TV remotes, cellphones, light switches and doorknobs. The CDC recommends wearing gloves and only using disinfectants registered with the Environmental Protection Agency, which recently released a list of products that kill coronavirus from surfaces.
12- Don’t: Leave your purse on the ground. A 2013 study from Initial Washroom Hygiene, a UK-based hygiene and washroom services company, showed that handbags have more bacteria than a toilet seat. Putting your purse on the ground of a public restroom or the floor of a bus increases your exposure to not only bacteria but also viruses.
13- Do: Wear a face mask if you’re a health care provider or caregiver. The World Health Organization recommends washing your hands frequently, avoiding touching your face or the mask and throwing them away in a closed garbage bin.
14- Don’t: Buy face masks if you’re not in the health care industry. Not only could a mask shortage be detrimental to health care professionals but also masks could increase residents’ chance of infection because they’re often worn improperly.
15- Do: Be careful while continuing to use public transportation. Several agencies, including SMART and San Francisco’s BART, are cleaning and disinfecting their trains more frequently to prevent the virus from spreading. Other safety measures include standing or sitting away from others, limiting contact with train and bus poles, carrying hand sanitizer, keeping your purse off the ground and avoiding eating, drinking or using your phone, according to Business Insider.
16- Don’t: Use Lyft, Uber or public transportation if you’re showing symptoms of coronavirus, which includes coughing, difficulty breathing and fever, to prevent the virus from spreading.
17- Do: Choose a window seat if you’re traveling on an airplane. You’re the least likely to come into contact with someone affected by any virus, according to National Geographic, although washing your hands and avoiding coughing passengers also is recommended.
18- Don’t: Travel to China, South Korea, Italy and Iran unless absolutely necessary. The CDC issued a Level 3 warning, the most extreme included in its guidelines, for US residents to avoid all nonessential travel to these countries because of the virus
19- Do: Be cautious, but continue to support local restaurants. The wine and beverage industry may take a hit from the coronavirus. Because the CDC is urging people across the country to distance themselves from others and avoid crowded places, the best way to support local restaurants is buying gift cards or ordering takeout. The New York Times recently reported that food likely cannot carry the coronavirus, but it’s important to be mindful of menus and serving utensils that others may have touched.
20- Do: Have two weeks of groceries on hand in case you’re quarantined for two weeks. Dry goods such as rice, pasta, beans and oats, along with canned goods such as tomatoes and beans, are recommended, according to Business Insider. Other items include pet food, prescriptions and diapers if you have children.
PowerShell error : Install-Module: The term ‘Install-Module’ is not recognized as the name of a cmdlet.
This error Is Manly Because Of The Limitation of cmdlet and resource available on Machine.
This Gallery TechNet Will help you to resolve The Error” Install-Module: The term ‘Install-Module’ is not recognized as the name of a cmdlet.”
While Performing This Step We Need to restart the system So Request You to Save Any unsaved Document Before Following the Below Steps.
To Resolve This We Need to Update. Windows Management Framework 5.1 with the Help of Below Link
*Tested on Client Machine
Step 1 : Run the PowerShell as Administrator.
Step 2 : When We try the Command Install-Module msonline
PS C:\Users\Administrator>Install-Module msonline
It Givens Error
Install-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file,or operable program.
Check the spelling of the name, or if a path was included,verify that the path is correct and try again.
At line:1 char :1
Step 3 : To Check the Host version Type Host
Step 4 :if the Host Version 4.0 or Below That Need to Download And Install the Windows Management Framework 5.1
Need to Update. Windows Management Framework 5.1 with the Help of Below Link
* Note :When We Download and install windows Management Framework 5.1. it Will restart the Machine So please Save any unsaved Document.
Step 5 : Choose the Download you want as per Your Operating System.
Step 6 : Once we Restart the Machine Than Run the PowerShell as Administrator again.
Step 7 : We can Confirm if the HOST Version is Updated to 5.1
Because I’ve seen this question asked in many places and not answered, I thought I’d post my issue and resolution here. I regard this as a Bug, but I’m not invested enough to deal with the support incident process.
I’ve had repeated instances where a Windows 7 x64 client runs out of hard drive space, and found that C:\Windows\TEMP is being consumed with hundreds of files with names following the pattern “cab_XXXX_X”, generally 100 MB each, and these files are constantly generated until the system runs out of space. Upon removing the files & rebooting, the files start being generated again.
I’ve found that this is caused by large Component-Based Servicing logs. These are stored at C:\Windows\Logs\CBS. The current log file is named “cbs.log”. When “cbs.log” reaches a certain size, a cleanup process renames the log to “CbsPersist_YYYYMMDDHHMMSS.log” and then attempts to compress it into a .cab file.
However, when the cbs.log reaches a size of 2 GB before that cleanup process compresses it, the file is to large to be handled by the makecab.exe utility. The log file is renamed to CbsPersist_date_time.log, but when the makecab process attempts to compress it the process fails (but only after consuming some 100 MB under \Windows\Temp). After this, the cleanup process runs repeatedly (approx every 20 minutes in my experience). The process fails every time, and also consumes a new ~ 100 MB in \Windows\Temp before dying. This is repeated until the system runs out of drive space.
This can be reproduced by trying to manually create the cab file –
Directory of C:\CBS-BAK
12/11/2019 12:28 PM <DIR> .
12/11/2019 12:28 PM <DIR> ..
12/11/2019 12:12 PM 2,491,665,966 CbsPersist_20150823021618.log
Cabinet Maker – Lossless Data Compression Tool
86.19% – CbsPersist_20150823021618.log (1 of 1)
ERROR: (FCIAddFile)Data-size or file-count exceeded CAB format limits
Volume in drive C is OSDisk
Volume Serial Number is 44DE-0CDD
Directory of C:\Users\USERNAME\AppData\Local\Temp
08/26/2015 02:31 PM 102,786,654 cab_4556_2
12/11/2019 12:28 PM 12,978,919 cab_5860_2
12/11/2019 12:27 PM 0 cab_5860_3
To resolve this –
Stop the Windows Modules Installer (TrustedInstaller) service
Delete or move the large Cbspersist_XX.log file out of \Windows\Logs\CBS.
Start the Windows Modules Installer (TrustedInstaller) service
As an IT guy, I always encounter problems when untrained users tweak their Internet connection settings. They always make a mistake somewhere and sometimes the solution is to just keep them away from the Internet Options dialog box altogether.
I have worked at many companies that hide the Internet Options tab in Internet Explorer to discourage users from changing the options, which makes sense since network admins are the only ones who are supposed to access these options.
In a controlled environment, companies usually allow only one type of browsers like Internet Explorer and those companies usually don’t allow their employees to change the Internet Options like default the homepage and proxy server.
Below is a typical Internet Options window:
There are several ways to disable the Internet Options tabs in IE and I’ll explain the different methods in this post. The first method uses Group Policy, but will only work if you have the Pro or Ultimate versions of Windows. If you are running Home or Home Premium, then skip down to the registry section.
Disable Internet Options in IE via Group Policy
To disable any tab in the Internet Options window, follow these steps below:
Step 1: Click Start RUN and type GPEDIT.MSC in the search bar and hit enter to launch the Group Policy editor window.
Step 2: In the Local Group Policy editor window expand User Configuration > Administrative Templates > Windows Components > Internet Explorer then click on Internet Control Panel.
Step 3: On the right pane of the window, double click on the item you want to disable. For example, to disable the Advanced tab, double click on Disable the Advanced page option.
Step 4: In the properties window, click on the Enabled option and click OK. The Advanced tab in the Internet Options window will now be disabled and removed.
Step 5: Follow the previous steps to disable other items in the Internet Options window. To enable items, just select the Not Configured option in the properties window and click OK.
There you have it! For less savvy computer users who don’t know about GPEDIT, it should discourage them from changing the advanced settings in IE.
Disable IE Options via Registry Editor
The second way to disable tabs in IE options is to use the registry editor. This is a bit more complicated but is the only option if you can’t access the group policy editor.
You can open the registry editor by clicking on Start and typing in Regedit. Once there, navigate to the following key:
Note that if you want to disable this option for all users on the PC, navigate to the same key, but under HKEY_LOCAL_MACHINE.
If there isn’t already a key called Internet Explorer under Microsoft, you’ll have to create it manually. Just right-click on Microsoft and choose New – Key. At this point, there are two options. If you want to disable the entire Internet Options dialog, you can create another key under Internet Explorer called Restrictions.
Lastly, you’ll create a new DWORD value in the right-pane inside Restrictions called NoBrowserOptions. Give that a value of 1 and restart Internet Explorer. If you try to go to Internet Options, it will give you an error message.
If you don’t want to disable the whole dialog, but instead just a few of the tabs, then you should create a new key called Control Panel under Microsoft instead of Restrictions. Inside of that, you’ll create DWORD entries that correspond to the tabs:
As you can see above, I created the Control Panel key under Internet Explorer and then created a DWORD entry in the right-pane called AdvancedTab with a decimal value of 1. This removed just the advanced tab from the IE options window.
Hopefully, these methods will allow you to gain more control over Internet Explorer advanced settings in your environment. If you’re having issues, feel free to comment and I’ll try to help. Enjoy!
Here you can check the real time air quality index.
Multi-Factor Authentication (MFA) is a great security tool, and we always recommend it. Office 365 admins can enforce MFA for users, which means you can help protect anyone sharing your Office 365 business subscription.
To do this you’ll need to be an Office 365 administrator, which only happens with a business plan. If your Office 365 subscription comes as part of a domain hosting package, then you’ll have access to the Admin console. However, if you’ve just purchased a personal subscription (or home subscription for your family), then you won’t have access to the Admin console, and you can only turn MFA on for yourself. If you’re not sure, click the Office 365 app launcher and look for the Admin tile.
If it’s there, you’ve got access to the Admin console. Click the Admin tile, and on the menu on the left-hand side click Settings > Services and add-ins.
This opens the Services and add-ins page, where you can make various tenant-level changes. One of the top items will be “Azure multi-factor authentication.”
Click this, and on the panel that opens on the right, click “Manage multi-factor authentication.”
This will take you to the multi-factor authentication page. You can immediately turn MFA on for anyone who is using your Office 365 subscription, but, before that it’s best to acquaint yourself with the default settings. To do this, click “Service Settings.”
You can change whatever settings you like, or leave them as the defaults. One potential setting to look at changing is whether or not MFA can be remembered on a device. By default this is off, but turning it on means your family won’t have to go through the MFA process every time they want to check their email or edit a document.
If you switch this on, the default number of days a device can go before having to re-authenticate is 14, which means a phone/tablet/computer will be trusted for 14 days before the user has to go through the MFA process again. Having to go through the MFA process is simple, but having to do it every 2 weeks on every device that your family uses might still be a bit too much and you have the option to set this as high as 60 days.
If you do make any changes to this or any other settings, click “Save” at the bottom to the panel to save the changes, then click “users” to go back to turning on MFA.
Now that you’ve made sure the settings are right, you can enable MFA for each user. Select the users for whom you want to turn MFA.
To the right of the table of users, click the “Enable” option that appears.
On the confirmation screen, click “Enable Multi-Factor Authentication.”
This will enable MFA for the user, and the next time they login to Office 365 on the web, they’ll have to go through a process of setting up MFA. If they don’t log in very often (or you want to make sure you’re around to help them through the process), you can also send them the link from the confirmation screen so that they can set up MFA at a time that suits them. The link is https://aka.ms/MFASetup, which is the same for everyone setting up MFA.
Once you’ve clicked “Enable Multi-Factor Authentication” you’ll see a success message, which you can close.
MFA is now enabled for the user; now, they need to set it up. Whether they wait until the next time they login, or they use the link we mentioned above, the process for setting up MFA is exactly the same.
Login to your Office 365 account as normal, and a screen will be displayed telling you that “your organisation needs more information to keep your account secure.”
Click “Next” to be taken to the “Additional security verification” panel, where you can choose your MFA method. We always recommend using an authenticator app, and you’ll have to use Microsoft Authenticator with Office 365. Even using MFA via SMS is still better than not having MFA at all, so choose the method that works best for you in the first dropdown.
We’re going to use a mobile app, which will change the available configuration options. First you need to choose whether to”Receive notifications for verification” (which means a message will pop up on the Microsoft Authenticator app on your phone asking you to approve or deny a login to your account) or whether to “Use verification code” (which means you’ll have to enter a code generated by the Microsoft Authenticator app on your phone when you login to Office 365). Either works fine, and it’s up to you what you choose. After this, you need to click the “Set Up” button to set up the app.
At this point a panel will appear telling you to install the Microsoft Authenticator app on your phone and then either scan a QR code or, if you can’t scan the QR code, enter a code and URL instead. Once you’ve done this, click “Next” to go back to the Additional Security Verification window, which will show that the activation status is being checked.
This may take a few seconds, and once it’s finished the message will change to show that MFA has been configured.
Click Next, and Office 365 will check that everything is working. Depending on what option you selected for verification, it will either send a Deny or Approve message to your app, or ask you to enter a code from the app. In this example, it sent a Deny or Approve message and is waiting for a response.
After you’ve verified that MFA is working, you’ll be asked for a phone number in case you lose access to the app.
This phone number will be used as backup to use SMS or voice calls in the event that you can’t use the Microsoft Authenticator app, such as when you haven’t got Wi-Fi (or you’ve run out of data on your monthly plan, and you’re out and about). It could also be used if you’ve lost your phone, so you might want to choose the number of a family member instead of your own. Once you’ve entered a number, click “Next” to see the final screen.
This page includes a Microsoft-generated password that it will recognize as being created for MFA use. You’ll need to use this password now on rather than the one you normally use, in all of the following apps:
The next time you try to open any of these apps they’ll ask for your password, so copy it down from here and use it when asked. We can verify that Outlook on your computer needs to use the generated password but the Outlook app on your phone doesn’t, and yes, we find that odd as well, but it’s not a great hardship.
Click “Finished,” and you’ll be taken back to the login screen to login as normal, but this time using MFA. It’s a simple, quick process that provide a valuable layer of extra security, and one that we at How-To Geek strongly recommend.
Exchange Server 2010 Service Pack 1 and Exchange Server 2007 Service Pack 3 (running on Windows Server 2008 or Windows Server 2008 R2) have a new feature that will allow users with expired passwords to change their password. This also works for users who have their accounts configured to change password on next logon (User must change password at next logon in ADUC).
Use this procedure to enable it on Exchange 2007 SP3 and Exchange 2010 SP1 Client Access servers:
Note: If you are using a CAS Array, you must perform these steps on each CAS in the array.
Important: When changing passwords, users can’t use a UPN (for example, firstname.lastname@example.org) in the Domain\user name field in the Change Password window shown below, unless E2010 SP1 RU3 or later has been deployed on the Client Access servers.