Chirag Nagrekar has Published 465 Articles

How to dismount the ISO file using PowerShell?

Chirag Nagrekar

Chirag Nagrekar

Updated on 25-Jan-2021 07:25:55

3K+ Views

To dismount the ISO file on the Windows Server using PowerShell, we need to use the Dismount−DiskImage command. When you use this command, you need to use the same path used for mounting the disk image.In this example, we have a disk mounted on E: on the local server, that ... Read More

How to format the disk using PowerShell?

Chirag Nagrekar

Chirag Nagrekar

Updated on 25-Jan-2021 07:23:31

822 Views

To format the disk using PowerShell, we can use the Format−Volume command. For example, we have to format the E: on the local server then we can use the simple format command as shown below.Format−Volume −DriveLetter E −Force −VerboseTo format the disk with the specific filesystem use the below command.Format−Volume ... Read More

How to change the local disk name using PowerShell?

Chirag Nagrekar

Chirag Nagrekar

Updated on 25-Jan-2021 07:23:14

3K+ Views

To change the local disk name using PowerShell, we can use the Set−Volume command. For example, we have Drive name F and its volume label is “New Volume” and need to change it to the “Temporary Storage” then we can change the label using its existing volume name or with ... Read More

How to install the Nuget Package using PowerShell?

Chirag Nagrekar

Chirag Nagrekar

Updated on 25-Jan-2021 07:18:40

19K+ Views

Nuget is the package management tool for the .NET and it is similar to PowerShellGet, MSI packages which support several commands and packages to work with PowerShell.NuGet supports Install−Package, Update−Package, Find-Package, and Get−Package command and if Nuget package is not installed in your system, you may not find a package ... Read More

How to change the Drive letter using PowerShell?

Chirag Nagrekar

Chirag Nagrekar

Updated on 25-Jan-2021 07:15:34

2K+ Views

To change the drive letter using PowerShell, we can use the Set−Partition command but before that, we need to know which drive letter to change. You can check the drive letter using Windows Explorer, Get−Partition, Gwmi win32_Logicaldisk, or Get−CimInstance Win32_Logicaldisk command.Suppose we have an E: and we need to rename ... Read More

How to get the disk information using PowerShell?

Chirag Nagrekar

Chirag Nagrekar

Updated on 25-Jan-2021 07:15:06

6K+ Views

To get the Windows disk information using PowerShell, we can use the WMI command or the CIM class command.With the WMI command, Gwmi Win32_LogicalDiskWith the CIM instance method, Get−CimInstance Win32_LogicalDisk You can see both the outputs are identical. Let’s use one of them.DeviceID DriveType ProviderName VolumeName Size FreeSpace -------- --------- ... Read More

Ways to use Where-Object in PowerShell

Chirag Nagrekar

Chirag Nagrekar

Updated on 25-Jan-2021 07:11:07

2K+ Views

Where−Object or (alias: Where) in PowerShell is used to filter the data output provided through the Pipeline.There are two methods we can use the Where−Object for the pipeline inputs.a. ScriptMethod −In this method, we use ScriptBlock to filter the output with the Property name, value, and the comparison operator.Get−Service | ... Read More

How to change the color of the PowerShell ISE editor using command?

Chirag Nagrekar

Chirag Nagrekar

Updated on 18-Jan-2021 07:44:08

2K+ Views

To change the color of the ISE Editor, we need to use $psISE cmdlet which is only available for the ISE editor.Now in the ISE editor, we have many colors some are visible (ScriptPane color, Console Color, etc) and some appear while executing a script (Error, Warning, Verbose). These properties ... Read More

How to change PowerShell ISE font Size using command?

Chirag Nagrekar

Chirag Nagrekar

Updated on 18-Jan-2021 07:41:03

2K+ Views

To change the font size of the PowerShell ISE editor using the command, we need to use the cmdlet $PSISE which is only loaded inside the PowerShell ISE console. You won’t find it in the main PowerShell console.Once you run this command, there are various properties available. For example, PS ... Read More

How to traceroute using PowerShell?

Chirag Nagrekar

Chirag Nagrekar

Updated on 18-Jan-2021 07:38:30

14K+ Views

Traceroute is the way to determine the hopes that the packets are passing through when requested. In the command prompt, that utility is called the tracert and we can also use that utility to trace the network packets. For example, PS C:\> tracert google.com Tracing route to google.com [216.58.203.142] over ... Read More

Advertisements