PowerShell
PowerShell Remoting to many servers across domains
I am DBA. I am trying to write bunch of scripts that I could execute from one central server. Ideal would be to send all the scripts from central server to say 50+ servers across multiple win domains[详细]
2023-04-06 01:07 分类:问答Automatic JavaScript Compression with PowerShell
I\'m looking to write a script that will take a bunch of .js files, compress them, and then replace the old ones with the new ones in that same folder. I\'ve tried a few things but I find myself conti[详细]
2023-04-05 23:52 分类:问答Powershell add user to group
I am trying to read an XML file with user information and based on that information I want to add users to Active Directory gr开发者_StackOverflowoups. I have been looking up the error messages with n[详细]
2023-04-05 22:01 分类:问答How to find new cmdlets in Powershell v3.0
I wanted to find the new cmdlets / functions in Powershell. I used the following approach, but not sure if it is comprehensive / correct. Any ideas to find this in a better / different way?[详细]
2023-04-05 19:31 分类:问答Powershell problem using .NET Replication Management Objects RMO
I am trying to automate the reinitialization of several replication subscriptions that pull anonymously from the distribution server. I am[详细]
2023-04-05 16:13 分类:问答Replace the first occurence of a string in a file
In a PowerShell script, to replace the first occurrence of a string in a file I came with the code below, which keeps track in a variable whether the replacement was made.[详细]
2023-04-05 16:01 分类:问答Powershell: replacing in strings using a hashtable
Okay, so I\'ve set up a hash table with names being what to replace and keys being what to replace with, like this:[详细]
2023-04-05 11:46 分类:问答How to convert string to hashtable in 1 go?
This is strictly a learning experience: I have a .CSV file that I\'m using to define my d开发者_如何学编程eployment environments. One of the variables has to be in a Hash Table format.[详细]
2023-04-05 11:12 分类:问答Powershell pipelining only returns last member of collection
I have an issue running the following script in a pipeline: Get-Process | Get-MoreInfo.ps1 The issue is that only the last process of the collection is being displayed.How do I work with all member[详细]
2023-04-05 08:44 分类:问答How to pipeline the username from Get-MoveRequest to Get-MailboxStatistics?
How do I pipeline the output of Exchange 2010\'s Get-MoveRequest command so that the Name variable can be used in the $Username variable below?[详细]
2023-04-05 05:54 分类:问答