Advanced Search
Search Results
510 total results found
Clear Print Spooler
net stop spooler del %systemroot%\System32\spool\printers\* /Q /F /S net start spooler From <https://www.online-tech-tips.com/computer-tips/how-to-forcefully-clear-all-jobs-from-a-print-queue/>
Determine AD forest and domain level
Get-ADDomain | select domainMode, DistinguishedName Get-ADForest | select forestMode From <https://www.petri.com/raise-active-directory-domain-and-forest-functional-levels-using-powershell>
Windows 10 update not showing in settings after update
The solution is to disable blocking of settings visibility. RUN - gpedit.msc Change Computer Configuration>Administrative Templates>Control Panel>Settings Page Visibility to Disabled. Then changed back to not configured Changed User Configurat...
S.M.A.R.T
Check SMART on hard drive wmic diskdrive get status From <https://www.howtogeek.com/134735/how-to-see-if-your-hard-drive-is-dying/>
Find Certificate (SSL) by Thumbprint
Open Powershell as admin Change to the cert directory by using the command: cd cert: Search for a certificate by using this command: dir -recurse | where {$_.Thumbprint -eq “THUMBPRINT”} | Format-List -property *
Rename Domain
Found this article which looks like it is very good http://www.rebeladmin.com/2015/05/step-by-step-guide-to-rename-active-directory-domain-name/ Step-by-Step guide to rename Active Directory Domain Name MAY 14, 2015 BY DISHAN M. FRANCIS 47...
Domain Trust
Periodically we will get a call where the person cannot log into their computer and they get an error message stating that the computer has a domain trust issue This is due to the background password for the computer being different between the computer a...
Chkdsk /r replacment
https://www.altaro.com/hyper-v/repairing-corrupt-file-systems-vms-repair-volume/Repairing Corrupt File Systems on VMs with Repair-Volume Repairing Corrupt File Systems on VMs with Repair-Volume18 Dec 2014 by Luke Orellana9 The other day I ran into on...
RADIUS
Well, good 'ol Microsoft strikes again. Jacob (from Wintek) was able to isolate our NPS/RADIUS authentication problem to Windows Firewall. Even though the 1812 port exceptions were properly in place, Windows was dropping the traffic anyway. Evidently many ot...
Chrome Profile Migration
Here’s everything you need to do: On the computer that has the Chrome profiles that you want to retain: Copy the “User Data” folder found in this path to portable media: C:\Users\%username%\AppData\Local\Google\Chrome\ Export this regist...
Unifi Console Commands
Unifi SSH
Unifi Controller as a Windows Service
How to Set Up the UniFi Network Controller as a Windows Service 1. Close any instances of the UniFi software on the computer. If the UniFi Network Controller was just installed, make sure to open the controller software manually at least once, or let it r...
Windows
Wireless troubleshooting netsh wlan show wlanreport Shows wifi profiles netsh wlan show profiles Delete wifi profile netsh WLAN delete profile name="Profile_Name" Connect to wifi netsh wlan conn...
CMD - SYSPREP
%WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe /quiet From <https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation?view=windows-11>
Cross Forest Resource Security
Cross-forest resource security To grant access to resources from one forest to another: Create/ensure they have a forest level transitive trust Create a domain local security group This group will be what is assigned to the resources. ...
Search all DHCP servers in a domain for a hostname
Get-DhcpServerInDC <#| ?{ $_.DnsName -notmatch "rhsc-01-vsrv04"} #> | % { $_.DnsName $ServerName = $_.DnsName try { Get-DhcpServerv4Scope -ComputerName $ServerName -erroraction continue <#| ?{ $_.Name -notmatch "Guest" }#> | %{ $Scope = $_.Sco...
Alias
To get the Alias of a command: Get-Alias - Definition "yourCommandHere" Reverse: Get-Alias -Name "yourAliasHere"
Network
Lookup MAC in ARP with Powershell with exact address - Get-NetNeighbor | ? { $_.LinkLayerAddress -eq "88-6F-D4-B8-1D-AD" } Lookup MAC in ARP with Powershell with partial address - Get-NetNeighbor | ? { $_.LinkLayerAddress -like "88-6F-D4*" }
Parameters and Variables
To get Powershell variables available hit CTRL + Enter Then to get parameter/variable options get-help add-dhcpserverv4optiondefinition -Parameter *
Searching
To search a folder and subfolders for a wildcard word and aggregate to a single folder. (THIS MOVES FILES) Get-ChildItem "C:\LTShare\Uploads\*latestspeedtestresults.txt" -Recurse | Move-Item -Destination "DestinationFolder" -Force To search a fol...