PowerShell – Creating Dummy files

Here’s a function I wrote to create a large dummy file either filled with zero’s or random characters. The -Target parameter must be eitehr a file including the path or just the path. If the path does not exist, it will be created. If only a path is provided a file with a random file name is generated.

Run the following command to create a dummy file of 10 MB with random content

Read More …

How to generate random computer names for lab deployments using SCCM OSD

For my lab environment I use the below described approach to generate random computernames for my clients. The script does the following: Read the Task Sequence Package Name Based on the name set the appropriate prefix Generate a random number between 100 and 1000 Generate the new computer name based on Prefix + random number To implement this do the following: Put the script listed below into a package Add the script to the TS Read More …

ToolTip: Dummy File Creator

A while back I wrote about how to create empty files using FSUTIL a windows build-in command line tool for managing FAT and NTFS file systems. Today I found a nice little free utility called Dummy File Creator created by Nikko Cheng. You can use the GUI version (dummy.exe) or if you want to include generating dummy files within a script you can use the command-line based version (DummyCMD.exe). Dummy File Creator can be downloaded Read More …