Quantcast
Channel: Hviidnet.com » Powershell
Browsing all 6 articles
Browse latest View live

Nice powershell snippets to do diffrent stuff

Useing powershellplus normaly. Getting a popup with choices: $test = [system.Windows.Forms.MessageBoxButtons]::AbortRetryIgnore $test = [System.Windows.Forms.MessageBox]::Show("test","test",$test) if...

View Article



Powershell: Create a function

A function in powershell is used as in every other object oriented programming language, by defining what it does and then call it. lets see how to create one: function Test-Function ($1) { $1 += "...

View Article

Image may be NSFW.
Clik here to view.

Powershell: A simple RSS Reader

I experimented a bit with reading diffrent data types, and i came up with a simple rss reader - Take a look. #Definer hvorfra det skal hentes $feed="http://newz.dk/rss" # hent rss feed $wco =...

View Article

Regex Basics

Here is some basic regex (Regularexpressions) \d = digit \d{1,2} = one or 2 digits \d{3,} = 3 or more digits \d+ = 1 or more digits \d* = 0 or more digits \D = NON digits \w = word / letters / numbers...

View Article

Powershell: Scanning a network for alive hosts

This is a way to scan a network for ip's and return if hosts are alive or dead. $i =1 $Ip = "10.0.0." $ipsamling = @() Write-Host "IP Address" Write-Host "----------------------------------------" do {...

View Article


Exclude VMware Virtual Adapters from Network Awareness

Because the VMware virtual network adapters appear to be in a “Public network”, Windows thinks that the whole machine is exposed to a public network, and it triggers the public profile for Windows...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images