sconstantinou / sysinfo Goto Github PK
View Code? Open in Web Editor NEWPowerShell Module to get local and remote system information
License: MIT License
PowerShell Module to get local and remote system information
License: MIT License
How to install that module in proper way?
Hi!
because FileSystemFlagsEx is an Flag Array it should return more tan one value
My CDromDrive returns an FileSystemFlagsEx value of 17301509.
So it should return Get-FileSystemFlagsEx Function should return the following values:
Case Sensitive Search
Unicode On Disk
Read Only Volume
My Function do it like so:
Function Get-FileSystemFlagsEx {
param ([uint32]$Number)
if ($Number -ne 0){
switch ($Number){
{$Number -band 1} {'Case Sensitive Search'}
{$Number -band 2} {'Case Preserved Names'}
{$Number -band 4} {'Unicode On Disk'}
{$Number -band 8} {'Persistent ACLs'}
{$Number -band 16} {'File Compression'}
{$Number -band 32} {'Volume Quotas'}
{$Number -band 64} {'Supports Sparse Files'}
{$Number -band 128} {'Supports Reparse Points'}
{$Number -band 256} {'Supports Remote Storage'}
{$Number -band 16384} {'Supports Long Names'}
{$Number -band 32768} {'Volume Is Compressed'}
{$Number -band 524289} {'Read Only Volume'}
{$Number -band 65536} {'Supports Object IDS'}
{$Number -band 131072} {'Supports Encryption'}
{$Number -band 262144} {'Supports Named Streams'}
default {"Invalid Code: $Number"}
}
}
}
Get-FileSystemFlagsEx 17301509
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.