-
Close and Quit VSCode -
Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin) -
Execute these commands in any order. The paths might be slightly different for you.
rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NAME TITLE | |
| abusiveexperiencereport.googleapis.com Abusive Experience Report API | |
| acceleratedmobilepageurl.googleapis.com Accelerated Mobile Pages (AMP) URL API | |
| accessapproval.googleapis.com Access Approval API | |
| accesscontextmanager.googleapis.com Access Context Manager API | |
| actions.googleapis.com Actions API | |
| adexchangebuyer-json.googleapis.com Ad Exchange Buyer API | |
| adexchangebuyer.googleapis.com Ad Exchange Buyer API II | |
| adexchangeseller.googleapis.com Ad Exchange Seller API | |
| adexperiencereport.googleapis.com Ad Experience Report API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module ActiveDirectory | |
| #------------------------------- | |
| # FIND EMPTY OUs | |
| #------------------------------- | |
| # Get empty AD Organizational Units | |
| $OUs = Get-ADOrganizationalUnit -Filter * | ForEach-Object { If ( !( Get-ADObject -Filter * -SearchBase $_ -SearchScope OneLevel) ) { $_ } } | Select-Object Name, DistinguishedName | |
| #------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module ActiveDirectory | |
| #------------------------------- | |
| # FIND EMPTY GROUPS | |
| #------------------------------- | |
| # Get empty AD Groups within a specific OU | |
| $Groups = Get-ADGroup -Filter { Members -notlike "*" } -SearchBase "OU=GROUPS,DC=testlab,DC=com" | Select-Object Name, GroupCategory, DistinguishedName | |
| #------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module ActiveDirectory | |
| # Set the number of days since last logon | |
| $DaysInactive = 90 | |
| $InactiveDate = (Get-Date).Adddays(-($DaysInactive)) | |
| #------------------------------- | |
| # FIND INACTIVE COMPUTERS | |
| #------------------------------- | |
| # Below are three options to find inactive computers. Select the one that is most appropriate for your requirements: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module ActiveDirectory | |
| # Set the number of days since last logon | |
| $DaysInactive = 90 | |
| $InactiveDate = (Get-Date).Adddays(-($DaysInactive)) | |
| #------------------------------- | |
| # FIND INACTIVE USERS | |
| #------------------------------- | |
| # Below are four options to find inactive users. Select the one that is most appropriate for your requirements: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $RegKey = (Get-ItemProperty 'HKCU:\Volatile Environment') | |
| $RegKey.PSObject.Properties | ForEach-Object { | |
| If($_.Name -like '*View*'){ | |
| Write-Host $_.Name ' = ' $_.Value | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 4 | |
| <# | |
| .SYNOPSIS | |
| Configure SNMP Settings on ESXi Hosts | |
| .DESCRIPTION | |
| Connect to vCenter Server and configure all ESXi hosts with SNMP settings | |
| .PARAMETER None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -version 4 | |
| <# | |
| .SYNOPSIS | |
| Seaches for an RDM with the specified LUN ID. | |
| .DESCRIPTION | |
| Searches the vCenter environment to find the Virtual Machine that has an RDM configured with a particular LUN ID. | |
| .PARAMETER None |
NewerOlder