Better Restart-Computer cmdlet in PowerShell 3.0
As the name suggests the Restart-Computer cmdlet helps in restarting the operating system on the local and remote computers. Compared to earlier version of Restart-Computer in PowerShell 2.
Read MoreAs the name suggests the Restart-Computer cmdlet helps in restarting the operating system on the local and remote computers. Compared to earlier version of Restart-Computer in PowerShell 2.
Read MoreSometimes you need to create a copy of an exiting directory structure without copying the files, and you also want to include empty folders if they exist.
Read MoreNote: This tip requires PowerShell 2.0 or above. In an earlier tip, you saw how an empty file of a specified size can be created.
Read MoreSometimes you need to create a file of the specified size, as a placeholder for instance. There are many utilities that do that (e.
Read MoreNote: This tip requires PowerShell 2.0 or above. Let’s say you want to rename a bunch of files in a folder and imagine that you used the following code:
Read MoreNote: This tip requires PowerShell 3.0 or above. The Invoke-WebRequest and Invoke-RestMethod cmdlets have the -UserAgent parameter, so you can specify a user agent string for the web request.
Read More