Enable Ping In Windows Server 2016

in powershell enter sconfigoption 4then option 3 to enable ping and click yes on both prompts Allow ping through Windows FirewallWindows Firewall with Advanced SecurityInbound Rules“File and printer Sharing (Echo Request – ICMPv4-In)” and enable the rule.3if IPv6 is needed enable the “File and Printer Sharing (Echo Request – ICMPv6-In)” rule ...
Read More

Add Azure Active Directory User to Local Administrators Group

Through the admin portal a user who is a globe admin is a admin on the local pc that is on the azure domain. However for better security you there are time in which you need to be a admin to use some software. On the pc first login with the azure user account you want to add as admin.(this gets the User GUID to the PC) Open command prompt as admin (you will need to enter your admin details) then type the below and click enter net localgroup administrators AzureAD\username /add for example test31341@pyrolaptop.co.uk username is test31341 If you have azure connect replace Azuread with the domain that you are syncing...
Read More

Office 365 SharePoint Change External Sharing policy using Powershell

  Install the modules 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   1) Open Windows PowerShell as an administrator (use Run as administrator). 2) Run this command, and enter Office 365 Global Admin credentials. $credential = Get-Credential 3) Run these commands to connect to Office 365. Import-Module MsOnline Connect-MsolService -Credential $credential 4)Run these commands to connect to SharePoint Online. Replace your-tenant with the actual value for your domain. Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking Connect-SPOService -Url https://your-tenant-admin.sharepoint.com -credential $credential Get-SPOSite Get-sposite https://your-tenant.sharepoint.com/Site location Look at Sharing Capability To change what one you type to change to "Disabled" – external user sharing (share by email) and guest link sharing are both disabled "ExternalUserSharingOnly" – external user sharing (share by email) is enabled, but guest link sharing is disabled "ExistingExternalUserSharingOnly" - (DEFAULT) Allow sharing only with the external users that already exist in your organization’s directory "ExternalUserAndGuestSharing" - external user sharing (share by email) and guest link sharing are both enabled   Set-SPOSite -Identity your-tenant.sharepoint.com/Site location -SharingCapability ExternalUserSharingOnly  ...
Read More

AD Get last password set and expiry info

get-aduser -filter * -properties passwordlastset, passwordneverexpires |ft Name, passwordlastset, Passwordneverexpires   to Export to CSV Get-ADUser -filter * -properties passwordlastset, passwordneverexpires | sort-object name | select-object Name, passwordlastset, passwordneverexpires | Export-csv -path c:\temp\user-password-info.csv...
Read More