Jenkins service does not start error 1067

When starting the service it returned the error: "Windows could not start the Jenkins service on Local Computer. Error 1067: The process terminated unexpectedly" I found the cause was the jenkins.war file was no longer in the Jenkins directory, luckily in the folder there is jenkins.war.bak I copied it and renamed it to jenkins.war and Jenkins was able to load correctly....
Read More

Hide Hyper V Floppy Disk Drive via group policy

On Any Hyper-V virtual machine it adds the Floppy disk drive, and there is not an option to remove the drive from the settings window of the VM   The Way to remove this drive is by changing a value in the registry of the virtual machine that is running windows. However as I join my VMs to a domain I can utilise group policy to apply this change I created a new group policy called "Remove Hyper V Floppy disk drive" I went into Computer configuration > preferences > windows Settings > Registry From there I right clicked on registry and selected new > Registry item And set the following values: Action: Update Hive: HKey_Local_Machine Key Path: SYSTEM\CurrentControlSet\Services\flpydisk Value name: Start Value Type: REG_DWORD Value: 4 Base: Decimal Then I clicked Apply and OK   I applied it to the root of the domain so that it would apply to all devices on the domain...
Read More

Ports RD Gateway uses

Encapsulates RDP in HTTPS packets listens on port 443 (for TCP) and port 3391 (for UDP)   Ports can be changed via RD Gateway Manager utility Right-click the RD Gateway server name in the navigation pane and select Properties. Select the Transport Settings tab. Modify the HTTP and/or UDP port number. Add firewall exceptions for TCP and UDP for the custom port   When you connect from a client, you need to add the custom port to the end of the gateway server name, preceded by a colon (:)...
Read More

Hyper-V Guest Operating Systems that support Dynamic Memory

Linux distributions For details on Linux distributions and versions that support dynamic memory, and the requirements for Linux Integration Services, see Linux and FreeBSD Virtual Machines on Hyper-V. Windows Server 2012 and Windows Server 2012 R2 Datacenter, Standard, and Essentials editions. Integration services are built-in and do not require a separate download and installation. Windows 8 and Windows 8.1 Windows 8, Windows 8 Pro, and Windows 8 Enterprise editions. Windows 8.1, Windows 8.1 Pro, and Windows 8.1 Enterprise editions. Integration services are built-in and do not require a separate download and installation. Windows Server 2008 R2 with Service Pack 1 (SP1) Datacenter, Enterprise, Standard, and Web editions. Windows Server 2008 R2 Datacenter and Enterprise editions. Windows 7 Enterprise and Ultimate editions (32-bit and 64-bit). ...
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

Export Office 365 mailboxes to PST using eDiscovery

Works on windows both Client and server OS Requires Microsoft .NET Framework 4.5 Works best on Internet Explorer 10 and up, for Firefox and Chrome a Click-Once add-in is required Steps to export Office 365 mailboxes to PST using eDiscovery 1) Open up internet explorer and then login to a global admin account for the tenancy, on the apps page select Security & Compliance, or if you clicked on on admin under Admin centers select security & compliance from there 2) One thing to do is to ensure the account has the correct permissions. First from security and compliance page click on Permissions  Then click on eDiscovery Manager then select Edit Role group Go to Choose eDiscovery Administrator and under Select eDiscovery Administrators it has a list of accounts that are already admins, if the account you are using does not show up click on Edit, if it does show up skip to Step 3   Then click on Add and search for the name...
Read More