Categories
User Help

Powershell won’t run ps1 files

Completely baffled by this. Can’t seem to run any ps1 files on powershell?? I know for sure it was working fine last week. Here is the error I’m getting. It suggests the file doesn’t exist, so I proved it does by using Test-Path first… PS C:\WINDOWS\system32> cd C:\Users\Public if (Test-Path test.ps1) { ./test.ps1 } ./test.ps1 […]

Categories
User Help

Powershell won’t run ps1 files

Completely baffled by this. Can’t seem to run any ps1 files on powershell?? I know for sure it was working fine last week. Here is the error I’m getting. It suggests the file doesn’t exist, so I proved it does by using Test-Path first… PS C:\WINDOWS\system32> cd C:\Users\Public if (Test-Path test.ps1) { ./test.ps1 } ./test.ps1 […]

Categories
User Help

How to get help for the Posh-SSH cmdlet?

I ran Get-Help which asked whether I wanted to run Update-Help, which I did. How do I get help on using Posh-SSH from within the powershell CLI? PS C:\> PS C:\> Get-Command -Name *ssh* CommandType Name Version Source ———– —- ——- —— Function Get-PoshSSHModVersion 2.2 Posh-SSH Function Get-SSHPortForward 2.2 Posh-SSH Function Get-SSHSession 2.2 Posh-SSH Function […]

Categories
Mastering Development

Entity Framework won’t install properly, Enable-Migrations command fails

I am trying to follow this tutorial: https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/migrations/ I am using Visual Studio 2017 and Net 4.6.1. Right off the bat, things seem to go wrong. When I use the command Install-Package EntityFramework in the Package Manager Console, I get this warning: Missing function body in function declaration. At C:\Users\TC\Documents\Temp\Entity Framework Example\MigrationsDemo\packages\EntityFramework.6.4.0\tools\EntityFramework6.PS2.psm1:241 char:5 + <<<< […]

Categories
Mastering Development

Powershell error when running a hardware inventory script

When I run the following code I am getting an error at -computername -quiet -count1 saying that there is an issue with the -properties operatingsystem | Select. Full code below: $Comps = Get-ADComputer -Filter { OperatingSystem -Like ‘*Windows Server*’ } -Properties OperatingSystem | select -ExpandProperty Name foreach ($Comp in $comps) { if ((test-connection -ComputerName $Comp […]

Categories
Development User Help

Can someone help me with this Powershell error

fuction : The term ‘fuction’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\admin\Desktop\Powershell\Powershell1.ps1:1 char:1 + fuction pc { + ~~~~~~~ + CategoryInfo : ObjectNotFound: (fuction:String) […]

Categories
Development

React-navigation-The term ‘pod’ is not recognized as the name of a cmdlet

My operating system(OS) is windows 10. I have created a React-Native project with the following code : react-native init AwesomeProject I want to install React-navigation then do the following steps based on the React-Navigation documentation) 1- npm install @react-navigation/native 2- npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view 3- When I run the following step I […]

Categories
Cryptocurrency Development Ethereum

What is role of pure.js for adding web3.js

I am adding web3.js according to guide in: Adding web3.js. I traversed steps mentioned there that can be seen below: There is no problem with “npm” and “meteor” steps but with “pure js” step the following problem occurrs: That says “dist/web3.min.js : The term ‘dist/web3.min.js’ is not recognized as the name of a cmdlet, function, […]

Categories
Development

The term ‘node’ is not recognized as the name of a cmdlet, function, script file, or operable program

I’m getting this error while running node in my VS Code terminal besides I tried to run the same thing in CMD and it worked there but not in VS Code terminal: node: The term ‘node’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of […]

Categories
Development

The term ‘node’ is not recognized as the name of a cmdlet, function, script file, or operable program

I’m getting this error while running node in my VS Code terminal besides I tried to run the same thing in CMD and it worked there but not in VS Code terminal: node: The term ‘node’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of […]