Tags
Question
How to create a new function with name Win32 and a scriptblock ?

New-Item -Path Function:Win32: -Value {Set-Location C:\Windows\System32}

Tags
Question
How to create a new function with name Win32 and a scriptblock ?
?

Tags
Question
How to create a new function with name Win32 and a scriptblock ?

New-Item -Path Function:Win32: -Value {Set-Location C:\Windows\System32}
If you want to change selection, open document below and click on "Move attachment"

Function Provider | Microsoft Docs
n the Function: drive, you can use either format. In the second command, the dot (.) represents the current location. PS C:\> Get-Item -Path Function:c: PS Function:\> Get-Item -Path .\c: <span>Creating a function This command uses the New-Item cmdlet to create a function called Win32:. The expression in braces is the script block that is represented by the function name. New-Item -Path Function:Win32: -Value {Set-Location C:\Windows\System32} You can also create a function by typing it at the PowerShell command line. For example, tpe Function:Win32: {Set-Location C:\Windows\System32}. If you are in the Function: drive, you c

Summary

status measured difficulty not learned 37% [default] 0

No repetitions