Change heading name
I am importing some data via import-csv where across files the heading names are not consistent. For example, for a given column, the name is EventID or IDHow can I modify the heading names prior to...
View ArticleChange encoding of file
Hi All,I would like to be able to change the encoding of a file from UTF-8 to Unicode in powershell. I can do it no problem in notepad by going to Save as however, i'm not too sure how to do this in...
View ArticleThe "FOR" loop methode
Hi Pls, i have an little probleme with the "for" loop methode.. The index is not in order. $xValInt = ([int]::Parse($xVal1.Length)) for($xI = 0; $xI -le $xValInt) { ......... Ft @{Expression = {$xI ++...
View ArticleOpen explorer window
Hi -I noticed an issue when trying to use the following command on PowerShell command line:explorer /root,c:\tempThis always launches explorer but does not actually display c:\temp. The same command...
View ArticleModifying a CSV file
I am a newbie when it comes to powershell and stumped on modifying a csv file. Any help is greatly appreciated.I would like to do the following:Import an existing CSVmodify the duration value for the...
View ArticleAdding Journal Entries to Outlook
Does anyone have an example of how to create Outlook Journal entries with a power shell script. I understand how to get user input and write data and have done so for several scripts with outlook...
View ArticlePausing a PS script awaiting user input
Running PSv2. I have a script running that needs to pause some way through whilst the user carries out something on the screen manually. What I need to happen is:i. Script pauses and says "Please carry...
View Article[resolved]Get nodes from xml just not working with powershell
Hey guys, I'm kind of new to powershell, but worked through everything (and I mean everything :) that I found on Google, but nothing helped. The problem is:I am getting a xml with directory-listing...
View ArticleHow to find the recent modified file with time using the power shell script
Hi All,I have some 'n' number of files in one folder.For example in my system in 'C' drive assume that I have folder1 in that folder I have test1.log , test2.log , test3.log .........test1.log modifed...
View ArticlePowershell scheduled task isn't working?
Windows Server 2008 R2, Powershell is set to unrestricted, Domain Admin account running the Scheduled Task.I have a script that's moving a bunch of files from one server to another and putting them in...
View ArticleCompare two csv/excel files and update columns
We have a weekly report that contains user names, hours remaining and hours completed. Since we get it on a weekly basis I want to see the hours side by side by week. So for all users I want to add...
View ArticleREG UNLOAD Access Denied in CMD
Greetings,I'm trying to write a simple batch file to load a hive from another hard drive, create a key, create a subkey, and then unload the hive. It all works well until I try to unload the hive. It...
View ArticleSelect-object -Expand Question
Hello Experts, I am buidling a script which will query the WSUS server for Downloaded Patches which are not installed.I have a Server list C:\Servers.txt against which I have performing this query ,I...
View ArticleHow to add multiple XML attributes with the same name to a PSObject
Hi,I'm trying to add some additional information from a web.config into PSObjects that are associated with each website. The problem is that each web.config can contain 20 route entries or zero route...
View ArticleHow to import OOF html text
Hello, We use Exchange 2007 SP3. Now we want to import a out of office template for all our users which they can use when the are away. I have found the "Set-EWSOofSettings -Identity jknapp -StartTime...
View Articleparameter value and value set
HiHow to use default values or a collection of a set/subset of those values in the parameters of a functioneg I have a parameter 'parameter1' and it can have values : val1, val2, val3 or @(val1, val2)...
View ArticleRun batch file with elevated privileges
Hello,I would like to run iteration of a batch file in a directory with elevated privileges.My user is not the system administrator. My user belongs to the local group administrators My command "for"...
View ArticleRDP cliend username and IP address
How can I create user startup script to get RDP client logon time, IP address, username and to write results to wineventNikola Batinica System Administrator at BANINI AD www.banini.co.rs
View ArticlePowershell as a performance monitoring solution?
I've been reading a lot on Powershell recently. I'm trying to find a light-weight performance solution for my servers. I see that Powershell can query Counters, and output them to SQL. I used the...
View ArticlePromote a 2012 DC using PowerShell 3.0 workflow hangs on Install-ADDSForest
Hi,seeing the value in PowerShell 3.0 workflow for machine / classroom installation I am trying to automate the entire installation of a SharePoint 2013 machine. First steps include making the server a...
View Article