No announcements
Found 2140196 threads
-
2 Votes
Powershell, quoting the quoting quotes - storing large string
Here is the code I have right now $b = @' {Body from Monitor Mailbox} '@ $alert = $b | Select-String ...Answered | 10 Replies | 4841 Views | Created by JL-4 - Friday, November 16, 2012 2:53 PM | Last reply by mjolinor - Monday, November 19, 2012 2:42 PM -
12 Votes
Run multiple commands using CMD with PowerShell.exe -command
This worked for me to shutdown a VM via taskmanager I needed to load a module and then run a command Create an array of ...Answered | 15 Replies | 48948 Views | Created by RalJans - Tuesday, November 26, 2013 1:06 PM | Last reply by Night0wl - Tuesday, January 30, 2018 1:36 PM -
0 Votes
Nested quotes hell
For example: $Example = "This is a ""test"", this is only a ...Answered | 4 Replies | 9104 Views | Created by MuttleyMc - Wednesday, February 13, 2013 10:13 PM | Last reply by MuttleyMc - Wednesday, May 22, 2013 7:47 AM -
1 Votes
Invoke-command problem with quotes
I f I use psexec to run that command, using -i switch it runs fine, don´t we have any similar command on powershell?Answered | 8 Replies | 4868 Views | Created by Marcos Chamma - Tuesday, August 16, 2011 7:43 PM | Last reply by Marcos Chamma - Thursday, August 18, 2011 12:04 PM -
1 Votes
powershell vs cmd powershell.exe
powershell.exe -command "restart-service 'netbackup legacy network service' -force;(get-service 'netbackup legacy network service').dependentservices | get-service ...Answered | 2 Replies | 1015 Views | Created by KAKA_2 - Tuesday, December 22, 2015 8:48 AM | Last reply by jrv - Tuesday, December 22, 2015 8:53 AM -
3 Votes
Passing command line args with quotes
: Output_File_Name='D:\My Output Files\Example File.OUT' For some reason PowerShell is passing this ...Answered | 7 Replies | 36109 Views | Created by IamTheGorf - Wednesday, July 20, 2011 12:15 AM | Last reply by Galbi3000 - Thursday, May 9, 2019 1:02 AM -
7 Votes
Powershell 4 transcription broken
Maybe I missed something in my testing, but I'm almost certain this only appeared when I installed KB3000850.Answered | 11 Replies | 2332 Views | Created by Henk Hofs - Tuesday, April 28, 2015 6:55 PM | Last reply by jrv - Tuesday, May 10, 2016 10:19 PM -
2 Votes
Powershell and double quotes inside a string
If quote characters are required, you can also double them in quoted strings.Answered | 3 Replies | 24203 Views | Created by jqx12 - Friday, May 6, 2016 7:00 AM | Last reply by Richard Mueller - Friday, May 6, 2016 2:54 PM -
1 Votes
Signing Powershell Script Returns and "UnknownError" Status
Hi piselloa, I am trying to self sign some scripts but keep getting a status of "UnknownError" after the script completes ...Answered | 1 Replies | 3367 Views | Created by piselloa - Wednesday, May 25, 2016 12:47 PM | Last reply by Hello_2018 - Tuesday, June 7, 2016 3:35 AM -
19 Votes
Powershell 4: Start-Transcript does not log Write-Host
Start-Transcript -Path C:\temp\log.txt -Force $VerbosePreference = 'Continue' Write-Host "host" Write-Information ...Answered | 26 Replies | 45362 Views | Created by Hallgeirl - Wednesday, January 14, 2015 2:42 PM | Last reply by Tim Odell - Wednesday, November 29, 2017 12:37 AM -
1 Votes
Command with varible with single quotes
Yes - it is confusing but it is a fundamental technique in PowerShell.Answered | 10 Replies | 896 Views | Created by Kleber_Alves - Wednesday, June 15, 2016 5:01 PM | Last reply by jrv - Wednesday, June 15, 2016 7:44 PM -
0 Votes
Powershell double quotes parsing issue
But when i try to pass this as arugument to some other command, it removes the double quotes.Answered | 5 Replies | 3725 Views | Created by LuckieT - Friday, January 8, 2016 11:14 PM | Last reply by jrv - Sunday, January 10, 2016 4:08 PM -
0 Votes
Powershell - Problem with Start-transcript using remoting
i just tried to test it and it doesnt work i manually entered a pssession to a remote box and then tried start-transcript it doesnt work, it throws an ...Answered | 5 Replies | 9569 Views | Created by Sanjeev_nandam - Thursday, January 6, 2011 3:55 PM | Last reply by Sanjeev_nandam - Thursday, January 6, 2011 7:43 PM -
1 Votes
powershell transcript only do with "powershell.exe" pre command
Do you save the script as a .ps1 file?Answered | 1 Replies | 618 Views | Created by kinomakino - Wednesday, January 23, 2019 9:40 AM | Last reply by LeeSeenLi - Thursday, January 24, 2019 3:11 AM -
0 Votes
Turn on PowerShell Transcription Group Policy
It was in the quote I included from the article I linked.Answered | 9 Replies | 9227 Views | Created by Skolvikings80 - Wednesday, September 16, 2015 3:05 PM | Last reply by Jon Bonner - Wednesday, September 16, 2015 7:04 PM -
0 Votes
Powershell list files and remove everything after "\" character
Would you be so kind as to help me return the full path so I can send it along to play with the ovftool command?Answered | 5 Replies | 2187 Views | Created by smithna - Wednesday, September 21, 2016 8:41 PM | Last reply by Mike Laughlin - Friday, September 23, 2016 1:27 AM -
0 Votes
Newline within Single Literal Quotes
This works but only at a CMD prompt or from a BAT or CMD file: powershell.exe -ExecutionPolicy Bypass -Command "(new-object -ComObject ...Answered | 2 Replies | 1739 Views | Created by james_stap - Tuesday, September 12, 2017 8:46 PM | Last reply by james_stap - Tuesday, September 12, 2017 9:50 PM -
1 Votes
Exchange Powershell - Escape special characters (quote and colons)
"FW: " (only the stuff in bold) to the end of your search query, but in my experience it only works for some of the items.Answered | 9 Replies | 13928 Views | Created by AdminCoco - Thursday, October 23, 2014 3:15 PM | Last reply by Will Martin, PFE - Thursday, November 6, 2014 3:11 PM -
0 Votes
Powershell : This host does not support transcription - Remote Execution
Powershell ran the command in a remote session on that computer, and returned the output to your local session where it was transcribed.Answered | 10 Replies | 10476 Views | Created by Connect_AP - Wednesday, September 26, 2012 7:33 AM | Last reply by mjolinor - Thursday, September 27, 2012 1:14 PM -
1 Votes
quoted arguments containing spaces are split, how to prevent it?
Therefore i have beed using "%FILEPATHS%" which would only use single-quotes.Answered | 12 Replies | 32752 Views | Created by ThorstenK - Saturday, December 24, 2011 9:44 PM | Last reply by nitneuc - Sunday, January 12, 2014 10:49 PM - Items 1 to 20 of 2140196 Next ›
No announcements