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
| # Original idea: https://devblogs.microsoft.com/scripting/clean-up-domain-controller-dns-records-with-powershell/ | |
| # dnsSrv is only the only the hostname, no domain, of active DNS server, i.e. MYDNSSERVER | |
| $dnsSrv = "<active-dns-server-hostname>" | |
| # the server we are trying to remove, FQDN is Fully Qualified Domain Name, i.e. MYDNSSERVER.mydomain.local | |
| $oldSrvFQDN = "<old-dns-FQDN>" | |
| $oldSrvHost = "<old-dns-Hostname>" | |
| $oldSrvIp = "<old-dns-ip-address>" |
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 smtplib | |
| def prompt(prompt): | |
| return input(prompt).strip() | |
| fromaddr = prompt("From: ") | |
| toaddrs = prompt("To: ").split() | |
| print("Enter message, end with ^D (Unix) or ^Z (Windows):") | |
| # Add the From: and To: headers at the start! |
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
| <# | |
| # Check DNS Configuration | |
| #> | |
| Write-Host "Checking DNS configuration..." | |
| $error.clear() | |
| try {Resolve-DnsName -Name microsoft.com -DnsOnly -QuickTimeout} | |
| catch { "timeout period expired" } | |
| if ($error) { |
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
| # 3D Builder | |
| Get-AppxPackage *3dbuilder* | Remove-AppxPackage | |
| # Alarms & Clock | |
| Get-AppxPackage *windowsalarms* | Remove-AppxPackage | |
| # Calculator | |
| Get-AppxPackage *windowscalculator* | Remove-AppxPackage | |
| # Camera |
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
| @echo off | |
| set /p id="Enter ServiceHost ID: " | |
| set /p ws="Enter Workstation ID: " | |
| REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Micros\CAL\Config" | |
| powershell -Command "(gc C:\Micros\Simphony\POSClient\Cfg\PosConfiguration.ini) -replace 'ClientID=\d\d\d\d\d\d', 'ClientID=%id%' | Out-File -encoding ASCII C:\Micros\Simphony\POSClient\Cfg\PosConfiguration.ini" |
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
| # With previous session from root generation still open | |
| New-SelfSignedCertificate -Type Custom -DnsName <clientcertificatename> -KeySpec Signature ` | |
| -Subject "CN=<clientcertificatename>" -KeyExportPolicy Exportable ` | |
| -HashAlgorithm sha256 -KeyLength 4096 ` | |
| -CertStoreLocation "Cert:\CurrentUser\My" ` | |
| -Signer $cert -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.2") |
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
| ^!m:: | |
| Loop 15 | |
| { | |
| MouseMove, 766, 421 | |
| click 766, 421 | |
| Send 18{Enter} | |
| MouseMove, 579, 75 | |
| Click 579, 75 | |
| MouseMove, 766, 421 | |
| } |
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
| #Region ;**** Directives created by AutoIt3Wrapper_GUI **** | |
| #AutoIt3Wrapper_icon=..\Icon\<iconfile.ico> | |
| #AutoIt3Wrapper_outfile=ProcessMonitor.exe | |
| #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** | |
| #Include<file.au3> | |
| Dim $date = @MON & @MDAY & @YEAR | |
| Dim $ProcessName1 = "<process1name.exe>" | |
| Dim $ProcessName2 = "<process2name.exe>" |
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
| rem Setting Static IP for interface "Local Area Connection" | |
| netsh interface ip set address name = "Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.1.254 1 | |
| netsh int ip set dns name = "Local Area Connection" source= static addr = 208.67.220.220 | |
| netsh int ip add dns name = "Local Area Connection" addr = 208.67.222.222 index =2 |
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
| rem Setting DHCP for interface "Local Area Connection" | |
| netsh interface ip set address "Local Area Connection" dhcp | |
| netsh interface ip set dns "Local Area Connection" dhcp |