Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Learning – Don Jones

I am new to PowerShell and have attended a Microsoft online course. It was OK, but not what I was expecting. I am now going to purchase some materials on my own and would like suggestions as I am not...

View Article


Reply To: Learning – Don Jones

If you’re looking for free resources (other than PowerShell.org), the TechNet Script Center will be near the top of the list. Lots of articles, blog posts, and the Gallery / Script Repository which...

View Article


Reply To: Learning – Don Jones

I can speak for what I’ve done. “Learn PowerShell 3 in a Month of Lunches” is in fact valid for PowerShell 3 and 4 as a starting point (a revision of the book cover will be removing the “3″ and making...

View Article

Reply To: Print multi-line output

That was it exactly, thanks. I also needed to find a method of keeping the array intact when I edited this data and this I was able to do using an array. Cool stuff, this PowerShell

View Article

Reply To: Automation help required

Don, I will go for Invoke-Command as i should give the prototype in a short time. Thanks for the reply. Sure Next time i will be more specific on subject and content. Thanks again for providing...

View Article


Reply To: Need Help with Advanced Function Using Input GUI and Active...

DAVE!!! YOU ARE BADASS!!! It worked dude! Thanks again for your help brother. Richard, yeah that was a typo bro, sorry about that.

View Article

Using powershell to import a csv file for OU's

I’m trying to import a csv file to create OU’s in active directory using powershell. Now I have figured out to set it up to get the file. What I haven’t been able to figure out is the scripting to get...

View Article

Persistently loaded libraries

Hi All, I’ve got a few libraries that I use frequently in PowerShell, which I call/load/import using the; [System.Reflection.Assembly]::LoadFile(‘C:\path\to\my.dll’); Though I have to make that call...

View Article


Reply To: Persistently loaded libraries

Hi All, I solved this myself. I didn’t realise the PowerShell ISE and PowerShell console used different profiles, so had created a $profile in ISE which was ineffectual in PowerShell. Adding my...

View Article


Reply To: error on starting powershell -executionpolicy

Does that server have PowerShell v1 installed, by chance? The syntax you posted should be working on PowerShell 2.0 or later, but I’m not sure about 1.0 (which I never used.)

View Article

Reply To: PowerShell v1 strange behaviour

Honestly, I’m not sure, but I wouldn’t recommend running PowerShell v1 anymore. You can deploy PowerShell 2.0 on any system that 1.0 supported, as far as I know (and PowerShell 3.0 / 4.0 on more...

View Article

Reply To: Dealing only with Current Child Nodes

You’re basically on the right track. All calls to CreateElement() (and similar methods) will be made on your $PY variable, but that doesn’t mean that the elements will be placed at the document root....

View Article

Reply To: How do you manage your scripts?

thx for the info, i will check it out…

View Article


Reply To: error on starting powershell -executionpolicy

Yes, that server is v1. So this command is not working for v1? The problem is that some of the servers has executionpolicy set to “restricted” (i will run the script on many servers and I don’t want...

View Article

Reply To: Dealing only with Current Child Nodes

Brilliant as always – thank you so much again.. The quality and timeliness of the information I received from this site goes above and beyond what I could have possible imagined when I initially came...

View Article


Export-csv changing names with apostrophes

Good afternoon, We have 2 servers that we use for production and development. When I run the exact same script in the “dev” box the export-csv leaves the users name with apostrophes alone. The...

View Article

Reply To: Export-csv changing names with apostrophes

Most likely, you’re dealing with a Unicode character that just looks like an apostrophe, and your CSV file has encoded as ASCII. Depending on what you need to do with the resulting CSV file, you can...

View Article


Reply To: Export-csv changing names with apostrophes

Dont you think it’s strange that one server does it right and the other doesn’t? I sent this to my engineers: In production I get ‘Stephanie O?Rourk’ I checked and both versions of Powershell are...

View Article

Reply To: Export-csv changing names with apostrophes

Strange, yes, but there’s not much I can do to troubleshoot that from here. First thing I would do is check to see if that string contains any multi-byte characters, and then check the encoding of the...

View Article

Reply To: Using powershell to import a csv file for OU's

no help on this please?

View Article
Browsing all 13067 articles
Browse latest View live