Tagged Questions
0
votes
1answer
31 views
Get specific value from text and insert in array, then compare on it
I'm new to Powershell and I'm trying to make a script in order to extract some data and then launch a command.
Here is the deal:
I have an application that sometimes goes in error (I have to look in ...
-1
votes
1answer
25 views
How to create an Array in powershell v3
I would like to know how i could create an array in Power shell V3 to generate a list of software on a local machine with the letter L for running services?
0
votes
1answer
49 views
How to extract number from string
my array contains string like this :
eth1
eth12
eth20
eth35
eth5
I want another array who contains only the number of these string :
1
12
20
35
5
I tried with Trimend() function, but i don't ...
0
votes
2answers
187 views
Empty value powershell array
I have a strange issue, this is my CSV:
Serveur;Carte;Cordon;IP;Mac;Vmnic ;Vmnic mac;Connect;Port
Dexter;eth1;405;172.16.5.117;00:24:e8:36:36:df;Vmnic0;00:50:56:56:36:df;sw-front-1;A1
...
2
votes
1answer
56 views
Compare 2 array and delete element
I have two dynamic array like this :
$exclude = @()
$exclude += "GORDON"
$exclude += "DEXTER"
$servers = @()
$servers += "CEPHEE"
$servers += "FIONA"
$servers += "GORDON"
$servers += "DEXTER"
How ...
0
votes
0answers
191 views
Set logonworkstations attribute from script
So,
I am trying to write a PS script to query the available logon workstations for an account; then (comma) delimit that list. I am then trying to add to that (cdl), then perform a set-adobject to put ...