0
votes
1answer
19 views

Disabled ActiveDirectory Users from specific date with exclude list

i wrote a script that gonna disabled old users... and i need to do an exclude list to it... the exclude list should be .csv, with 3 columns "Name","SamaccountName","Reason"... i'm kind of stuck with ...
0
votes
1answer
20 views

Trying to store the output of a cmdlet to a variable

I am trying to read in the last line of a log file and parse it for a particular piece of information. The log file is a .csv and I need the number that is present in the third field. while (1) { ...
1
vote
1answer
20 views

Child module function modified in script scope reverts when execution reaches child module- by design?

A script (.ps1) imports ModuleA which imports ModuleB. From the script I can see a function from ModuleB (with Get-Command), but it is listed as belonging to ModuleA. I can also modify/remove the ...
0
votes
1answer
33 views

Powershell-script: Read Contacts from excel file, and create Mailboxes for them on Microsoft Exchange

I tried things out and not with much success. I don't want to know the whole solution for this problem, but where should I start (or maybe there already exist a solution)? Should I better convert the ...
0
votes
1answer
16 views

Using Powershell to edit/modify a GPO

Objective: I'm attempting to modify a GPO (2008R2 AD) via Powershell (v3). Specifically the value of the User Configuration -> Policies -> Windows Settings -> FileRedirection -> Documents UNC path. ...
1
vote
2answers
69 views

PowerShell changes return object's type

I am using PowerShell v3 and the Windows PowerShell ISE. I have the following function that works fine: function Get-XmlNode([xml]$XmlDocument, [string]$NodePath, [string]$NamespaceURI = "", ...
0
votes
3answers
58 views

search a pattern from a file with a combination of defined variable and extra strings using powershell

I have a text file as mentioned below: 04Jul@15:08 ERROR: The Ticket and Load data do not match: NUM[MXS035] 04Jul@15:14 No data for MXS035 04Jul@15:14 Ticket = [MXS035] 04Jul@15:39 ...
2
votes
1answer
47 views

Generating Powershell scripts by working in Windows GUI

My understanding is that virtually all "real work" done by the various GUI components in Windows Server 2012 (for example, in Disk Management) is performed by invoking Powershell. (That is, there's ...
0
votes
1answer
53 views

Powershell Script to monitoring status and send email results

I have a lot of websites to monitor their up/down status, possible errors, ping and the other things that I managed to get with a script. My idea is the following: This script will run with task ...
0
votes
2answers
59 views

How to sum only 2nd column values using powershell?

sharesize.ps1 echo " " $date1 = Get-Date Write-Host -foreground Yellow -background Black "Script Started at $date1" $path = "\*" get-childitem $path | where {$_.PSIsContainer} | foreach { $size = ...
1
vote
0answers
36 views

cant return right value from powershell script

Help me pls, i'am going my mind, what is wrong in my script??? i'm testing this script under Windows 2012. There is shares: \FS-SHARES\TEST12 \FS-SHARES\TEST15 \FS-SHARES\TEST20 function ...
1
vote
1answer
52 views

PowerShell Multiple DynamicParam

I'm attempting to create a function for a script module that verifies the previous parameter has been set before it shows the next parameter. The parameters I need are Identity, Share and Quota. I ...
0
votes
1answer
58 views

I want to add a random generated password to my newly created Active Directory User…

I want to add a randomly generated password to my newly created Active Directory User. I have written a function to generate the password. I am using Powershell V2.0 I tried the below but did not ...
0
votes
1answer
40 views

replace tag in *dtsConfig file from powershell

$xml = [xml](Get-Content C:\temp\STA\*.dtsConfig) $xml.SelectNodes('//ConfiguredValue')|%{$_.'#text'=($_.'#text' -replace '_\d+',[datetime]::Today.ToString('_MMddyyy'))} ...
1
vote
1answer
60 views

PowerShell Workflow Exchange Remoting

I'm attempting to pull data from Office 365 Exchange Online in parallel to save time. I'm not able to accomplish what I'm looking to do, the following code is the "closest" I've come so far. ...

1 2 3 4 5 17
15 30 50 per page