Andrew's Windows Administration Notes


List fileshares that are connected: net share
Map drive: net use z: \\computer\folder
View network shares: net view
Unmap share: net use z: /delete

Start powershell: powershell

List mapped drive letters: powershell "get-wmiobject -class win32_logicaldisk | select -property DeviceID

time running a command: powershell "measure-command {echo hi}"
sleep: powershell "start-sleep 10"

Create a file: fsutil file createnew filenamehere lengthinbyteshere