Quickly Generate Large Test Files in Windows


Never download another 100mb test file or waste time searching for a large file. Sometimes you need a large file fast to test data transfers or disk performance. Windows includes a utility that allows you to quickly generate a file of any size instantly.

Open an administrative level command prompt.

Run the following command:

fsutil file createnew

For example, this command will create a 1GB file called 1gb.test on my desktop:

fsutil file createnew c:\users\steve\desktop\1gb.test 1073741824

The key is to input the size of the file in bytes so here are some common file sizes to save you from math:

1 MB = 1048576 bytes

100 MB = 104857600 bytes

1 GB = 1073741824 bytes

10 GB = 10737418240 bytes

100 GB =107374182400 bytes

1 TB = 1099511627776 bytes

10 TB =10995116277760 bytes

DCInventory Powershell


Get-ADDomainController -Filter * | select name, operatingsystem,HostName,site,IsGlobalCatalog,IsReadOnly,IPv4Address |
Export-Csv DomainControllers_Report.csv

Get-ADDomainController -Filter * | select name, operatingsystem,HostName,site | sort name

Source:

https://github.com/jeremyts/ActiveDirectoryDomainServices/blob/master/Audit/DCInventory.ps1

 

Advanced startup options (including safe mode)


  • Safe Mode with Networking. Starts Windows in safe mode and includes the network drivers and services needed to access the Internet or other computers on your network.
  • Safe Mode with Command Prompt. Starts Windows in safe mode with a command prompt window instead of the usual Windows interface. This option is intended for IT professionals and administrators.
  • Enable Boot Logging. Creates a file, ntbtlog.txt, that lists all the drivers that are installed during startup and that might be useful for advanced troubleshooting.
  • Enable low-resolution video (640×480). Starts Windows using your current video driver and using low resolution and refresh rate settings. You can use this mode to reset your display settings. For more information, see Change your screen resolution.
  • Last Known Good Configuration (advanced). Starts Windows with the last registry and driver configuration that worked successfully.
  • Directory Services Restore Mode. Starts Windows domain controller running Active Directory so that the directory service can be restored. This option is intended for IT professionals and administrators.
  • Debugging Mode. Starts Windows in an advanced troubleshooting mode intended for IT professionals and system administrators.
  • Disable automatic restart on system failure. Prevents Windows from automatically restarting if an error causes Windows to fail. Choose this option only if Windows is stuck in a loop where Windows fails, attempts to restart, and fails again repeatedly.
  • Disable Driver Signature Enforcement. Allows drivers containing improper signatures to be installed.
  • Start Windows Normally. Starts Windows in its normal mode.

https://support.microsoft.com/en-in/help/17419/windows-7-advanced-startup-options-safe-mode

 

Keyboard short cuts


Keyboard short cuts

Keyboard shortcuts for Windows: http://support.microsoft.com/kb/126449/en-us Jump

 Server Core

Item Command
Server Configuration Sconfig

 


Active Directory

Item Command
Active Directory Rights Management Services AdRmsAdmin.msc
ADSI Edit adsiedit.msc
Active Directory Certificate Services certsrv.msc
DFS Management dfsmgmt.msc
DHCP Console dhcpmgmt.msc
Disk Management diskmgmt.msc
DNS Console dnsmgmt.msc
Active Directory Domains and Trust domain.msc
Active Directory Users and Computers dsa.msc
Active Directory Site and Subnets dssite.msc
Event Viewer eventvwr.msc
Group Policy Management Console gpmc.msc
Group Policy Management Editor gpme.msc
LDP ldp.exe
PKI – Enterprise PKI pkiview.msc
Resultant Set of Policy rsop.msc
Server Manager ServerManager.msc
WINS winsmgmt.msc
WMI WmiMgmt.msc

 


Windows Server

Item Command
Active Directory Rights Management Services AdRmsAdmin.msc
ADSI Edit adsiedit.msc
Authorization Manager azman.msc
Certificates certmgr.msc
Active Directory Certificate Services certsrv.msc
Certificate Templates Console certtmpl.msc
Cluster Admin CluAdmin.msc
Component Services comexp.msc
Computer Manager compmgmt.msc
Device Manager devmgmt.msc
DFS Management dfsmgmt.msc
DHCP Console dhcpmgmt.msc
Disk Management diskmgmt.msc
DNS Console dnsmgmt.msc
Active Directory Domains and Trust domain.msc
Active Directory Users and Computers dsa.msc
Active Directory Site and Subnets dssite.msc
Event Viewer eventvwr.msc
Failover Cluster Manager FailoverClusters.SnapInHelper.msc
Shared Folders Console fsmgmt.msc
File Server Resource Manager fsrm.msc
Fax Service Manager fxsadmin.msc
Local Group Policy Editor gpedit.msc
Group Policy Management Console gpmc.msc
Group Policy Management Editor gpme.msc
GPO Editor gptedit.msc
Local Users and Groups lusrmgr.msc
NAP Client Configuration NAPCLCFG.MSC
Services for Network File System nfsmgmt.msc
Performance Monitor perfmon.msc
PKI – Enterprise PKI pkiview.msc
Print Management printmanagement.msc
Remote App Manager remoteprograms.msc
Resultant Set of Policy rsop.msc
Remote Desktop Connection Manager sbmgr.msc
Local Security Policy secpol.msc
Server Manager ServerManager.msc
Services services.msc
SQL Server Configuration Manager SQLServerManager10.msc
Share and Storage Management StorageMgmt.msc
Storage Explorer StorExpl.msc
Telephony tapimgmt.msc
Task Scheduler taskschd.msc
TPM Management Console tpm.msc
Remote Desktop Services Manager tsadmin.msc
Remote Desktops Session Host Configuration tsconfig.msc
RD Gateway Manager tsgateway.msc
Remote Desktops – Console Root\Remote Desktops tsmmc.msc
Windows Server Backup wbadmin.msc
Windows Deployment Services WdsMgmt.msc
Windows Firewall and Advanced Security WF.msc
WINS winsmgmt.msc
WMI WmiMgmt.msc

Bulk AD creation


Import-Module ActiveDirectory
Import-Csv “C:\Bulk\TTT.csv” | ForEach-Object {
$UserPrincipalName = $_.”SamAccountName” + “@test.com”
New-ADUser -Name $_.Name `
-Path $_.”Parent OU” `
-SamAccountName $_.”samAccountName” `
-UserPrincipalName $UserPrincipalName `
-GivenName $_.GivenName `
-SurName $_.sn `
-displayName $_.displayName `
-AccountPassword (ConvertTo-SecureString “Password@123$” -AsPlainText -Force) `
-ChangePasswordAtLogon $true `
-Enabled $true
}

User Attributes – Inside Active Directory


http://www.kouti.com/tables/userattributes.htm

Import-module activedirectory
Get-Aduser -Filter * -Searchbase "OU=testou,DC=mydomain,DC=com" -properties * | select name, samaccountname | export-csv c:\testou_user_export.csv

 

Check the port status


https://www.grc.com/x/ne.dll?rh1dkyd2

  1. Go to www.grc.com/default.htm
  2. Scroll down & click ShieldsUP!
  3. Click Proceed
  4. In the center box on that page, paste this string:
  5. Click User Specified Custom Port Probe

image

This scan will come back with a list of ports you entered and show the status.

Sample scan of commonly used ports in an SBS environment.

%d bloggers like this: