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
| -- The below hash is "admin". That is between the quotes, lower case - admin | |
| update be_users set password = 'jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=' where userid = [[USERID OF TARGET USER]] |
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
| <script src="https://gist.github.com/loonison123/9541764.js"></script> |
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
| # Must be in administrator powershell | |
| # Start the service | |
| start-service wlansvc | |
| # Change service startup type | |
| set-service wlansvc -StartupType "Automatic" |
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
| cd YOURURL\apache-solr\exampledocs | |
| java -Dtype=text/csv -Durl=http://localhost:8983/solr/update -jar post.jar solr_data.txt | |
| REM Delete all data in SOLR database posted via web or CURL | |
| REM http://localhost:8983/solr/update?stream.body=%3Cdelete%3E%3Cquery%3E*:*%3C/query%3E%3C/delete%3E | |
| REM Finalize the deleting of SOLR database | |
| REM http://localhost:8983/solr/update?stream.body=%3Ccommit/%3E |
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
| # Get powershell version | |
| $PSVersionTable.PSVersion | |
| # Get .NET version source: http://stackoverflow.com/questions/3487265/powershell-to-return-versions-of-net-framework-on-a-machine | |
| Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | | |
| Get-ItemProperty -name Version -EA 0 | | |
| Where { $_.PSChildName -match '^(?!S)\p{L}'} | | |
| Select PSChildName, Version | |
| # Get windows version |
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
| Machine machine = new Machine() | |
| { | |
| DotNetVersion: 4.5, | |
| Windows Version: "Windows 8.1 Pro", | |
| Powershell Version: 4.0 | |
| }; |
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
| # List all network adapters (Find the name) | |
| Get-NetAdapter | |
| # (Administrator) Disable an ethernet adapter (Won't prompt you to confirm) | |
| Disable-NetAdapter -Name "Ethernet" -Confirm:$false | |
| # If you want to view some IP information | |
| Get-WmiObject -Class win32_networkadapterconfiguration -filter ipenabled=TRUE -computername . | |
| # Set static IP |
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
| # Reinstall all packages | |
| update-package -reinstall | |
| # Reinstall an individual package | |
| update-package -reinstall PACKAGENAME |
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
| # Get services related to audio | |
| Get-Service | Where {$_.Name -match "audio"} | format-table -autosize | |
| # Start the services | |
| Get-Service | Where {$_.Name -match "audio"} | start-service | |
| # Set the services startup types | |
| Get-Service | Where {$_.Name -match "audio"} | set-service -StartupType "Automatic" | |
| # Validate our startup changes (Should say- StartMode:Auto) |
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
| Install-WindowsFeature -Name "Wireless-Networking" | |
| Restart-Computer | |
| Start-Service wlansvc | |
| Set-Service wlansvc -StartupType "Automatic" |
OlderNewer