just another IT blog
don't work hard, work intelligent!
Thursday, 16 January 2020
cmd - query certain KB on bulk computers
›
@echo off set KB=4534273 set LISTFILE=computers.txt echo -------------------- >> %kb%.txt echo %date% - %time% >> %kb%.txt ech...
cmd - schedule reboot one in the night on multiple computers
›
@echo off set LISTFILE=scheduledtask.txt echo -------------------- > %LISTFILE%.log echo %date% - %time% >> %LISTFILE%.log echo -...
Friday, 3 January 2020
powershell - gpo report remote computer
›
If the a user complains the logon takes to much time, you can run this powershell command Get-GPResultantSetOfPolicy -user nordson...
CMD - get clipboard text
›
for /f "eol=; tokens=*" %I in ('powershell Get-Clipboard') do set CLIPBOARD_TEXT=%I
CMD - delete empty subfolders
›
cmd to the folder where you want to delete empty subfolders run this connamd for /f "delims=" %i in ('dir /s /b /ad ^| sor...
Powershell - install RSAT on Winodws 10
›
methode 1: DISM.exe /Online /add-capability /CapabilityName:Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 /CapabilityName:Rsat.BitLoc...
CMD - install software on remote computer with wmic
›
@echo off set LISTFILE=computers.txt for /f %%a in (%LISTFILE%) do ( echo. echo --------------------------------------- ec...
CMD - find wifi wlan key on windows computer
›
netsh wlan show profile netsh wlan show profile targetwifiprofilename key=clear
Powershell - Windows - share all subfolders
›
if you want to share all subfolders below one folder like homedirectories\username Share all subfolders Get-ChildItem | Where-...
Active directory - add group managed by
›
a shortcut with rundll32 dsquery,OpenQueryWindow allows the user to manage an AD group, if he is the "group manager" ...
›
Home
View web version