powershell-2.0
Powershell: Change file attributes automatically when copying
I have a folder of read only files. When I copy one of these files to a test l开发者_如何学运维ocation, I want to be able to copy them and not retain their original attributes.[详细]
2023-03-04 05:31 分类:问答powershell v2.0 passing variable computername parameter from a batch cmd file
Good Day All I want to set up a common script where I can pass the server name from a .bat script when calling the .ps1[详细]
2023-03-03 20:18 分类:问答Search-Mailbox command not recognized exchange 2010 sp1 powershell
Does anybody know why this command is not recognized in Exchange 2010 SP1: Search-Mailbox -Identity \"April Stewart\" -SearchQuery \'Subject:\"Your bank statement\"\' -Dele开发者_如何学GoteContent[详细]
2023-03-03 18:45 分类:问答Relative vs fullpath when executing file
When executing cmd/batch/exe file from the powershell command line (or within .ps1 script file), I see the following behavior:[详细]
2023-03-03 06:55 分类:问答Search Variable for String then Run Conditional Statement in PowerShell
I am pretty new with PowerShell. I was recently tasked with making a error message popup that would help a local user determine whether or not a MS SQL on-demand DB merge worked or not. I wrote a scri[详细]
2023-03-02 15:51 分类:问答Regex and ignore whitespace
I have the following regex that I am using to match on various credit card numbers within a string search of files.However, if there is a space before or after the pattern to match, then the match wil[详细]
2023-02-28 10:32 分类:问答Is Make-Shell deprecated?
A couple of years ago I used Make-shell to create custom shells with custom cmdlets. Later I used snap-in technique and I forgot about that option.[详细]
2023-02-25 00:27 分类:问答Powershell : Display the table headers once at the top in a html report
I am trying to create an email report to display a list of failed/succeeded backup jobs. Here is my script:[详细]
2023-02-24 23:53 分类:问答Selecting specific nodes in an XML file from multiple levels
I have an xml file in a format similar to this: <benchmark> <group> <id>1</id> <rule>[详细]
2023-02-21 19:05 分类:问答Powershell script to create folder, website and deploy using MSDeploy.exe
I would like to deploy a web application on Windows 2008 R2. I know the separate PowerShell commands to do various tasks. But I would like to put this into a nice PowerShell script.[详细]
2023-02-21 04:58 分类:问答