shutdown -r -f -t 0 -m \\10.5.40.153
runas /user:administrator "mmc.exe"
dsquery user -inactive 2 -limit 0 |findstr "HQSC DEV02"|sort
# delete domain user
net user york.lin /del /domain
? delete printer?
wmic printer where "Local='FALSE'" delete
wmic printer where "PortName LIKE 'IP_%%'" delete
#correct linux+window dual boot system window time
timedatectl set-local-rtc 1
netsh wlan show profile name=THE_SSID_U_WANT_TO_CHECK key=clear
lxrun /uninstall /full
>net user USER /domain | findstr /C:"Last logon"
batch rename:
ren *.html *.txt
"kb2267602" "0x80070643"
disable Windows Defender on Win10
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
creat one if none: DWORD-32 DisableAntiSpyware value=1
DWORD-32 only, no more smart-ass DWORD-64.
adwcleaner:
toolslib.net
netsh interface ip delete destinationcache
netsh winsock reset
ipconfig /flushdns
ipconfig /registerdns
ipconfig /release
ipconfig /renew
netsh winsock reset catalog
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log
shutdown -r -f -t 0
cd [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
search Microsoft Visual C++ 201*
check InstallSource and get the *.mis
bcdedit /set {default} bootmenupolicy legacy
bcdedit /set {default} bootmenupolicy standard
Disk C only:
create partition primary
assign letter=c
active
Disk C and D:
select disk 0
clean
create partition primary size=102400
active
assign letter=c
create partition primary
active
exit
net user york.lin /del /domain
dsquery user -inactive 2 -limit 0 |findstr "HQSC DEV02"|sort
cd C:\Users\USER\Desktop\
DSQUERY COMPUTER -limit 0|findstr HQ-DEV-TECH |sort >bbbb.txt
make EFI bootable usb
clean
create partition primary
format fs=fat32 quick
active
assign
exit
Enable administrator run app on win8 and win10
run secpol.msc
Local Policies/Security
enable User Account Control Admin Approval Mode for the Built-in Administrator account
Windows Server 2012 No Security Tab in SNMP
install feature Remote Server Administration Tools -> Feature Administration Tools -> SNMP Tools
Click Next and Install.
Restart SNMP Service.
Disable win 10 auto update
MAC-Authentication
https://documentation.meraki.com/MR/Encryption_and_Authentication/Creating_an_NPS_Policy_for_MAC-based_Authentication
DNS Servers not working correctly when set as secondary DNS server
https://social.technet.microsoft.com/Forums/windowsserver/en-US/1795e720-30dc-4ceb-9004-0fd07db8376e/dns-servers-not-working-correctly-when-set-as-secondary-dns-server?forum=winservergen
The secondary DNS is only used when the client determines that primary is not reachable, in your case, could you shut down the primary DNS first and then either reboot client PCs and test if they cant reach the secondary or
open command prompt and run
ipconfig/flushdns
then perform DNS querys and see if this doesnot work.
Printer, Toner Counter on Brother
1. Open the front panel.
2. Press the Clear/Back button. The display will show: REPLACE DRUM? 1. Yes 2. No
3. Ignore the display, and type *00 on the keypad. You should see "accepted" on the display.
4. Close the front panel, and you should be good to go
enable NPS log
http://blog.pmail.idv.tw/?p=11710
NPS(本機)節點 > 滑鼠右鍵 > 內容,check both.
check running auditing
auditpol /get /category:*
enable
auditpol /set /subcategory:"Network Policy Server" /success:enable /failure:
enable
netstat -nob
PID+PORT+#
Run Commands
control Control Panel
control folders Folders Properties
control mouse Mouse Properties
control netconnections Network Properties
control printers Printers Folders
control userpasswords2 Manager all User Accounts
control update Windows Update
appwiz.cpl Application Wizard (Program and Features)
inetcpl.cpl Internet Properties (Internet Control Panel)
sysdm.cpl System Properties
firewall.cpl Windows Firewall
notepad Notepad
devmgmt.msc Device Management
dxdiag Direct X Troubleshooter
cleanmgr Clean Manager - Disk Cleanup Utility
osk On Screen Keyboard
fsquirt Bluetooth Transfer Wizard
mrt alicious Software Removal Tool
ipconfig /showclassid IP Configuration (Display DHCP Class ID)
https://support.microsoft.com/en-us/kb/971058
How to disable USB sticks and limit access to USB storage devices on Windows systems
http://diaryproducts.net/about/operating_systems/windows/disable_usb_sticks
Download USBSTOR.ADM
http://diaryproducts.net/files/usbstore.adm
download visual studio shell
http://www.visualstudioextensibility.com/downloads/vs-shells/
Last logon time of user
http://www.windows-commandline.com/last-logon-time-of-user/
No comments:
Post a Comment