vssadmin resize shadowstorage /on=C: /For=C: /Maxsize=4GB
Figure Out External IP
Windows:
nslookup myip.opendns.com resolver1.opendns.com
UNIX:
dig +short myip.opendns.com @resolver1.opendns.com
Make Sub-Folders Within Folders
for /d %%x in (*) do mkdir "%%x\a" "%%x\b" "%%x\c"
Get Mailbox Stats
Get-MailboxStatistics -Database "Mailbox Database ###DATABASENAME###" | Select DisplayName, ItemCount, TotalItemSize | Export-CSV C:\MBSizes.csv
Find DNS Servers
Disable UAC on Remotely Connected Domain Workstation
c:\PSTools>psexec.exe \192.168.1.108 -u USERNAME -p PASSWORD reg.exe ADD
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t R
EG_DWORD /d 0 /f
Find DNS Settings of Remote Computers
get-Content c:\compnames.txt | c:\Get-IPDetails.ps1 | select ComputerName, @{Name=’DNSServers';Expression={[string]::join(“;”, ($_.DNSServers))}} | Export-CSV c:\test.csv