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

Reply To: How do I specify default PSCredential for my script?

Hello, Got following error when using substitution method on following command. How do I remove credentials when specifically using Add-Content? Issue is that credentials which I specify manually when...

View Article


Reply To: How do I specify default PSCredential for my script?

You just have to be more selective in which cmdlets the substitution applies to. A key of ‘*:Credential’ means your PSCredential gets applied to any cmdlet which has a “Credential” parameter. You...

View Article


Reply To: get Directory Size

Don, and Dave, Thanks for precious information. It worked:)

View Article

Reply To: AD Group Focus

In a Windows all permissions are held on the object rather than the group or user. This was a deliberate decision in the early days of Windows NT. At the time it was a differentiator from Novell and...

View Article

Reply To: The CIM namespace root/Microsoft/Windows/DesiredStateConfiguration...

The server DSC requirements are handled when you install the DSC feature The “client” requirements are to install WMF 4 There are no ebooks that I’m aware of on DSC Books are being written on...

View Article


Reply To: Least Privilege for SQLPS via SQLAgent Jobs

I’ve found that SQL Agents jobs need to be run with a high level of privilege for PowerShell steps to work. I think you’ll probably need to stick with admin level rights

View Article

Reply To: "Download all files" error ?

This may not be high on the list of things to do, but can someone look into this. If i click the “Download All Files” link. What is actually downloaded is a text file (with a .zip) extension that...

View Article

Reply To: "Download all files" error ?

As indicated, it’s a known problem and as you surmise it isn’t high on the list. I’m swamped with customer work this week and am not sure when I’ll have time to swap out the server side code that’s...

View Article


Why $PSCommandPath is $null in ISE or PowerGUI

Hello, I’m trying to figure out how to find out where my script is located at the time of execution and from what I researched so far it seems to have been a problem with PS for sometime. I’m running...

View Article


Reply To: Why $PSCommandPath is $null in ISE or PowerGUI

You can’t use certain automatic variables in your param block (such as $PSCommandPath, $MyInvocation, $PSCmdlet, etc); they don’t work the way you’d expect them to. Instead, you can move that logic...

View Article

Reply To: get Directory Size

Hi Everybody, I am going to put my powershell scrip in batch file ( here is my batch file : c:\windows\system32\WindowsPowerShell\v1.0\PowerShell.exe -Command “Get-childitem –Path c:\windows\temp...

View Article

client cert based authentication for a URL

Hi, we want to check URL response of a .asmx URL which needs a client certificate for authenticating. I got the cert object and then passed it to invoke-webrequest cmdlet, but no matter what i try I...

View Article

Reply To: get Directory Size

Have you tried including ‘> C:\MyFolder\Output.txt’ in the double quotes as well? Or even using Out-File to create the log? Something like this:...

View Article


Reply To: get Directory Size

Thanks Wilson, it works with double quote when I run the whole script on cmd line, but from batch file it wont create output file. Please take a look my attached command line file. I tried several...

View Article

Comparing Exchange Version Numbers & Outputting available updates

Hi All Hopefully someone will be able to help a PowerShell newbie! I have a requirement to compare the version number of a Microsoft Exchange server to a list of all available versions and report back...

View Article


Reply To: get Directory Size

You might have an easier time using powershell.exe’s -EncodedCommand parameter; it was designed for situations like this, where quotation marks or special characters cause problems when trying to...

View Article

Reply To: Schedule rolling reboots with service check & email?

Howdy - Thank you for the response, I’m still working at this. The service I’m checking now is the RPC server and I found a better “batch file script” online than what I had so I am trying that, but...

View Article


User Report with attribs & email file?

Howdy: I’m working on yet another script and stuck on what to do with this. I need to query AD and use the quest module as it’s a 2003 domain with no gateway available. I can query the domain to get...

View Article

Reply To: "Inventory Intervention" – Processor inventory script

Hey Mike Thank you again for this! Is there a way to get the number of cores per physical processor from the script as well if the 2003 servers aren’t patched?

View Article

Reply To: "Inventory Intervention" – Processor inventory script

Get-WmiObject Win32_ComputerSystem NumberOfLogicalProcessors | Select-Object NumberOfLogicalProcessors

View Article
Browsing all 13067 articles
Browse latest View live