0
votes
0answers
13 views

Export mailbox on user deletion with Exchange Scripting Agent

I'm attempting to automate a few processes with the Exchange 2010 Scripting Agent, I want to disable several mailbox functions on creation (which works just fine) and automatically export a mailbox on ...
0
votes
1answer
44 views

How to Replace using powershell

Here is my vb code. This is exactly what i want to do with powershell. Public Sub Main() Dim file As New System.IO.StreamReader(Dts.Variables("User::str_SourcePath").Value.ToString()) Dim data As ...
2
votes
2answers
27 views

Is it possible to make a cmdlet work with all items being piped into it at once?

Instead of counting sheep this evening, I created a cmdlet that lists all duplicate files in a directory. It's dirt stupid simple and it can only work with all files in a directory, and I'm not keen ...
0
votes
1answer
38 views

Differences between PSObject and PSAdapted [closed]

Can somebody explain to me (no links, just use their own words) what are the differences in usage between PSObject and PSAdapted?
1
vote
3answers
48 views

How to get path segment using Powershell for renaming

I'm trying to make a script where I copy a file from some place and store it in another one. I'm using foreach recursively to get all the files. The question is: How can I get a path segment and ...
0
votes
1answer
63 views

Save the powershell result output on the user profile that runned the script

I have a script that checks, from a defined list, the disk space on our servers. The initial disk.ps1 and the list.txt file will always be on "D:\scripts\disk.ps1, and I want to send the "result" ...
0
votes
0answers
27 views

UNIX SA venturing into the world of Windows

I need to parse a CSV (well, more a tab delimited file) and create a new file that contains unique field - i.e. RC100 1st line RC100 2nd line RC100 3rd line RC200 1st line and have in the new ...
2
votes
1answer
75 views

Enter-PSSession to custom endpoint: Cmdlet not recognized

I am trying to setup an Endpoint-Server in my company and am struggling to connect to it. For testing I put a RcLogUtil Module in the Global Module Path ...
-2
votes
0answers
39 views

powershell integrating with Jenkins + TFS

i need some help regarding automatic deployment in our company there are using tfs2012 for build + for deployment there are using jenkins i need some powershell scripts for REMOTE DEPLOYMENTS ...
1
vote
1answer
61 views

Powershell memory load percentage

I currently have this script which I am trying to get to display the % of processor load. Its returns results and seemingly reports correctly but it doesnt show the actual % in the output: SCRIPT: ...
2
votes
2answers
80 views

Powershell: Why is 'measure-object -InputObject $foo' different from '$foo | measure-object'?

I have six .txt files in a directory. So, I create a variable thus: $foo = gci -Name *.txt $foo is now an array of six strings. In my case I have PS > $foo Extensions.txt find.txt ...
0
votes
2answers
35 views

add <clear /> and <remove name=something /> tag to collections in applicationHost.config or web.config using Powershell webadministration module

as per title, can someone help? just an example: <system.ftpServer> <security> <ipSecurity> <add ipAddress="1.2.3.4" subnetMask="255.255.255.0" /> ...
2
votes
2answers
32 views

How to compare two lists using CLI

I'm totally new to scripting, but would like to use Windows CLI compare two text files, list1.txt and list2.txt, each containing a list of values, and generate a new text file containing values that ...
5
votes
3answers
51 views

How do you list only user-created variables in PowerShell?

Is it possible to easily list only user-created variables in PowerShell? The get-variable Cmdlet gives me all the system variables as well which isn't what I'd like sometimes. For example if I open ...
0
votes
2answers
70 views

check multiple NAS directories for folder PowerShell

I have a list of NAS folders that I have to regularly query for folder existence. Each query is unique but might live under any of 40+ directories. The directories are fixed and I am only looking for ...

15 30 50 per page