This is useful for when you have a hyper v host only nope with CLI and no GUIDRConfigurator.exe /r /friendlyname MyServerName /credentials “C:\Software\vaultname_asr_DayMonthDateYear.VaultCredentials”
Tag: powershell
Taking Ownership and Adding Full Permissions for Paths over 260 Characters
Open Powershell As AdministratorImport-Module NTFSSecurity#Check Existing Accessdir2 “\\?\e:\folde\path\name” -Recurse | Get-NTFSAccess#Take Ownershipdir2 “\\?\e:\folde\path\name” -Recurse | Set-NTFSOwner -Account “Administrators”#Add Permissiosndir2 “\\?\e:\folde\path\name” -Recurse | Add-NTFSAccess -Account Administrators -AccessRights FullControl#recheck […]
Update Teams settings using GPO and desktop-config.json file
You can target the following powershell below to update items in desktop-config.json such as disableGpu\openAtLogin\registerAsIMProvider\runningOnClose(Get-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json).replace(‘”disableGpu”:false’, ‘”disableGpu”:true’) | Set-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json(Get-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json).replace(‘”openAtLogin”:true’, ‘”openAtLogin”:false’) | Set-Content $ENV:APPDATA\Microsoft\Teams\desktop-config.json
How to append the date on the name of the end of a file in powershell
Calculating Veam Previous Job Rate of Change as well as Averaging History in Powershell
Report % Rate of change from the last Backup Job Run However one result is not a fair estimate of rate of change , and I don’t […]
How to report on current Azure MFA registrations in your organisation
Login to Azure Active Directory. Locate Usage & insights , under MonitoringSelect “Users registerd for Multi-Factor Authentication” Can also be done in powershell : https://dirteam.com/sander/2020/05/14/todo-optimize-the-azure-multi-factor-authentication-methods-used-throughout-your-organization/https://www.cyberdrain.com/monitoring-with-powershell-monitoring-the-used-mfa-type-for-o365-azure/
How to get WordPress Pastcode Plugin to highlight a new language syntax
I have been using this plugin to https://wordpress.org/plugins/pastacode/ highlight some of my programming. I write a bit in Powershell however this is not a supported markup. This is […]
Powershell – How to report on Windows Updates for a server over a yearly Period
For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just […]
Powershell to Find Snapshot File
[pastacode lang=”markup” path_id=”b8d027b954f570961ff4f92a25f363ce” file=”snapshotfind.ps1″ highlight=”” lines=”” provider=”gist”/]