Following on from this great articleThe Powershell Script History and logs are stored in the following registry locationHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension\PoliciesYou will need to navigate to a subtree in their […]
Tag: powershell
ShadowCopyVolume Scheduled Task Failing with 0x2
In monitoring we recently saw a Scheduled Task for a Shadow Copy Job failing with 0x2.After running the Action manually in CMD I go the below errorC:\Windows\system32>C:\Windows\system32\vssadmin.exe […]
Server 2012R2 Reboot changed Network Location to Private/Public from Domain Authenticated
Recently after a reboot of a server, it came up as errored in our monitoring. I couldn’t ping it however when I logged into it, I could ping […]
How to search for Services and Scheduled Tasks run as specific user
All organizations should be using service accounts for Specific Tasks and Services, however, some legacy systems might not be. This script will search all servers listed in […]
Powershell to Install Desktop Experience on Server OS in Powershell
[pastacode lang=”markup” user=”pariswells” repos=”public-code” path_id=”InstallDesktopExperience.ps1″ revision=”” highlight=”” lines=”” provider=”github”/]
How to List Folder Permissions for User Shares and Reset the NTFS permissions
List the permissions on all the folders[pastacode lang=”markdown” user=”pariswells” repos=”public-code” path_id=”ListFolderPermission.ps1″ revision=”” highlight=”” lines=”” provider=”github”/]Change the permissions[pastacode lang=”markdown” user=”pariswells” repos=”public-code” path_id=”FixUserFolderNTFSPermissions.ps1″ revision=”” highlight=”” lines=”” provider=”github”/]
How to generate ADFS / 365 Claim Rules
Previously, we used a development instance of Azure AD Connect with a development Azure AD tenant to investigate the rules. However, Microsoft has created new functionality in […]
Install-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet
Install-Module AzureADPreviewInstall-Module MSOnlineInstall-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file, oroperable program. Check the spelling of the name, […]
How to connect to Office 365 via Powershell when 2fa \ Two Factor Authentication is enabled on the account
The Exchange Online Remote PowerShell Module needs to be installed on your computer:Open the Exchange admin center (EAC) for your Exchange Online organization. For instructions, see Exchange admin […]
Find VM’s using e1000 Adapter Running Windows
Powershell script to list machines running the out of date e1000 Adapter in Windows so you can update them to VMXnet3 !
Get list of Windows Updates needed to be installed on Virtual Machine Enviroment Vmware/ Powershell
Run Vmware PowercliRun Connect-ViServer %name of server%Run the output of below to a text fileE.g. .\Get-PendingUpdate.ps1 | Output-File file.txt
How to change all storage paths of all datastores on a host in VCenter
This will only work once a host has been added to Vcenter.Use Vmware CLI to run this with the variables in Square Brackets edited outThis will change […]