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

Reply To: Multiple scripts execution in ISE

Sure, you just have to press Control-T, or go to File -> New PowerShell Tab.

View Article


Reply To: Multiple scripts execution in ISE

Thanks Dave.I know what you are saying. But that’s not what I’m looking for. I can open the new window, but can’t run the script in the new window, while the script in old window is still running....

View Article


Reply To: Multiple scripts execution in ISE

Did you actually try it? It works fine for me.Keep in mind that the “New PowerShell Tab” I’m talking about is not the same thing as just opening multiple scripts. See the attached screenshot; the...

View Article

Reply To: Multiple scripts execution in ISE

You-Sir are a genius!Thank you! Thank you! Thank you!In fact there’s a difference between ctrl+n and ctrl+t

View Article

Reply To: accept a cookie while using Invoke-WebRequest

Well, you can accept session cookies and use them in future calls to Invoke-WebRequest via the -SessionVariable and -WebSession parameters, but I’m not sure that’s what you need. I haven’t seen a...

View Article


Reply To: SecureString encryption

I just ran across this very issue trying to load balance a PowerShell script that syncs Exchange Calendars via EWS using impersonation. I saved the credentials for the impersonation account in an XML...

View Article

Reply To: accept a cookie while using Invoke-WebRequest

Thank you Dave!Do you know of a way to have it accept a self signed certificate of the site from within PowerShell? The page also uses a session cookie and I keep getting this error. . .RawContent :...

View Article

Reply To: accept a cookie while using Invoke-WebRequest

Sorry, that’s not something I’ve tried to do before. There are a couple of workarounds over at...

View Article


Reply To: SecureString encryption

That depends mainly on where you want to fall on the Security <—> Usability scale. There’s really no 100% secure way to store secret data with just software, but DPAPI is about as good as it...

View Article


Reply To: SNMP services

Ohh in that case I need to download module from Vexasoft Cmdlet Library. But I dont want to do that. Is there any other way to make it possible in powershell??

View Article

PowerShell Logging.

Hi Guys, newbie here on the forums.I looked for an answer to my question first, so this is more of a follow up to this post: http://powershell.org/wp/forums/topic/save-the-output-of-powershell-script/I...

View Article

Reply To: PowerShell Logging.

I don’t think you can.using the transcript cmdlets toggles the transcript functionality pretty much on or off -Erroraction silentlycontinue will pretty much suppress your errors and you won’t see...

View Article

Reply To: PowerShell Logging.

If you have some control over how your script is called, you could also use a redirection operator to send the Error stream to a file. It would have to be a separate file from the rest of your logging,...

View Article


Reply To: SNMP services

SNMP’s settings are just registry values under “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SNMP\Parameters”. I don’t know of a more convenient way to script changes without using third-party...

View Article

Reply To: PowerShell Logging.

Ok so that sounds doable.I have a shortcut on the desktop of a server that launches Powershell.exe -command xxxxWhat do i need to do within the script to get the errors output to a seperate file?Rob.

View Article


Reply To: PowerShell Logging.

You could add that same redirection operator to the shortcut. PowerShell.exe -command xxxx 2>> .\SomeErrorLog.txt

View Article

Reply To: PowerShell Logging.

2>> .\SomeErrorLog.txtWhat exactly does this tell Powershell to do? (i understand the file name bit ;o) )

View Article


Reply To: PowerShell Logging.

It redirects the Error stream to a file (appending to the file if it already exists). “Get-Help about_Redirection” has the details how those operators all work.

View Article

Reply To: Selling DSC in POSH V4

Matt’s got it right. DSC consists of layers; the DSC functionality itself, plus “resources” that actually check and do stuff. We don’t have a lot of resources yet.Over time, expect to see (I personally...

View Article

Executing Powershell Scripts from Linux Servers

I have to run some powershell scripts from Linux hosts. What is the best recommended way to achieve this? I noticed on a powershell video, Jeffrey Snover from Microsoft executing powershell scripts...

View Article
Browsing all 13067 articles
Browse latest View live