Using Microsoft’s PowerShell cmdlet: New-TimeSpan you can see how long an application has been running Command: New-TimeSpan -Start (get-process calc).StartTime You will want to sub the word “calc” out for whatever application you are using. You can type “get-process” to see a list of all the ProcessNames running on the system. For more examples, check out: https://technet.microsoft.com/en-us/library/Ee176916.aspx
Tag Archives: Powershell
Windows 8, 8.1, Server 2012, and Server 2012 R2 has a PowerShell cmdlet called: Get-NetAdpater. This tool can be used to quickly get critical network information from a system, such as Half or Full Duplex settings. Below is the command to get the Name, Description, MAC, Duplex, and LinkSpeed of your network adapter: Get-NetAdapter | Select-Object -Property Name,
Tired of having users ask you to map network drives because the password and username are not persistent? Try this command in Powershell or Command Prompt: net use Z: \\Hostname\ShareFolder /savecred /p:yes Put in the appropriate credentials and that’s it! The username and password will remain persistent even after reboots.
Here is a cool Powershell command that will find a removable drive, quick format the drive, then name the drive. This command is special because it searches for the drive name versus the drive letter. Sometimes drive letters change; this command will ensure that you are always deleting the correct drives data. Powershell Command: Get-Volume |