powershell-2.0
Using powershell, in a csv doc, need to iterate and insert a character
So my csv file looks something like:开发者_运维问答 J|T|W J|T|W J|T|W I\'d like to iterate through, most likely using a regex so that after the two pipes and content \\|.+{2}, and insert a tab char[详细]
2023-03-21 20:24 分类:问答Using get-content cmdlet with -replace option in order to replace an occurrence in a csv, can't figure out how
I need to delete all occurrences of the string \"|\" the regex I\'ve come up with is \\\"\\|\\\" which works perfectly fine, as tested on rubular, however, when attempting to insert this into my power[详细]
2023-03-21 04:00 分类:问答Powershell exchange server
I am trying to connect \"Exchange Server 2007\" from a remote machine using windows powershell. This is how I do.[详细]
2023-03-20 02:52 分类:问答Powershell Script using Invoke-SQL command,needed for SQL job, the SQL Server version of Powershell is somewhat crippled, is there a workaround?
Full Question: Have Powershell Script using Invoke SQL command, using snappins, I need them to be included in a SQL job, the SQL Server version of Powershell is somewhat crippled, does anyone know a w[详细]
2023-03-17 19:49 分类:问答PowerShell script failure on remote execution
On executing a PowerShell Remote Script I am getting an error like following Invoke-Command : Exception calling \"ToXmlString\" with \"1\" argument(s): \"The requested operation cannot be completed.[详细]
2023-03-16 00:41 分类:问答Organizing files by type
I have this script which runs periodically to collect desktop files and organizes them by the file type into a single folder on backup drive.[详细]
2023-03-15 03:53 分类:问答Create a 7z Archive for files created by date using Powershell
I have directory where various daily files gets copied. I need to write a power shell script which will create 7z archive based on grou开发者_运维百科ps of file create date.The name of the archive inc[详细]
2023-03-15 02:23 分类:问答PowerShell: detecting errors in script functions
What is the best way to detect if an error occurs in a script function?I\'m looking for a consistent way to indicate error/success status similar to $? (which only works on cmdlets, not script functio[详细]
2023-03-14 16:56 分类:问答powershell select-string columns
I have a bunch of IIS logs and powershell 2.0. Currently i\'m using the following command to find some info out about them (where \'crossdomain\' occurs in them):[详细]
2023-03-13 21:42 分类:问答How can I remove repetitive text from a file?
I have a file which has a list of SQL Server databases. I want to remove the 4 system databas开发者_如何学Pythones, [master,model,msdb,tempdb] from the file. How can I do that?[详细]
2023-03-13 14:55 分类:问答