Linked Questions
16 questions linked to/from PowerShell script to return versions of .NET Framework on a machine?
411 votes
25 answers
921k views
How do I find the installed .NET versions?
How do I find out which version of .NET is installed? I'm looking for something as simple as java -version that I can type at the command prompt and that tells me the current version(s) installed. I ...
101 votes
24 answers
145k views
Is there an easy way to check the .NET Framework version?
The problem is that I need to know if it's version 3.5 SP 1. Environment.Version() only returns 2.0.50727.3053. I found this solution, but I think it will take much more time than it's worth, so I'm ...
4 votes
3 answers
33k views
Unable to get output from get-filehash
I am looking for a reliable command-line method of getting SHA256 hashes for files in Windows. My understanding is that the way to do this is via Microsoft's Get-FileHash cmdlet under PowerShell. I ...
6 votes
4 answers
26k views
How to remotely find the .NET version on a server list with PowerShell?
I am trying to find version of .NET installed on a list of servers. What would be a PowerShell script to do the same where servers are provided as a .txt file and they are enumerated to find the .NET ...
3 votes
1 answer
10k views
How to find out installed versions of the .NET frameworks by using a PowerShell command?
Is there a way to find out installed versions of the .NET framework by using a PowerShell command?
3 votes
1 answer
685 views
Why does Powershell have access to methods introduced in a newer .net version?
it seems Powershell v5.1 uses .Net Framework v4.0 [Environment]::Version # Major Minor Build Revision # ----- ----- ----- -------- # 4 0 30319 42000 and DateTimeOffset....
1 vote
1 answer
4k views
Import RSA Public key for string encryption in Powershell 5
I am working on a non-Powershell tool (NodeJS) that will use Powershell for displaying a password prompt. For the purposes of this question, that means the following: I invoke the Powershell script ...
2 votes
1 answer
3k views
Powershell 2.0 Savefiledialog style
I have a powershell 2.0 GUI that has a SaveFileDialog box that does not look like windows 7 save file dialog that is used for my other MS Office windows 7 applications - the powershell dialog contains ...
1 vote
1 answer
4k views
PowerShell type not found, assembly missing?
I moved from a computer to another one, I have the same version of Powershell installed but when it worked on my previous computer, on the new one I have this error when I launch a PS script: In ...
0 votes
2 answers
2k views
Running a PowerShell command for multiple remote hosts and displaying efficiently
I'm trying to determine which of my servers from a list (for example, servers.txt) have .NET 4.5 installed and what version of PowerShell. I have standalone commands which will tell me this on a ...
1 vote
1 answer
2k views
Finding running .NET version on IIS apps
I am currently working on a website being hosted on a server using IIS to manage the applications on it. I want to use a powershell script to find out what version of .NET each app is currently ...
4 votes
1 answer
488 views
Making .NET array type in Powershell
i'm trying to make System.Memory[char] . [System.Memory[char]]::Memory([char],0,10) * says it can't find System.Memory type . Also tried * [System.Memory`3+[[char],0,10]]@() Solution: The issue seems ...
3 votes
1 answer
1k views
CREATE ASSEMBLY fails with "Unable to resolve token"
I am trying to upload some CLR code to an SQL Server 2016 (Developer edition) instance. Overall, the structure is like this: One CLR UDF depends on assembly A Another CLR UDF depends on assembly B ...
0 votes
1 answer
1k views
How to output from a Powershell hashtable to a output file
I am trying to get the .NetFramwork version from all the windows servers. I am using powershell script. I can get the output displayed but unable to get the output from the hashtable to a output file. ...
1 vote
1 answer
304 views
Moving away from Source-Safe but having problems installing SourceGear Vault on IIS 10
In order to keep my scripts I used to use Microsoft source safe but after many issues, I migrated to sourceGear Vault, which stores all the data in a few sql server databases, so that you can backup ...