Actually you need just few lines
Output will be in clipboard (in this case it will be with tab separated for easy pasting into Excel or similar)
Actually you need just few lines
Output will be in clipboard (in this case it will be with tab separated for easy pasting into Excel or similar)
Resize using this command line (PowerShell as Administrator):
Get-Partition -DriveLetter c | Resize-Partition -Size 96GB
If you just want remotely use mmc, then start services.msc and connect to remote computer
If you want to use PowerShell, use the following command (atagateway is one example service and serverX is example server name):
If you have remote PowerShell enabled, then you can also use this command:
To upload already encrypted drive bitlocker key to AD, you can use this PowerShell oneliner. Remember to use "run as administrator"
If you already have the information in AD, then it doesn't hurt, it will not create any duplicates in AD
To get all subnets in your Active Directory, use this PowerShell oneliner:
I wrote an under-100-character oneliner for getting all saved WiFi passwords on Windows 10 computer:
netsh wl sh p|%{($_-split': ')[1]}|%{$_;netsh wl sh p n=$_ k=clear|%{($_-split'nt\s+: ')[1]};''}
Ouput will be in the format:
SSID (network name)
WPA key (network password)
Each combo will be separated with an empty line. If some WiFi networks haven't got password, then only SSID will be shown.